1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

tweak the version checking to account for gentoo hippies (it is also a better way of doing it)

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-03-03 00:59:51 +00:00
parent d7f8af4f53
commit 8a0f5b1cc7

View file

@ -27,11 +27,11 @@ $svn_version = 'Subversion ' . trim('$Rev$','$ ');
ob_start(); ob_start();
// Do a check for PHP5 because nothing will work without it // Do a check for PHP5 because nothing will work without it
if (strcmp('5.0.0',phpversion()) > 0) { if (floatval(phpversion()) < 5) {
echo "ERROR: Ampache requires PHP5"; echo "ERROR: Ampache requires PHP5";
exit; exit;
} }
if (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND strcmp('5.3.0',phpversion()) > 0) { if (strtoupper(substr(PHP_OS,0,3)) == 'WIN' AND floatval(phpversion()) < 5.3) {
echo "Error: Ampache Requires PHP5.3 when running on Windows"; echo "Error: Ampache Requires PHP5.3 when running on Windows";
exit; exit;
} }