Changeset 31936 for extensions/netinstall/trunk/piwigo-netinstall.php
- Timestamp:
- Jul 18, 2018, 2:22:10 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/netinstall/trunk/piwigo-netinstall.php
r30031 r31936 17 17 define('DC_LOADER_SERVICE','http://piwigo.org/download/netinstall/'); 18 18 define('DC_LOADER_ARCHIVE','http://piwigo.org/download/dlcounter.php?code=latest'); 19 define('REQUIRED_PHP_VERSION', '5.6.31'); 19 20 20 21 $available_languages = array( … … 65 66 66 67 $step = !empty($_REQUEST['step']) ? (integer)$_REQUEST['step'] : 1; 67 $got_php5 = version_compare(PHP_VERSION, '5.2', '>=');68 $got_php5 = version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '>='); 68 69 if (!$got_php5 && $step != 2) 69 70 { … … 441 442 elseif (!$got_php5) 442 443 { 443 writeMessage('notice', l10n('PHP 5 is required'), array(444 writeMessage('notice',sprintf(l10n('PHP %s is required'), REQUIRED_PHP_VERSION), array( 444 445 sprintf(l10n('It appears your webhost is currently running PHP %s.'), PHP_VERSION), 445 l10n('NetInstall may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'),446 l10n('Note you can change your configuration by yourself and restart NetInstall after that.')446 // l10n('NetInstall may try to switch your configuration to PHP 5 by creating or modifying a .htaccess file.'), 447 // l10n('Note you can change your configuration by yourself and restart NetInstall after that.') 447 448 )); 448 nextAction(l10n('Try to configure PHP 5'),2); 449 450 // 2018-07-18 : Piwigo 2.9.4 is out and now requires PHP 5.3 instead of 5.2. 451 // I realize NetInstall has this procedure which try to force PHP 5 instead 452 // of PHP 4. This procedure has become useless in 2018. I comment it for now, 453 // because we may need it in a few years when PHP 7 will become mandatory. 454 455 // nextAction(l10n('Try to configure PHP 5'),2); 449 456 } 450 457 else
Note: See TracChangeset
for help on using the changeset viewer.