projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is Philippe Mingo
[squirrelmail.git]
/
plugins
/
calendar
/
calendar.php
diff --git
a/plugins/calendar/calendar.php
b/plugins/calendar/calendar.php
index 442ab314aac888e2a0bc84bf67781489df3fcffa..013215bf028b5eace641f94ff63d90ea5ddf3a17 100644
(file)
--- a/
plugins/calendar/calendar.php
+++ b/
plugins/calendar/calendar.php
@@
-8,7
+8,7
@@
*
* Displays the main calendar page (month view).
*
*
* Displays the main calendar page (month view).
*
- *
18 Jan 2002 Adapted to official SM rules philippe@squirrelmail.org.
+ *
$Id$
*/
require_once('calendar_data.php');
*/
require_once('calendar_data.php');
@@
-32,6
+32,7
@@
function startcalendar() {
$next_month = date( 'm', $next_date);
$prev_year = date( 'Y', $prev_date);
$next_year = date( 'Y', $next_date );
$next_month = date( 'm', $next_date);
$prev_year = date( 'Y', $prev_date);
$next_year = date( 'Y', $next_date );
+ $self = 'calendar.php';
echo "<TR BGCOLOR=\"$color[0]\"><TD>" .
"<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1 BGCOLOR=\"$color[0]\">" .
echo "<TR BGCOLOR=\"$color[0]\"><TD>" .
"<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=1 BGCOLOR=\"$color[0]\">" .
@@
-82,8
+83,8
@@
function drawmonthview() {
if (isset($calendardata[$cdate])){
$i=0;
while ($calfoo = each($calendardata[$cdate])) {
if (isset($calendardata[$cdate])){
$i=0;
while ($calfoo = each($calendardata[$cdate])) {
- $calbar = $calendardata[$cdate][$calfoo[
key
]];
- echo ($calbar[
priority
]==1) ? "<FONT COLOR=\"$color[1]\">$calbar[title]</FONT><br>\n" : "$calbar[title]<br>\n";
+ $calbar = $calendardata[$cdate][$calfoo[
'key'
]];
+ echo ($calbar[
'priority'
]==1) ? "<FONT COLOR=\"$color[1]\">$calbar[title]</FONT><br>\n" : "$calbar[title]<br>\n";
$i=$i+1;
if($i==2){
break;
$i=$i+1;
if($i==2){
break;
@@
-116,13
+117,13
@@
function endcalendar() {
}
}
-if($month <= 0){
+if(
!isset( $month ) ||
$month <= 0){
$month = date( 'm' );
}
$month = date( 'm' );
}
-if($year <= 0){
+if(
!isset($year) ||
$year <= 0){
$year = date( 'Y' );
}
$year = date( 'Y' );
}
-if($day <= 0){
+if(
!isset($day) ||
$day <= 0){
$day = date( 'd' );
}
$day = date( 'd' );
}