From 5ce101c1939bcea8b3171d3d0cf494b35a9650f3 Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 15 Oct 2008 17:55:18 +0000 Subject: Merge from trunk 2747: - Install process now looks like goto/roma. - Move install.tpl to goto template. - add charset utf8 to fatal error function. - Check php version on install and upgrade, and die if < 5. git-svn-id: http://piwigo.org/svn/branches/2.0@2748 68402e56-0260-453c-a942-63ccdbb3a9ee --- upgrade.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'upgrade.php') diff --git a/upgrade.php b/upgrade.php index bf726cc6e..0c324d10a 100644 --- a/upgrade.php +++ b/upgrade.php @@ -21,6 +21,12 @@ // | USA. | // +-----------------------------------------------------------------------+ +//check php version +if (version_compare(PHP_VERSION, '5', '<')) +{ + die('Piwigo requires PHP 5 or above.'); +} + define('PHPWG_ROOT_PATH', './'); include_once(PHPWG_ROOT_PATH.'include/functions.inc.php'); -- cgit v1.2.3