diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-15 15:41:24 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-15 15:41:24 +0000 |
commit | b2bd2ded12454ce187f4c015a8ac743680d8ce01 (patch) | |
tree | 7b07029d4225cf3ba15fcfaafa93e85b7f4aa207 /functions/init.inc.php | |
parent | 46c9454ec6fa7e48be65ef35ff96045ee30d5857 (diff) | |
download | phpicalendar-b2bd2ded12454ce187f4c015a8ac743680d8ce01.tar.gz phpicalendar-b2bd2ded12454ce187f4c015a8ac743680d8ce01.tar.bz2 phpicalendar-b2bd2ded12454ce187f4c015a8ac743680d8ce01.zip |
fix date calculation problems (I hope)
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 1af0c07..ba82b88 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -56,9 +56,8 @@ if ($cookie_uri == '') { if ($bleed_time == '') $bleed_time = -1; // Grab the action (login or logout). -if (isset($_GET['action'])) $action = $_GET['action']; -else if (isset($_POST['action'])) $action = $_POST['action']; -else $action = ''; +$action = ''; +if (isset($_REQUEST['action'])) $action = $_GET['action']; // Login and/or logout. list($username, $password, $invalid_login) = user_login(); |