diff options
author | galaxyAbstractor <galaxyAbstractor@gmail.com> | 2012-04-14 18:57:21 +0200 |
---|---|---|
committer | galaxyAbstractor <galaxyAbstractor@gmail.com> | 2012-04-20 14:19:38 +0200 |
commit | edf60bcd550334a521f35700d52d800b1851d693 (patch) | |
tree | 6d265d13feef573334c804da8d0e633de33f9abc | |
parent | f1f2ab92b15e57c182dadfd9f3cd606cff13946c (diff) | |
download | forums-edf60bcd550334a521f35700d52d800b1851d693.tar forums-edf60bcd550334a521f35700d52d800b1851d693.tar.gz forums-edf60bcd550334a521f35700d52d800b1851d693.tar.bz2 forums-edf60bcd550334a521f35700d52d800b1851d693.tar.xz forums-edf60bcd550334a521f35700d52d800b1851d693.zip |
[ticket/10812] Disabled register_globals check in PHP 5.4
Disabled the check for register_globals if PHP version is 5.4+
PHPBB3-10812
-rw-r--r-- | phpBB/install/install_install.php | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 026fc0d404..454c8b4df0 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -166,25 +166,28 @@ class install_install extends module 'S_LEGEND' => false, )); - // Check for register_globals being enabled - if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') + // Don't check for register_globals on 5.4+ + if (version_compare($php_version, '5.4.0-dev') < 0) { - $result = '<strong style="color:red">' . $lang['NO'] . '</strong>'; - } - else - { - $result = '<strong style="color:green">' . $lang['YES'] . '</strong>'; - } - - $template->assign_block_vars('checks', array( - 'TITLE' => $lang['PHP_REGISTER_GLOBALS'], - 'TITLE_EXPLAIN' => $lang['PHP_REGISTER_GLOBALS_EXPLAIN'], - 'RESULT' => $result, + // Check for register_globals being enabled + if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') + { + $result = '<strong style="color:red">' . $lang['NO'] . '</strong>'; + } + else + { + $result = '<strong style="color:green">' . $lang['YES'] . '</strong>'; + } - 'S_EXPLAIN' => true, - 'S_LEGEND' => false, - )); + $template->assign_block_vars('checks', array( + 'TITLE' => $lang['PHP_REGISTER_GLOBALS'], + 'TITLE_EXPLAIN' => $lang['PHP_REGISTER_GLOBALS_EXPLAIN'], + 'RESULT' => $result, + 'S_EXPLAIN' => true, + 'S_LEGEND' => false, + )); + } // Check for url_fopen if (@ini_get('allow_url_fopen') == '1' || strtolower(@ini_get('allow_url_fopen')) == 'on') |