diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-20 00:16:05 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2003-09-20 00:16:05 +0000 |
commit | afe581186d6bd59ea42e5dfa3ce47ab6705b9409 (patch) | |
tree | 95c08cb2b0b622ebaec80937af6a088e6ff0a080 /functions/init.inc.php | |
parent | 5acbcff92008621e2f50893be83d58385e00dd67 (diff) | |
download | phpicalendar-afe581186d6bd59ea42e5dfa3ce47ab6705b9409.tar.gz phpicalendar-afe581186d6bd59ea42e5dfa3ce47ab6705b9409.tar.bz2 phpicalendar-afe581186d6bd59ea42e5dfa3ce47ab6705b9409.zip |
Set magic string $ALL_CALENDARS_COMBINED = 'all_calendars_combined971'.
All previous references to 'all_calendars_combined971' now point at
$ALL_CALENDARS_COMBINED.
Uncommented closing form tag on sidebar.php, and set correct spacing
for the entire sidebar.
Diffstat (limited to 'functions/init.inc.php')
-rw-r--r-- | functions/init.inc.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/functions/init.inc.php b/functions/init.inc.php index 669b716..2d4517c 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -8,6 +8,7 @@ // uncomment when developing, comment for shipping version //error_reporting (E_ALL); +$ALL_CALENDARS_COMBINED = 'all_calendars_combined971'; if (!defined('BASE')) define('BASE', './'); include(BASE.'config.inc.php'); include(BASE.'functions/error.php'); @@ -54,7 +55,7 @@ if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { $cal_filename = urldecode($HTTP_GET_VARS['cal']); } else { if (isset($default_cal_check)) { - if ($default_cal_check != 'all_calenders_combined971') { + if ($default_cal_check != $ALL_CALENDARS_COMBINED) { $calcheck = $calendar_path.'/'.$default_cal_check.'.ics'; $calcheckopen = @fopen($calcheck, "r"); if ($calcheckopen == FALSE) { @@ -63,7 +64,7 @@ if (isset($HTTP_GET_VARS['cal']) && $HTTP_GET_VARS['cal'] != '') { $cal_filename = $default_cal_check; } } else { - $cal_filename = 'all_calenders_combined971'; + $cal_filename = $ALL_CALENDARS_COMBINED; } } else { $cal_filename = $default_cal; @@ -98,7 +99,7 @@ if ($is_webcal) { if (!isset($filename)) { // empty the filelist array $cal_filelist = array(); - if ($cal == 'all_calenders_combined971') { // Create an array with the paths to all files to be combined + if ($cal == $ALL_CALENDARS_COMBINED) { // Create an array with the paths to all files to be combined // Note: code here is similar to code in list_icals.php // open directory $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); |