diff options
author | patdenice <patdenice@piwigo.org> | 2008-10-15 17:55:18 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-10-15 17:55:18 +0000 |
commit | 5ce101c1939bcea8b3171d3d0cf494b35a9650f3 (patch) | |
tree | 1ee1b5fe12447f52f7d37a44193d460a1f6a99c2 /upgrade.php | |
parent | fd1badf24b962381f2600abbe9d2714f1f463005 (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 '')
-rw-r--r-- | upgrade.php | 6 |
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'); |