From 545261fc0e27d379590ecb0f9e5ae7879887c468 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 21 Nov 2011 12:28:09 +0000 Subject: [PATCH] debugging install page --- html/admin/setup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html/admin/setup.php b/html/admin/setup.php index e5d27504c..80b4cd04b 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -92,6 +92,11 @@ if ( strpos($inc_path,";") != 0 ) { /* If htaccess file doesn't exists we create them here * if os == 1 then windows, 0 means Unix */ +/** + *@todo remove this test for production + */ +if ( ! DEBUG ) +{ $file='..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'.htaccess'; $hFile=@fopen($file,'w+'); if ( ! $hFile ) exit('Impossible d\'écrire dans le répertoire include'); @@ -172,7 +177,7 @@ create_htaccess(); // magic_quotes_runtime = Off // magic_quotes_sybase = Off // include_path - +} ?>