diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 19:30:41 +0000 |
commit | d482264b6af8598ce50677ac6a8f781e219b7d6f (patch) | |
tree | 5bff034467e4ed8e1b1fe442c7de643f112da7f7 /functions/init.inc.php | |
parent | fc3e1a8590046c858b2ddebdf6c43df8240e9a97 (diff) | |
download | phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.gz phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.tar.bz2 phpicalendar-d482264b6af8598ce50677ac6a8f781e219b7d6f.zip |
fix misc bugs; rewrite some places where warnings squelched with @; require php5.1 or greater
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 8d15778..1b227cc 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -11,11 +11,12 @@ 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']; -else if (isset($_POST['action'])) $action = $_POST['action']; -else $action = ''; +else if (isset($_POST['action'])) $action = $_POST['action']; // Login and/or logout. list($username, $password, $invalid_login) = user_login(); |