diff --git a/include/admin_repo.inc.php b/include/admin_repo.inc.php
index 175b8c4f4..dd3ea030f 100644
--- a/include/admin_repo.inc.php
+++ b/include/admin_repo.inc.php
@@ -91,11 +91,63 @@ if ( $action== 'restore')
}
if ($action== 'audit_log')
{
- /* List the connexion successuf and failed */
+ /* List the connexion successfull and failed */
require_once NOALYSS_INCLUDE."/audit_log.php";
}
-if ( $action == "logout") {
- require_once 'logout.php';
+if ( $action == "info") {
+
+ echo "
"._("Paramètre base de données")."
";
+ $a_option = array ("client_encoding","lc_collate","listen_addresses",
+ "server_encoding","work_mem","shared_buffers","server_version",
+ "hba_file","config_file","data_directory");
+ echo '';
+ echo "- ";
+ echo _('Hôte')." = ".noalyss_psql_host;
+ echo "
";
+ echo "- ";
+ echo _('Port')." = ".noalyss_psql_port;
+ echo "
";
+ echo "- ";
+ echo _('Utilisateur')." = ".noalyss_user;
+ echo "
";
+
+ for ( $i = 0 ; $i < count($a_option); $i++) {
+ $name=$a_option[$i];
+
+ $sql="select setting from pg_settings where name=$1";
+ $value=$rep->get_value($sql,array($name));
+ echo "- ".$name." = ".$value."
";
+ }
+
+ echo "
";
+
+ echo ""._('Paramètre PHP')."
";
+ ob_start();
+ echo phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES | INFO_ENVIRONMENT | INFO_VARIABLES);
+ $r=ob_get_clean();
+ $html=new DOMDocument();
+ $html->loadHTML($r);
+ $nodelist=$html->getElementsByTagName("style");
+ $nodelist->item(0)->nodeValue='
+.p {text-align: left;}
+.e {background-color: #ccccff; font-weight: bold; color: #000000;}
+.h {background-color: #9999cc; font-weight: bold; color: #000000;word-wrap:break-word;word-break: break-all;}
+.v {background-color: #cccccc; color: #000000;;word-wrap:break-word;word-break: break-all}
+.vr {background-color: #cccccc; text-align: right; color: #000000;word-wrap:break-word;word-break: break-all}
+img {float: right; border: 0px;}
+hr {width: 600px; background-color: #cccccc; border: 0px; height: 1px; color: #000000;}
+ ';
+ $a_table=$html->getElementsByTagName("table");
+ for ( $i = 0 ; $i < $a_table->length;$i++) {
+ $a_table->item($i)->attributes->getNamedItem("width")->nodeValue="100%";
+
+ }
+ $a_title = $html->getElementsByTagName("title");
+ for ( $i = 0;$i<$a_title->length;$i++) {
+ $a_title->item($i)->nodeValue="";
+ }
+ echo $html->saveHTML();
+
}
?>
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index 73fec905a..cb84e82be 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -298,8 +298,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
{
echo '';
printf("\n");
- echo '';
- printf("\n");
+
}
else {
echo '';
@@ -316,6 +315,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
$title
+
" .
$p_script2 . "
diff --git a/include/lib/user_menu.php b/include/lib/user_menu.php
index dcd1807ea..82134f768 100644
--- a/include/lib/user_menu.php
+++ b/include/lib/user_menu.php
@@ -112,7 +112,9 @@ function MenuAdmin()
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=audit_log",_("Audit"),_("Utilisateurs qui se sont connectés"),4),
- array("login.php",_("Accueil"))
+ array("admin-noalyss.php?action=info",_("Information système")),
+ array("login.php",_("Accueil")),
+ array("logout.php",_("Sortie"))
);
}
else