aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-10-15 17:55:18 +0000
committerpatdenice <patdenice@piwigo.org>2008-10-15 17:55:18 +0000
commit5ce101c1939bcea8b3171d3d0cf494b35a9650f3 (patch)
tree1ee1b5fe12447f52f7d37a44193d460a1f6a99c2 /upgrade.php
parentfd1badf24b962381f2600abbe9d2714f1f463005 (diff)
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
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php6
1 files changed, 6 insertions, 0 deletions
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');