diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-23 22:40:56 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-02-23 22:40:56 +0000 |
commit | f137c1e7d0be5e759c1bc39c20eff59ada2c2d55 (patch) | |
tree | 70b17a6d6948dd258a9a3bd8abde0ea946d67824 /functions/init.inc.php | |
parent | ec5abe35d2e4757f03b28a6101ca42b304e1c1a2 (diff) | |
download | phpicalendar-f137c1e7d0be5e759c1bc39c20eff59ada2c2d55.tar.gz phpicalendar-f137c1e7d0be5e759c1bc39c20eff59ada2c2d55.tar.bz2 phpicalendar-f137c1e7d0be5e759c1bc39c20eff59ada2c2d55.zip |
accept action from request instead of just from get
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index ba82b88..394a272 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -29,7 +29,7 @@ if (isset($_COOKIE['phpicalendar'])) { if ($calendar_path == '') { $calendar_path = BASE.'calendars'; } - +$cpath = ''; #initialize cpath to prevent later undef warnings. if($_REQUEST['cpath']){ $cpath = str_replace('..','',$_REQUEST['cpath']); $calendar_path .= "/$cpath"; @@ -57,7 +57,7 @@ if ($bleed_time == '') $bleed_time = -1; // Grab the action (login or logout). $action = ''; -if (isset($_REQUEST['action'])) $action = $_GET['action']; +if (isset($_REQUEST['action'])) $action = $_REQUEST['action']; // Login and/or logout. list($username, $password, $invalid_login) = user_login(); |