From b2bd2ded12454ce187f4c015a8ac743680d8ce01 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Wed, 15 Feb 2006 15:41:24 +0000 Subject: fix date calculation problems (I hope) --- functions/init.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functions/init.inc.php') 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(); -- cgit v1.2.3