diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-11-11 19:13:23 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-11-11 19:13:23 +0000 |
commit | 798eb784e9ef737d4642040cb3178b237c53ec26 (patch) | |
tree | 4bc10c7bb3c7a7458dcd3d9772c3da02f4e9c355 | |
parent | 01ac49f5d81baac6afdb519d313aeed1a2009d6f (diff) | |
download | phpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.tar.gz phpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.tar.bz2 phpicalendar-798eb784e9ef737d4642040cb3178b237c53ec26.zip |
Print view now allows to be your default view.
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | config.inc.php | 1 | ||||
-rw-r--r-- | index.php | 6 |
3 files changed, 7 insertions, 1 deletions
@@ -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 @@ -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 |