Task #1223 - Empêcher accès information système
#1223 Remove access to Information System
This commit is contained in:
parent
6cc3758ca0
commit
f4cff04ef8
4 changed files with 25 additions and 6 deletions
|
|
@ -102,7 +102,7 @@ if ($action== 'audit_log')
|
|||
/*
|
||||
* Display information about current installation
|
||||
*/
|
||||
if ( $action == "info") {
|
||||
if ( $action == "info" && SYSINFO_DISPLAY == true) {
|
||||
echo "<h2>"._('Variables').":".NOALYSS_INCLUDE.'/config.inc.php </h2>';
|
||||
echo '<ul style="list-style:square">';
|
||||
echo "<li>". "NOALYSS_HOME".": ".NOALYSS_HOME."</li>";
|
||||
|
|
|
|||
|
|
@ -99,7 +99,10 @@ if ( !defined("SITE_UPDATE"))
|
|||
if ( !defined("SITE_UPDATE_PLUGIN"))
|
||||
define ("SITE_UPDATE_PLUGIN",'http://www.noalyss.eu/plugin_last_version.txt');
|
||||
|
||||
|
||||
// If you don't want that the system information is accessible
|
||||
if ( ! defined ("SYSINFO_DISPLAY")) {
|
||||
define ("SYSINFO_DISPLAY",TRUE);
|
||||
}
|
||||
define ("DBVERSION",122);
|
||||
define ("MONO_DATABASE",25);
|
||||
define ("DBVERSIONREPO",16);
|
||||
|
|
|
|||
|
|
@ -191,6 +191,8 @@ function display_file_config($p_array,$from_setup=1,$p_os=1)
|
|||
print ( "// published"."\r\n");
|
||||
print ( '// define ("SITE_UPDATE","");'."\r\n");
|
||||
print ( '// define ("SITE_UPDATE_PLUGIN","");'."\r\n");
|
||||
print ( '// To allow to access the Info system'."\r\n");
|
||||
print ( '// define ("SYSINFO_DISPLAY",true);'."\r\n");
|
||||
print ('?>');
|
||||
}
|
||||
/*!\brief create the config file
|
||||
|
|
|
|||
|
|
@ -113,22 +113,36 @@ function MenuAdmin()
|
|||
}
|
||||
if (!defined("MULTI")||(defined("MULTI")&&MULTI==1))
|
||||
{
|
||||
$item=array (array("admin-noalyss.php?action=user_mgt",_("Utilisateurs"),_('Gestion des utilisateurs'),0),
|
||||
$tmp_item=array (
|
||||
array("admin-noalyss.php?action=user_mgt",_("Utilisateurs"),_('Gestion des utilisateurs'),0),
|
||||
array("admin-noalyss.php?action=dossier_mgt",_("Dossiers"),_('Gestion des dossiers'),1),
|
||||
array("admin-noalyss.php?action=modele_mgt",_("Modèles"),_('Gestion des modèles'),2),
|
||||
array("admin-noalyss.php?action=restore",_("Restaure"),_("Restaure une base de données"),3),
|
||||
array("admin-noalyss.php?action=upgrade",_("Mise à jour"),_("Mise à jour du système et des bases de données"),5),
|
||||
array("admin-noalyss.php?action=audit_log",_("Audit"),_("Utilisateurs qui se sont connectés"),4),
|
||||
array("admin-noalyss.php?action=info",_("Information système"),('Information à propos de votre installation'),6),
|
||||
array("login.php",_("Accueil")),
|
||||
array("logout.php",_("Sortie"))
|
||||
array("login.php",_("Accueil"),"",7),
|
||||
array("logout.php",_("Sortie"),"",8)
|
||||
);
|
||||
if ( SYSINFO_DISPLAY == false ) {
|
||||
$nb_item = count($tmp_item);
|
||||
for ($i=0;$i<$nb_item;$i++) {
|
||||
if ($tmp_item[$i][3] <> 6 ) {
|
||||
$item[]=$tmp_item[$i];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$item = $tmp_item;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$item=array (array("admin-noalyss.php?action=user_mgt",_("Utilisateurs"),_('Gestion des utilisateurs'),0),
|
||||
array("admin-noalyss.php?action=audit_log",_("Audit"),_("Utilisateurs qui se sont connectés"),4),
|
||||
array("login.php",_("Accueil"))
|
||||
array("admin-noalyss.php?action=upgrade",_("Mise à jour"),_("Mise à jour du système et des bases de données"),5),
|
||||
array("admin-noalyss.php?action=info",_("Information système"),('Information à propos de votre installation'),6),
|
||||
array("login.php",_("Accueil")),
|
||||
array("logout.php",_("Sortie"))
|
||||
);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue