"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/calendar.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

calendar.php  (mybb_1822):calendar.php  (mybb_1823)
skipping to change at line 940 skipping to change at line 940
{ {
$ignore_timezone = ''; $ignore_timezone = '';
} }
$timezone = $mybb->get_input('timezone'); $timezone = $mybb->get_input('timezone');
} }
else else
{ {
$event_errors = ''; $event_errors = '';
$mybb->input['calendar'] = $event['cid']; $mybb->input['calendar'] = $event['cid'];
$name = htmlspecialchars_uni($event['name']); $name = $event['name'];
$description = htmlspecialchars_uni($event['description']); $description = htmlspecialchars_uni($event['description']);
if($event['private'] == 1) if($event['private'] == 1)
{ {
$privatecheck = " checked=\"checked\""; $privatecheck = " checked=\"checked\"";
} }
else else
{ {
$privatecheck = ''; $privatecheck = '';
} }
$start_date = explode("-", gmdate("j-n-Y", $event['starttime']+$e vent['timezone']*3600)); $start_date = explode("-", gmdate("j-n-Y", $event['starttime']+$e vent['timezone']*3600));
skipping to change at line 2551 skipping to change at line 2551
$calendar['link'] = get_calendar_link($calendar[' cid'], $calendar_year, $calendar_month, $day); $calendar['link'] = get_calendar_link($calendar[' cid'], $calendar_year, $calendar_month, $day);
eval("\$day_birthdays = \"".$templates->get("cale ndar_weekrow_day_birthdays")."\";"); eval("\$day_birthdays = \"".$templates->get("cale ndar_weekrow_day_birthdays")."\";");
} }
$day_link = get_calendar_link($calendar['cid'], $calendar _year, $calendar_month, $day); $day_link = get_calendar_link($calendar['cid'], $calendar _year, $calendar_month, $day);
// Is the current day // Is the current day
if($day.$calendar_month.$year == $today && $month == $cal endar_month) if($day.$calendar_month.$year == $today && $month == $cal endar_month)
{ {
$day_class = "trow_sep"; eval("\$day_bits .= \"".$templates->get("calendar _weekrow_currentday")."\";");
} }
// Not in this month // Not in this month
else if($in_month == 0) else if($in_month == 0)
{ {
$day_class = "trow1"; eval("\$day_bits .= \"".$templates->get("calendar _weekrow_day")."\";");
} }
// Just a normal day in this month // Just a normal day in this month
else else
{ {
$day_class = "trow2"; eval("\$day_bits .= \"".$templates->get("calendar _weekrow_thismonth")."\";");
} }
eval("\$day_bits .= \"".$templates->get("calendar_weekrow _day")."\";");
$day_birthdays = $day_events = ""; $day_birthdays = $day_events = "";
++$day; ++$day;
} }
if($day_bits) if($day_bits)
{ {
eval("\$calendar_rows .= \"".$templates->get("calendar_we ekrow")."\";"); eval("\$calendar_rows .= \"".$templates->get("calendar_we ekrow")."\";");
} }
$day_bits = ""; $day_bits = "";
} }
 End of changes. 5 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)