diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-03-16 00:20:53 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-03-16 00:20:53 +0000 |
commit | 0a5d30c7787f8d3bed6aa06d5c5e97717c8c5065 (patch) | |
tree | a1c5bffa1e60edfa3c486291e8157b69bbcf14ec /functions/init.inc.php | |
parent | f137c1e7d0be5e759c1bc39c20eff59ada2c2d55 (diff) | |
download | phpicalendar-0a5d30c7787f8d3bed6aa06d5c5e97717c8c5065.tar.gz phpicalendar-0a5d30c7787f8d3bed6aa06d5c5e97717c8c5065.tar.bz2 phpicalendar-0a5d30c7787f8d3bed6aa06d5c5e97717c8c5065.zip |
add Pick Multiple to lang files..other minor changes
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 394a272..4ebd0f6 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -2,7 +2,7 @@ // uncomment when developing, comment for shipping version //error_reporting (E_ERROR | E_WARNING | E_PARSE); - +error_reporting(0); // Older versions of PHP do not define $_SERVER. Define it here instead. if (!isset($_SERVER) && isset($_SERVER)) { $_SERVER = &$_SERVER; @@ -43,6 +43,10 @@ if($_REQUEST['cpath']){ if (isset($user_template["$cpath"])){ $template = $user_template["$cpath"]; } +#set up specific webcals for a particular cpath +if (is_array($more_webcals[$cpath])){ + array_merge($list_webcals, $more_webcals["$cpath"]); +} include_once(BASE.'error.php'); include_once(BASE.'functions/calendar_functions.php'); include_once(BASE.'functions/userauth_functions.php'); @@ -56,8 +60,9 @@ if ($cookie_uri == '') { if ($bleed_time == '') $bleed_time = -1; // Grab the action (login or logout). -$action = ''; -if (isset($_REQUEST['action'])) $action = $_REQUEST['action']; +if (isset($_GET['action'])) $action = $_GET['action']; +else if (isset($_POST['action'])) $action = $_POST['action']; +else $action = ''; // Login and/or logout. list($username, $password, $invalid_login) = user_login(); |