Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: calendar.php 2179 2006-09-01 04:44:17Z chris $
| * $Id: calendar.php 2429 2006-11-24 23:14:14Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 41 | Zeile 41 |
---|
// Make $eid an easy-to-use variable. $eid = intval($mybb->input['eid']);
|
// Make $eid an easy-to-use variable. $eid = intval($mybb->input['eid']);
|
|
|
/* If we are looking at an event, select the date for that event first. */ if($mybb->input['action'] == "event")
| /* If we are looking at an event, select the date for that event first. */ if($mybb->input['action'] == "event")
|
Zeile 63 | Zeile 64 |
---|
if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5) { $year = intval($mybb->input['year']);
|
if($mybb->input['year'] && $mybb->input['year'] <= my_date("Y")+5) { $year = intval($mybb->input['year']);
|
} else
| } else
|
{ $year = my_date("Y"); }
| { $year = my_date("Y"); }
|
Zeile 78 | Zeile 79 |
---|
$month = my_date("n"); } // Find the number of days in that month
|
$month = my_date("n"); } // Find the number of days in that month
|
$time = gmmktime(0, 0, 0, $month, 1, $year);
| $time = mktime(0, 0, 0, $month, 1, $year);
|
$days = my_date("t", $time); // Now the specific day if(isset($mybb->input['day']) && $mybb->input['day'] >= 1 && $mybb->input['day'] <= $days)
| $days = my_date("t", $time); // Now the specific day if(isset($mybb->input['day']) && $mybb->input['day'] >= 1 && $mybb->input['day'] <= $days)
|
Zeile 170 | Zeile 171 |
---|
if($event['username']) { $eventposter = "<a href=\"member.php?action=profile&uid=$event[author]\">".format_name($event['username'], $event['usergroup'], $event['displaygroup']) . "</a>";
|
if($event['username']) { $eventposter = "<a href=\"member.php?action=profile&uid=$event[author]\">".format_name($event['username'], $event['usergroup'], $event['displaygroup']) . "</a>";
|
} else
| } else
|
{ $eventposter = $lang->guest; } $eventdate = explode("-", $event['date']); $eventdate = mktime(0, 0, 0, $eventdate[1], $eventdate[0], $eventdate[2]);
|
{ $eventposter = $lang->guest; } $eventdate = explode("-", $event['date']); $eventdate = mktime(0, 0, 0, $eventdate[1], $eventdate[0], $eventdate[2]);
|
$eventdate = my_date($mybb->settings['dateformat'], $eventdate, $eventdate, "", 0);
| $eventdate = my_date($mybb->settings['dateformat'], $eventdate, 0, 0);
|
add_breadcrumb($lang->nav_viewevent);
| add_breadcrumb($lang->nav_viewevent);
|
Zeile 265 | Zeile 266 |
---|
$eventposter = $lang_guest; } $eventdate = explode("-", $event['date']);
|
$eventposter = $lang_guest; } $eventdate = explode("-", $event['date']);
|
$eventdate = gmmktime(0, 0, 0, $eventdate[1], $eventdate[0], $eventdate[2]); $eventdate = my_date($mybb->settings['dateformat'], $eventdate, "", 0);
| $eventdate = mktime(0, 0, 0, $eventdate[1], $eventdate[0], $eventdate[2]); $eventdate = my_date($mybb->settings['dateformat'], $eventdate, 0, 0);
|
eval("\$events .= \"".$templates->get("calendar_dayview_event")."\";"); } if(!$events)
| eval("\$events .= \"".$templates->get("calendar_dayview_event")."\";"); } if(!$events)
|
Zeile 276 | Zeile 277 |
---|
} if($birthdays) {
|
} if($birthdays) {
|
$eventdate = gmmktime(0, 0, 0, $month, $day, $year);
| $eventdate = mktime(0, 0, 0, $month, $day, $year);
|
$bdaydate = my_date($mybb->settings['dateformat'], $eventdate, 0, 0); $lang->birthdays_on_day = sprintf($lang->birthdays_on_day, $bdaydate); eval("\$bdaylist = \"".$templates->get("calendar_dayview_birthdays")."\";");
| $bdaydate = my_date($mybb->settings['dateformat'], $eventdate, 0, 0); $lang->birthdays_on_day = sprintf($lang->birthdays_on_day, $bdaydate); eval("\$bdaylist = \"".$templates->get("calendar_dayview_birthdays")."\";");
|
Zeile 367 | Zeile 368 |
---|
} } $msel[$month] = " selected=\"selected\"";
|
} } $msel[$month] = " selected=\"selected\"";
|
$dayopts = '';
| $dayopts = '';
|
//Construct option list for days for($i = 1; $i <= 31; $i++) {
| //Construct option list for days for($i = 1; $i <= 31; $i++) {
|
Zeile 562 | Zeile 563 |
---|
$plugins->run_hooks("calendar_start");
$time = mktime(0, 0, 0, $month, 1, $year);
|
$plugins->run_hooks("calendar_start");
$time = mktime(0, 0, 0, $month, 1, $year);
|
$days = my_date("t", $time);
| $days = date("t", $time);
|
$bdays = array();
// Load Birthdays
| $bdays = array();
// Load Birthdays
|
Zeile 614 | Zeile 615 |
---|
} $daybits = "<tr>\n"; $count = 0;
|
} $daybits = "<tr>\n"; $count = 0;
|
$sblanks = my_date("w", $time);
| $sblanks = date("w", $time);
|
// Blank space before first day if($sblanks) {
| // Blank space before first day if($sblanks) {
|