From 9c705dc135dff435c0cb59dec4ebf3d0d1620d2c Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Thu, 11 Dec 2008 21:54:52 +0000 Subject: update lots of files --- index.php | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index bac4eab..a865512 100644 --- a/index.php +++ b/index.php @@ -1,27 +1,21 @@ printview_default == 'yes') { + $printview = $phpiCal_config->default_view; + $phpiCal_config->setProperty('default_view', "print.php"); } else { $check = array ('day', 'week', 'month', 'year'); - if (in_array($default_view, $check)) { - $default_view = $default_view . '.php'; + if (in_array($phpiCal_config->default_view, $check)) { + $phpiCal_config->setProperty('default_view', $phpiCal_config->default_view . '.php'); } else { - die; + die('illegal view'); } } if(isset($_GET['cpath'])){ - $default_view .= '?cpath='.$_GET['cpath']; + $phpiCal_config->default_view .= '?cpath='.$_GET['cpath']; } -header("Location: $default_view"); +header("Location: $phpiCal_config->default_view"); ?> -- cgit v1.2.3