aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-11 19:13:23 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-11 19:13:23 +0000
commit798eb784e9ef737d4642040cb3178b237c53ec26 (patch)
tree4bc10c7bb3c7a7458dcd3d9772c3da02f4e9c355
parent01ac49f5d81baac6afdb519d313aeed1a2009d6f (diff)
downloadphpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.tar.gz
phpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.tar.bz2
phpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.zip
Print view now allows to be your default view.
-rw-r--r--README1
-rw-r--r--config.inc.php1
-rw-r--r--index.php6
3 files changed, 7 insertions, 1 deletions
diff --git a/README b/README
index fb52dc5..8823a91 100644
--- a/README
+++ b/README
@@ -70,6 +70,7 @@ Changes:
-Select default theme
-Select default start time, start day
-Upload new calendars (ftp)
+ -Print view can now be set for your default view.
-Minor bug fixes
0.8.1
diff --git a/config.inc.php b/config.inc.php
index df3fca3..01d5407 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -36,6 +36,7 @@ $enable_rss = 'yes'; // Enable RSS access to your calendars (good thing).
$show_search = 'yes'; // Show the search box in the sidebar.
$header_always = 'no'; // Set to yes to have header on print.php
$allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies.
+$printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above).
$blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars
$blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar
diff --git a/index.php b/index.php
index 177c4e3..eadbebb 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,11 @@
<?php
include "./config.inc.php";
-$default_view = "$default_view" . ".php";
+if ($printview_default == 'yes') {
+ $default_view = "print.php?printview=$default_view";
+} else {
+ $default_view = "$default_view" . ".php";
+}
header("Location: $default_view");
?> \ No newline at end of file

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