From 9444b3bef9d074affe6deb1c1bfe5485fe11070d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 26 Nov 2017 01:12:55 +0100 Subject: [PATCH] INSTALL : check PHP version minimum 5.5 --- html/install.php | 67 ++++++++++-------------------------------------- 1 file changed, 14 insertions(+), 53 deletions(-) diff --git a/html/install.php b/html/install.php index 89ae0acda..1b1952538 100644 --- a/html/install.php +++ b/html/install.php @@ -161,56 +161,6 @@ if ( strpos($inc_path,";") != 0 ) { $new_path=$inc_path.':../../include:addon'; $os=1; /* $os is 1 for unix */ } - -/** - *@brief create correctly the htaccess file - * @deprecated since version 6.9 - */ -function create_htaccess_deprecated() -{ - global $os; - - - /* If htaccess file doesn't exists we create them here - * if os == 1 then windows, 0 means Unix - */ - $file='..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'.htaccess'; - if (! file_exists($file)) - { - $hFile=@fopen($file,'w+'); - if ( ! $hFile ) exit(_('Impossible d\'écrire dans le répertoire include')); - fwrite($hFile,'order deny,allow'."\n"); - fwrite($hFile,'deny from all'."\n"); - fclose($hFile); - } - $file='..'.DIRECTORY_SEPARATOR.'.htaccess'; - if (! file_exists($file)) - { - - $hFile=@fopen($file,'w+'); - if ( ! $hFile ) exit(_('Impossible d\'écrire dans le répertoire html')); - $array=array("php_flag magic_quotes_gpc off", - "php_value max_execution_time 240", - "php_value memory_limit 20M", - "AddDefaultCharset utf-8", - "php_flag register_globals off", - "php_value error_reporting 10239", - "php_value post_max_size 20M", - "php_flag short_open_tag on", - "php_value upload_max_filesize 20M", - "php_value session.use_trans_sid 1", - "php_value session.use_cookies 1", - "php_flag session.use_only_cookies on"); - - if ( $os == 0 ) - fwrite($hFile,'php_value include_path .;../../include;../include;addon'."\n"); - else - fwrite($hFile,'php_value include_path .:../../include:../include:addon'."\n"); - foreach ($array as $value ) fwrite($hFile,$value."\n"); - fclose($hFile); - } - -} // Retrieve informations from the very screen // $http=new HttpInput(); @@ -335,7 +285,20 @@ echo '

'._('Configuration').'

'; "; foreach (array('magic_quotes_gpc','magic_quotes_runtime') as $a) { @@ -460,9 +423,7 @@ $version=$cn->get_value($sql); echo _("Version base de données :"),$version; -if ( $version[0] < 8 || - ($version[0]=='8' && $version[2]<4) - ) +if ( $version[0] < 9 ) { ?>