noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/04: Task #1229 - Administration -> info #1


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/04: Task #1229 - Administration -> info #1229 : for old version of phpcompta , variable are not the same
Date: Sat, 21 Nov 2015 17:56:51 +0000

sparkyx pushed a commit to annotated tag rel6911
in repository noalyss.

commit 07f249e69b8fea509f434b00a4501616a55b1189
Author: Dany De Bontridder <address@hidden>
Date:   Sat Nov 21 18:10:32 2015 +0100

    Task #1229 - Administration -> info
    #1229 : for old version of phpcompta , variable are not the same
---
 include/admin_repo.inc.php |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/include/admin_repo.inc.php b/include/admin_repo.inc.php
index cc4da4a..16b2afc 100644
--- a/include/admin_repo.inc.php
+++ b/include/admin_repo.inc.php
@@ -122,15 +122,22 @@ if ( $action == "info" && SYSINFO_DISPLAY == true) {
     $a_option = array ("client_encoding","lc_collate","listen_addresses",
         "server_encoding","work_mem","shared_buffers","server_version",
         "hba_file","config_file","data_directory","effective_cache_size");
+    /*
+     * For old version of noalyss config file
+     */
+    $noalyss_user=(defined("noalyss_user"))?noalyss_user:phpcompta_user;
+    $port=(defined("noalyss_psql_port"))?noalyss_psql_port:phpcompta_psql_port;
+    $host=(!defined("noalyss_psql_host") )?'127.0.0.1':noalyss_psql_host;
+    
     echo '<ul style="list-style:square">';
     echo "<li>";
-    echo _('Hôte')." = ".noalyss_psql_host;
+    echo _('Hôte')." = ".$host;
     echo "</li>";
     echo "<li>";
-    echo _('Port')." = ".noalyss_psql_port;
+    echo _('Port')." = ".$port;
     echo "</li>";
     echo "<li>";
-    echo _('Utilisateur')." = ".noalyss_user;
+    echo _('Utilisateur')." = ".$noalyss_user;
     echo "</li>";
     
     for ( $i = 0 ; $i < count($a_option); $i++) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]