[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 159/219: INSTALL : check PHP version minimum
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 159/219: INSTALL : check PHP version minimum 5.5 |
Date: |
Mon, 18 Dec 2017 13:22:56 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9444b3bef9d074affe6deb1c1bfe5485fe11070d
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 26 01:12:55 2017 +0100
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 89ae0ac..1b19525 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 */
}
-
-/**
- address@hidden 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))
- {
- address@hidden($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))
- {
-
- address@hidden($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 '<h1 class="title">'._('Configuration').'</h1>';
<?php
$flag_php=0;
+//------------------------------------------------------------------------------
+// PHP Version
+//------------------------------------------------------------------------------
+if (!defined('PHP_VERSION_ID')) {
+ $version = explode('.',PHP_VERSION);
+ define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 +
$version[2]));
+}
+if ( PHP_VERSION_ID < 50500) {
+ echo $g_failed. " ".phpversion." ". _("Version PHP trop basse ");
+
+} else {
+ echo $g_succeed. " ".phpversion();
+}
//ini_set("memory_limit","200M");
echo "<ul style=\"list-style-type: square;\">";
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 )
{
?>
<p><?php echo $failed . _(" Vous devez absolument utiliser au minimum une
version 8.4 de PostGresql, si votre distribution n'en
- [Noalyss-commit] [noalyss] 196/219: Task #001381 : favori de filtre , table pour sauvegarder, (continued)
- [Noalyss-commit] [noalyss] 196/219: Task #001381 : favori de filtre , table pour sauvegarder, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 109/219: Add button to pin the box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 134/219: #0001414: LETTRAGE - montants différents non indiqués Apparation d'une bulle d'info avec la différence, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 147/219: ANC : ANC_TABLE replace PGPLSQL procedure by Php functions : Anc_Table:create_temp_account Anc_Table:create_temp_card, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 20/219: Add new theme and modify tmp_pcmn, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 180/219: Fix ID problem, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 89/219: Cosmetic : cache certaines colonnes pour petit écran, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 22/219: Esthetic change icon edit, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 165/219: Task #1476 : add an new column to TMP_PCMN Adapt the add and update for CFGPCMN Code cleaning : rewrite of Acc_Account + PhpUnit test, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 177/219: Repository add unique constraint for jnt_use_doc, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 159/219: INSTALL : check PHP version minimum 5.5,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 151/219: HttpInput: Exception if the type is not known, correct the use of numeric instead of number, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 218/219: Task #1506 : improve error message when adding a card, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 214/219: Esthetic CSS : add cursor pointer, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 210/219: Task #1381 Favori de filtre dans recherche, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 205/219: Accounting : error message if accounting is too large # Conflicts: # html/js/card.js, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 194/219: Select_box : fix position, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 176/219: Change autocomplete and adapt Icard setWidth is false + indicator icon for ICard, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 202/219: ManageTable.js : change Manage.delete by Manage.remove, because delete is a reserved keyword, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 181/219: Fix ID problem, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 163/219: Code cleaning, Dany De Bontridder, 2017/12/18