diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-11 23:46:31 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2007-10-11 23:46:31 +0000 |
commit | 83d7e71966a1387b451e085b1c84b63035cbacbe (patch) | |
tree | ef4abfd493bab10a973c9b30b8d13082a2974c98 | |
parent | e5d50688df549539cdf62387d1eca4b3c07aac8e (diff) | |
download | phpicalendar-83d7e71966a1387b451e085b1c84b63035cbacbe.tar.gz phpicalendar-83d7e71966a1387b451e085b1c84b63035cbacbe.tar.bz2 phpicalendar-83d7e71966a1387b451e085b1c84b63035cbacbe.zip |
modify mont.php to set current view before parsing, and to remove some extraneous stuff duplicated in init.inc.php
-rw-r--r-- | config.inc-dist.php | 2 | ||||
-rw-r--r-- | month.php | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/config.inc-dist.php b/config.inc-dist.php index 0b895f9..bdee12d 100644 --- a/config.inc-dist.php +++ b/config.inc-dist.php @@ -1,6 +1,6 @@ <?php -// Configuration file for PHP iCalendar 2.23rc1 +// Configuration file for PHP iCalendar 2.25 // // To set values, change the text between the single quotes // Follow instructions to the right for detailed information @@ -1,17 +1,12 @@ <?php define('BASE', './'); +$current_view = "month"; require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$charset"); -$current_view = "month"; if ($minical_view == 'current') $minical_view = 'month'; -ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); -$this_day = $day_array2[3]; -$this_month = $day_array2[2]; -$this_year = $day_array2[1]; - $unix_time = strtotime($getdate); $today_today = date('Ymd', time() + $second_offset); $tomorrows_date = date('Ymd', strtotime("+1 day", $unix_time)); |