diff --git a/html/admin/setup.php b/html/admin/setup.php index 5fb5f1186..3123eeaf2 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -175,13 +175,13 @@ echo ' '; 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 '

Ecriture non possible

On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits

'; exit(); } - create_htaccess(); +create_htaccess(); + +if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) { echo '
'; echo '

Entrez les informations nécessaires à phpcompta

'; require_once('config_file.php'); @@ -191,7 +191,7 @@ if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.D echo '
'; exit(); } - create_htaccess(); + //---------------------------------------------------------------------- // End functions //