Update of /cvsroot/phpicalendar/phpicalendar
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22591/phpicalendar
Modified Files:
config.inc-dist.php month.php
Log Message:
modify mont.php to set current view before parsing, and to remove some extraneous stuff duplicated in init.inc.php
Index: config.inc-dist.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/config.inc-dist.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** config.inc-dist.php 23 May 2007 18:29:33 -0000 1.2
--- config.inc-dist.php 11 Oct 2007 23:46:31 -0000 1.3
***************
*** 1,5 ****
<?php
! // Configuration file for PHP iCalendar 2.23rc1
//
// To set values, change the text between the single quotes
--- 1,5 ----
<?php
! // Configuration file for PHP iCalendar 2.25
//
// To set values, change the text between the single quotes
Index: month.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** month.php 2 Nov 2006 08:06:03 -0000 1.138
--- month.php 11 Oct 2007 23:46:31 -0000 1.139
***************
*** 1,16 ****
<?php
define('BASE', './');
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);
--- 1,11 ----
<?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");
if ($minical_view == 'current') $minical_view = 'month';
$unix_time = strtotime($getdate);
$today_today = date('Ymd', time() + $second_offset);
|