aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade_feed.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-10-15 17:50:12 +0000
committerpatdenice <patdenice@piwigo.org>2008-10-15 17:50:12 +0000
commit682220bded5b06a15943d2c0b65978fbcf3c43f1 (patch)
tree77f0fd0148158bd1e03c9f9fba058f5fbf72c174 /upgrade_feed.php
parent847a842e8d4ed1855838f5d8ab514fbf22cb164b (diff)
- 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/trunk@2747 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upgrade_feed.php')
-rw-r--r--upgrade_feed.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/upgrade_feed.php b/upgrade_feed.php
index 1d04ba650..872fca870 100644
--- a/upgrade_feed.php
+++ b/upgrade_feed.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');