diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-02-21 12:04:56 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-02-21 12:08:53 -0500 |
commit | 295f406fc5daaebd412c4e7a65ec233f17ae7958 (patch) | |
tree | 087925988ba52a5c839819421e9b16b2898d9620 /lib/init.php | |
parent | e9e350b71e735c8126ac280b7002ebe73d9384bc (diff) | |
download | ampache-295f406fc5daaebd412c4e7a65ec233f17ae7958.tar.gz ampache-295f406fc5daaebd412c4e7a65ec233f17ae7958.tar.bz2 ampache-295f406fc5daaebd412c4e7a65ec233f17ae7958.zip |
Redirect to /test.php for PHP <5.3 on all platforms
5.3 is now required on all platforms, not just Windows.
Diffstat (limited to 'lib/init.php')
-rw-r--r-- | lib/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.php b/lib/init.php index 33e53e02..148ad39b 100644 --- a/lib/init.php +++ b/lib/init.php @@ -86,7 +86,7 @@ if (!count($results)) { } /** Verify a few commonly disabled PHP functions exist and re-direct to /test if not **/ -if (!function_exists('hash') OR !function_exists('inet_pton') OR (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND floatval(phpversion()) < 5.3)) { +if (!function_exists('hash') OR !function_exists('inet_pton') OR (floatval(phpversion()) < 5.3)) { $path = preg_replace("/(.*)\/(\w+\.php)$/","\${1}", $_SERVER['PHP_SELF']); $link = $http_type . $_SERVER['HTTP_HOST'] . $path . "/test.php"; header ("Location: $link"); |