aboutsummaryrefslogtreecommitdiffstats
path: root/config.inc.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2008-12-27 23:18:07 +0000
committerJim Hu <jimhu@users.sourceforge.net>2008-12-27 23:18:07 +0000
commitfb1fa4e8eeb2accaf71675dbf9810ec5af47bc79 (patch)
tree892273a81e75ff9929c558dc0bb4f6d0d06cbce4 /config.inc.php
parent195553ad26b4c8c3639041698309b47ae6d1b1f3 (diff)
downloadphpicalendar-fb1fa4e8eeb2accaf71675dbf9810ec5af47bc79.tar.gz
phpicalendar-fb1fa4e8eeb2accaf71675dbf9810ec5af47bc79.tar.bz2
phpicalendar-fb1fa4e8eeb2accaf71675dbf9810ec5af47bc79.zip
new rss icons;allow subweek calendars
Diffstat (limited to 'config.inc.php')
-rw-r--r--config.inc.php113
1 files changed, 76 insertions, 37 deletions
diff --git a/config.inc.php b/config.inc.php
index bc48501..72ac12b 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -2,53 +2,92 @@
/* Customizing phpicalendar configuration:
phpicalendar 2.3 should work with no additional configuration. This file can be changed to customize the behavior of phpicalendar.
-In version 2.3, there has been a change in the way configuration works in order to reduce the number of confusing global variables. Unfortunately, this means that config.inc.php files from older installations will have to be translated to the new format. The conversion is simple: use the old variable names as array keys for the $configs array below:
+In version 2.3, there has been a change in the way configuration works in order to reduce the number of confusing global variables. Unfortunately, this means that config.inc.php files from older installations will have to be translated to the new format. The conversion is simple: use the old variable names as array keys for the $configs array below.
+
+To change basic settings, uncomment (remove the first '#') from the desired line and adjust the value. For setting blacklists, autmatic webcals, locked calendars, and HTTP authorized calendars modify the arrays below the basic configuration section.
+
+The commented out lines below include alternatives to the default settings. Additional settings that can be overridden are in default_config.php
+
+For more info and help, go to http://phpicalendar.net or email phpicalendar@gmail.com
*/
-$secs = 6*60*60;
+
$configs = array(
-# 'calendar_path' => '/Library/WebServer/Documents/phpicalendar/calendars',
-# 'timezone' => 'US/Central',
-# 'allow_admin' => 'yes',
-# 'allow_login' => 'yes',
- 'allow_preferences' => 'yes',
- 'show_search' => 'yes',
-# 'show_todos' => 'no',
- 'show_completed' => 'no',
- 'timezone' => 'US/Central',
-# 'timezone' => 'America/Bogota',
-# 'timezone' => 'Europe/Paris',
-# 'gridLength' => 5,
-# 'second_offset' => $secs,
-# 'cookie_uri' => ''
+
+/* ========= BASIC CONFIGURATION =========
+ ** Server configuration **
+
+As noted, phpicalendar should work without adjusting the default settings. Change these if you are having problems or want to change where things are found. For example, it is often useful to have calendar_path in a different location.
+
+ calendar_path is a FILE path
+ default_path, cookie_uri, and download_uri are a URL paths, e.g. http://www.example.com/phpicalendar; set these if you are having problems.
+*/
+# 'calendar_path' => '/Library/WebServer/Documents/phpicalendar/calendars/recur_tests',
+# 'default_path' => '',
+# 'save_parsed_cals' => 'yes',
+# 'cookie_uri' => '',
+# 'download_uri' => '',
+
+/* ** Timezones **
+If timezone is not set, all events show in the local time of the source calendar. This isn't a problem if all your calendars are in the same timezone. If you set a timezone for the server, events in other timezones are shown when they occur at the server's time.
+*/
+# 'timezone' => 'US/Central',
+# 'second_offset' => $secs,
+
+/* ** Appearance **
+In this section you can set how phpicalendar will display calendar views.
+
+phpicalendar currently supports about 30 language variants. For a list of supported languages, see the languages folder.
+
+
+*/
+
+# 'language' => 'Spanish',
+# 'default_cal' => 'US Holidays', // Exact filename of calendar without .ics. Or set to 'ALL_CALENDARS_COMBINED to open all calenders combined into one.
+# 'template' => 'green'; // Template support: change this to have a different "skin" for your installation.
+# 'default_view' => 'month', // Default view for calendars' => 'day', 'week', 'month', 'year'
+# 'gridLength' => 10, // Grid size in day and week views. Allowed values are 1,2,3,4,10,12,15,20,30,60. Default is 15
+# 'minical_view' => 'current', // Where do the mini-calendars go when clicked?' => 'day', 'week', 'month', 'current'
+# 'allow_preferences' => 'no',
+# 'show_search' => 'yes',
+# 'show_todos' => 'no',
+# 'show_completed' => 'no',
+# 'allow_admin' => 'yes',
+ 'week_start_day' => 'Monday', // Day of the week your week starts on
+ 'week_length' => '5', // Number of days to display in the week view
+# 'day_start' => '0600', // Start time for day grid
+# 'day_end' => '2000', // End time for day grid
);
-$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
-$blacklisted_cals[] = ''; // list. This should be the exact calendar filename without .ics
-$blacklisted_cals[] = ''; // the parser will *not* parse any cal that is in this list (it will not be Web accessible)
+/* ========= SPECIAL CALENDARS =========
+
+*/
+$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
+$blacklisted_cals[] = ''; // list. This should be the exact calendar filename without .ics
+$blacklisted_cals[] = ''; // the parser will *not* parse any cal that is in this list (it will not be Web accessible)
// add more lines as necessary
-$list_webcals[] = ''; // Fill in between the quotes exact URL of a calendar that you wish
-$list_webcals[] = ''; // to show up in your calendar list. You must prefix the URL with http://
-$list_webcals[] = ''; // or webcal:// and the filename should contain the .ics suffix
-$list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work
+$list_webcals[] = ''; // Fill in between the quotes exact URL of a calendar that you wish
+$list_webcals[] = ''; // to show up in your calendar list. You must prefix the URL with http://
+$list_webcals[] = ''; // or webcal:// and the filename should contain the .ics suffix
+$list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work
// add more lines as necessary
-#$more_webcals['cpath'][] = '' //add webcals that will show up only for a particular cpath.
+#$more_webcals['cpath'][] = '' //add webcals that will show up only for a particular cpath.
-$locked_cals[] = ''; // Fill in-between the quotes the names of the calendars you wish to hide
-$locked_cals[] = ''; // unless unlocked by a username/password login. This should be the
-$locked_cals[] = ''; // exact calendar filename without the .ics suffix.
-$locked_cals[] = ''; //
+$locked_cals[] = ''; // Fill in-between the quotes the names of the calendars you wish to hide
+$locked_cals[] = ''; // unless unlocked by a username/password login. This should be the
+$locked_cals[] = ''; // exact calendar filename without the .ics suffix.
+$locked_cals[] = ''; //
// add more lines as necessary
-$locked_map['user1:pass'] = array(''); // Map username:password accounts to locked calendars that should be
-$locked_map['user2:pass'] = array(''); // unlocked if logged in. Calendar names should be the same as what is
-$locked_map['user3:pass'] = array(''); // listed in the $locked_cals, again without the .ics suffix.
-$locked_map['user4:pass'] = array(''); // Example: $locked_map['username:password'] = array('Locked1', 'Locked2');
+$locked_map['user1:pass'] = array(''); // Map username:password accounts to locked calendars that should be
+$locked_map['user2:pass'] = array(''); // unlocked if logged in. Calendar names should be the same as what is
+$locked_map['user3:pass'] = array(''); // listed in the $locked_cals, again without the .ics suffix.
+$locked_map['user4:pass'] = array(''); // Example: $locked_map['username:password'] = array('Locked1', 'Locked2');
// add more lines as necessary
-$apache_map['user1'] = array(''); // Map HTTP authenticated users to specific calendars. Users listed here and
-$apache_map['user2'] = array(''); // authenticated via HTTP will not see the public calendars, and will not be
-$apache_map['user3'] = array(''); // given any login/logout options. Calendar names not include the .ics suffix.
-$apache_map['user4'] = array(''); // Example: $apache_map['username'] = array('Calendar1', 'Calendar2');
+$apache_map['user1'] = array(''); // Map HTTP authenticated users to specific calendars. Users listed here and
+$apache_map['user2'] = array(''); // authenticated via HTTP will not see the public calendars, and will not be
+$apache_map['user3'] = array(''); // given any login/logout options. Calendar names not include the .ics suffix.
+$apache_map['user4'] = array(''); // Example: $apache_map['username'] = array('Calendar1', 'Calendar2');

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