phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4510 - phpcompta/trunk/html/admin


From: phpcompta-dev
Subject: [Phpcompta-dev] r4510 - phpcompta/trunk/html/admin
Date: Tue, 29 Nov 2011 11:24:02 +0100 (CET)

Author: danydb
Date: 2011-11-29 11:24:00 +0100 (Tue, 29 Nov 2011)
New Revision: 4510

Modified:
   phpcompta/trunk/html/admin/setup.php
Log:
setup.php doesn't rewrite .htaccess

Modified: phpcompta/trunk/html/admin/setup.php
===================================================================
--- phpcompta/trunk/html/admin/setup.php        2011-11-29 10:22:47 UTC (rev 
4509)
+++ phpcompta/trunk/html/admin/setup.php        2011-11-29 10:24:00 UTC (rev 
4510)
@@ -175,13 +175,13 @@
 </form>';
  exit();
  }
-if ( ! 
file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php'))
 {
-  /* if the config file is not found we propose to create one */
-  if ( is_writable 
('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php')
 == false ) {
+if ( is_writable 
('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php')
 == false ) {
     echo '<h2 class="error"> Ecriture non possible </h2><p class="warning"> On 
ne peut pas &eacute;crire dans le r&eacute;pertoire de phpcompta, changez-en 
les droits </p>';
     exit();
   }
-  create_htaccess();
+create_htaccess();
+
+if ( ! 
file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php'))
 {
   echo '<form method="post">';
   echo '<h1 class="info">Entrez les informations n&eacute;cessaires &agrave; 
phpcompta</h1>';
   require_once('config_file.php');
@@ -191,7 +191,7 @@
   echo '</form>';
   exit();
 }
-  create_htaccess();
+ 
 //----------------------------------------------------------------------
 // End functions
 //




reply via email to

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