Vergleich calendar.php - 1.2.9 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: calendar.php 3030 2007-04-26 00:19:47Z Tikitiki $

 * $Id: calendar.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 46Zeile 46


/* If we are looking at an event, select the date for that event first. */



/* If we are looking at an event, select the date for that event first. */

if($mybb->input['action'] == "event")

if($mybb->input['action'] == "event" || $mybb->input['action'] == "editevent" || $mybb->input['action'] == "do_editevent")

{
$options = array(
"limit" => 1

{
$options = array(
"limit" => 1

Zeile 174Zeile 174
	if($event['username'])
{
$eventposter = "<a href=\"member.php?action=profile&amp;uid=$event[author]\">".format_name($event['username'], $event['usergroup'], $event['displaygroup']) . "</a>";

	if($event['username'])
{
$eventposter = "<a href=\"member.php?action=profile&amp;uid=$event[author]\">".format_name($event['username'], $event['usergroup'], $event['displaygroup']) . "</a>";

	}
else
{

	}
else
{

		$eventposter = $lang->guest;
}
$eventdate = explode("-", $event['date']);

		$eventposter = $lang->guest;
}
$eventdate = explode("-", $event['date']);

Zeile 298Zeile 298
// Process the adding of an event.
if($mybb->input['action'] == "do_addevent" && $mybb->request_method == "post")
{

// Process the adding of an event.
if($mybb->input['action'] == "do_addevent" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("calendar_do_addevent_start");

// Set up eventhandler.

	$plugins->run_hooks("calendar_do_addevent_start");

// Set up eventhandler.

Zeile 415Zeile 418
// Process the editing of an event.
if($mybb->input['action'] == "do_editevent" && $mybb->request_method == "post")
{

// Process the editing of an event.
if($mybb->input['action'] == "do_editevent" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("calendar_do_editevent_start");

$query = $db->simple_select(TABLE_PREFIX."events", "*", "eid='{$eid}'");

	$plugins->run_hooks("calendar_do_editevent_start");

$query = $db->simple_select(TABLE_PREFIX."events", "*", "eid='{$eid}'");

Zeile 436Zeile 442

// Redirect back to the main calendar view.
redirect("calendar.php", $lang->redirect_eventdeleted);


// Redirect back to the main calendar view.
redirect("calendar.php", $lang->redirect_eventdeleted);

	}
else

	}
else

	{
// Set up eventhandler.
require_once MYBB_ROOT."inc/datahandlers/event.php";

	{
// Set up eventhandler.
require_once MYBB_ROOT."inc/datahandlers/event.php";

Zeile 568Zeile 574
	$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 = date("t", $time);

	$days = my_date("t", $time);

	$bdays = array();

// Load Birthdays

	$bdays = array();

// Load Birthdays

Zeile 621Zeile 627
	}
$daybits = "<tr>\n";
$count = 0;

	}
$daybits = "<tr>\n";
$count = 0;

	$sblanks = date("w", $time);

	$sblanks = my_date("w", $time);

	// Blank space before first day
if($sblanks)
{

	// Blank space before first day
if($sblanks)
{