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 /month.php | |
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
Diffstat (limited to 'month.php')
-rw-r--r-- | month.php | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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)); |