diff --git a/html/admin/setup.php b/html/admin/setup.php index cd649499b..eddcc8d11 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -108,7 +108,6 @@ border:groove 2px blue; */ $failed=""; $succeed=""; - $inc_path=get_include_path(); /** *@brief create correctly the htaccess file @@ -156,7 +155,7 @@ $file='..'.DIRECTORY_SEPARATOR.'.htaccess'; fwrite($hFile,'php_value include_path .:../../include:../include:addon'."\n"); foreach ($array as $value ) fwrite($hFile,$value."\n"); fclose($hFile); - +} if ( strpos($inc_path,";") != 0 ) { $new_path=$inc_path.';..\..\include;addon'; $os=0; /* $os is 0 for windoz */ @@ -174,17 +173,17 @@ echo ' Les informations sont sauvées vous pouvez continuer '; -create_htaccess(); 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 ) { echo '

Ecriture non possible

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

'; exit(); } +} +echo __LINE__; echo '
'; echo '

Entrez les informations nécessaires à phpcompta

'; require_once('config_file.php'); @@ -193,7 +192,6 @@ if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.D echo HtmlInput::submit('save_config','Sauver la configuration'); echo '
'; exit(); - } create_htaccess(); //---------------------------------------------------------------------- @@ -206,7 +204,6 @@ create_htaccess(); // magic_quotes_runtime = Off // magic_quotes_sybase = Off // include_path -} require_once('config_file.php'); include_once('constant.php'); require_once('class_database.php'); @@ -496,4 +493,4 @@ for ($e=0;$e < $MaxDossier;$e++) { echo "

Tout est installé $succeed"; ?> Connectez-vous à PhpCompta -

\ No newline at end of file +