diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-02 07:12:12 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2009-01-02 07:12:12 +0000 |
commit | c60246816752a18ba37b8f3508799acd17686b30 (patch) | |
tree | b010ee90fb0b568bd3a84f4f4c52b18b80d0645a /functions/init.inc.php | |
parent | 281d63eedb805ec330a5572b85f48896981fca16 (diff) | |
download | phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.tar.gz phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.tar.bz2 phpicalendar-c60246816752a18ba37b8f3508799acd17686b30.zip |
add download event to event popup
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 1b227cc..8ca11f6 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -1,7 +1,11 @@ <?php +# require php 5 $php_started = getmicrotime(); # define BASE if (!defined('BASE')) define('BASE', './'); +if (phpversion() < '5.1'){ + die (phpversion()." detected. php 5.1 or higher required for this version.\n\n" ); +} include_once(BASE.'functions/init/sanitize.php'); include_once(BASE.'functions/init/set_error_reporting.php'); include_once(BASE.'functions/init/configs.php'); @@ -11,8 +15,6 @@ include_once(BASE.'error.php'); include_once(BASE.'functions/calendar_functions.php'); include_once(BASE.'functions/userauth_functions.php'); -# require php 5 -if (phpversion() < '5.1') die (error(sprintf($lang['l_php_version_required'],phpversion()) ) ); // Grab the action (login or logout). $action = ''; if (isset($_GET['action'])) $action = $_GET['action']; |