From 32349846fbd66e4ebc44e63d37fbcd8cff5a8a73 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Wed, 10 Oct 2007 06:08:33 +0000 Subject: fixed two MPD issues, can now disable localplay modules, added check for PHP5 --- lib/init.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/init.php') diff --git a/lib/init.php b/lib/init.php index 2f76a005..bf6c69c4 100644 --- a/lib/init.php +++ b/lib/init.php @@ -27,6 +27,12 @@ // fixes some CSS issues ob_start(); +// Do a check for PHP5 because nothing will work without it +if (strcmp('5.0.0',phpversion()) > 0) { + echo "ERROR: Ampache requires PHP5"; + exit; +} + // Set the Error level manualy... I'm to lazy to fix notices error_reporting(E_ALL ^ E_NOTICE); -- cgit