noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 06/21: Fix bug for dedicated server


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/21: Fix bug for dedicated server
Date: Wed, 19 Aug 2015 22:59:28 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4fb6e8abb5858498ce80c6e22021b1ddf09de8dd
Author: Dany De Bontridder <address@hidden>
Date:   Fri Aug 14 13:37:14 2015 +0200

    Fix bug for dedicated server
---
 include/config_file.php |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/include/config_file.php b/include/config_file.php
index 7bb9f70..32b6be3 100644
--- a/include/config_file.php
+++ b/include/config_file.php
@@ -144,17 +144,33 @@ function 
config_file_create($p_array,$from_setup=1,$p_os=1)
 
     fputs($hFile, 'define ("domaine","");');
     fputs($hFile,"\r\n");
-    if (isset ($multi))        fputs($hFile, 'define ("MULTI",0);');
-    if (! isset ($multi))      fputs($hFile, 'define ("MULTI",1);');
+    if (isset($multi))
+    {
+        fputs($hFile, 'define ("MULTI",0);');
+    }
+    if (!isset($multi))
+    {
+        fputs($hFile, 'define ("MULTI",1);');
+    }
+    fputs($hFile,"\r\n");
+    fputs($hFile, 'define ("dbname","'.$cdbname.'");');
     fputs($hFile,"\r\n");
     
+    fputs($hFile,' // Uncomment to DEBUG');
+    fputs($hFile,"\r\n");
+    fputs($hFile, '// define ("DEBUG",TRUE);');
+    fputs($hFile,"\r\n");
+    fputs($hFile,' // Uncomment to log your input');
+    fputs($hFile,"\r\n");
+    fputs($hFile, '// define ("LOGINPUT",TRUE);');
+    fputs($hFile,"\r\n");
     fputs($hFile,' // Do not change below !!!');
     fputs($hFile,"\r\n");
     fputs($hFile,' // These variable are computed but could be changed in ');
     fputs($hFile,"\r\n");
     fputs($hFile,' // very special configuration');
     fputs($hFile,"\r\n");
-    fputs($hFile, '// define ("dbname","'.$cdbname.'");');
+    fputs($hFile, 'define ("dbname","'.$cdbname.'");');
     fputs($hFile,"\r\n");
     fputs($hFile, '// define ("NOALYSS_HOME","")');
     fputs($hFile,"\r\n");



reply via email to

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