Vergleich inc/datahandlers/event.php - 1.6.3 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: event.php 5380 2011-02-21 12:04:43Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 103Zeile 103
			$this->set_error("invalid_start_date");
return false;
}

			$this->set_error("invalid_start_date");
return false;
}

 
		
$event['start_date']['day'] = intval($event['start_date']['day']);
$event['start_date']['month'] = intval($event['start_date']['month']);
$event['start_date']['year'] = intval($event['start_date']['year']);


if($event['start_date']['day'] > date("t", mktime(0, 0, 0, $event['start_date']['month'], 1, $event['start_date']['year'])))
{


if($event['start_date']['day'] > date("t", mktime(0, 0, 0, $event['start_date']['month'], 1, $event['start_date']['year'])))
{

Zeile 132Zeile 136
				$this->set_error("invalid_end_date");
return false;
}

				$this->set_error("invalid_end_date");
return false;
}

 
		
$event['end_date']['day'] = intval($event['end_date']['day']);
$event['end_date']['month'] = intval($event['end_date']['month']);
$event['end_date']['year'] = intval($event['end_date']['year']);


if($event['end_date']['day'] > date("t", mktime(0, 0, 0, $event['end_date']['month'], 1, $event['end_date']['year'])))
{


if($event['end_date']['day'] > date("t", mktime(0, 0, 0, $event['end_date']['month'], 1, $event['end_date']['year'])))
{

Zeile 389Zeile 397
			$this->verify_date();
}


			$this->verify_date();
}


		if(($this->method == "insert" && $events['endtime']) || array_key_exists('repeats', $event))

		if(($this->method == "insert" && $event['endtime']) || array_key_exists('repeats', $event))

		{
$this->verify_repeats();
}


		{
$this->verify_repeats();
}


		$plugins->run_hooks_by_ref("datahandler_event_validate", $this);

		$plugins->run_hooks("datahandler_event_validate", $this);


// We are done validating, return.
$this->set_validated(true);


// We are done validating, return.
$this->set_validated(true);

Zeile 467Zeile 475
			'repeats' => $db->escape_string(serialize($event['repeats']))
);


			'repeats' => $db->escape_string(serialize($event['repeats']))
);


		$plugins->run_hooks_by_ref("datahandler_event_insert", $this);

		$plugins->run_hooks("datahandler_event_insert", $this);


$this->eid = $db->insert_query("events", $this->event_insert_data);



$this->eid = $db->insert_query("events", $this->event_insert_data);


Zeile 569Zeile 577
			$this->event_update_data['uid'] = intval($event['uid']);
}


			$this->event_update_data['uid'] = intval($event['uid']);
}


		$plugins->run_hooks_by_ref("datahandler_event_update", $this);

		$plugins->run_hooks("datahandler_event_update", $this);


$db->update_query("events", $this->event_update_data, "eid='".intval($event['eid'])."'");



$db->update_query("events", $this->event_update_data, "eid='".intval($event['eid'])."'");