aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-28 00:46:49 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-28 00:46:49 +0000
commit8933f4144fa0fe022d9939ed2e2f31743f6de939 (patch)
treecadf734d6b6e3fde054cd3386f70aed0d80b46e9 /index.php
parenta8a822e8fe1916540ea4bce97c4861bb452ab21f (diff)
downloadphpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.tar.gz
phpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.tar.bz2
phpicalendar-8933f4144fa0fe022d9939ed2e2f31743f6de939.zip
add back link to print view
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/index.php b/index.php
index a865512..05edd88 100644
--- a/index.php
+++ b/index.php
@@ -3,19 +3,18 @@ if (!defined('BASE')) define('BASE', './');
include_once(BASE.'functions/init.inc.php');
if ($phpiCal_config->printview_default == 'yes') {
- $printview = $phpiCal_config->default_view;
- $phpiCal_config->setProperty('default_view', "print.php");
+ $theview ="print.php";
} else {
$check = array ('day', 'week', 'month', 'year');
if (in_array($phpiCal_config->default_view, $check)) {
- $phpiCal_config->setProperty('default_view', $phpiCal_config->default_view . '.php');
+ $theview = $phpiCal_config->default_view . '.php';
} else {
die('illegal view');
}
}
if(isset($_GET['cpath'])){
- $phpiCal_config->default_view .= '?cpath='.$_GET['cpath'];
+ $theview .= '?cpath='.$_GET['cpath'];
}
-header("Location: $phpiCal_config->default_view");
+header("Location: $theview");
?>

© 2014-2024 Faster IT GmbH | imprint | privacy policy