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

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 62Zeile 62
	function verify_name()
{
$name = &$this->data['name'];

	function verify_name()
{
$name = &$this->data['name'];

 
		$name = utf8_handle_4byte_string($name);

		$name = trim($name);
if(!$name)
{

		$name = trim($name);
if(!$name)
{

Zeile 79Zeile 80
	function verify_description()
{
$description = &$this->data['description'];

	function verify_description()
{
$description = &$this->data['description'];

 
		$description = utf8_handle_4byte_string($description);

		$description = trim($description);
if(!$description)
{

		$description = trim($description);
if(!$description)
{

Zeile 103Zeile 105
			$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']);

		$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']);

Zeile 136Zeile 138
				$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']);

			$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']);

Zeile 268Zeile 270
		{
return true;
}

		{
return true;
}

		



		if(!$event['endtime'])
{
$this->set_error("only_ranged_events_repeat");

		if(!$event['endtime'])
{
$this->set_error("only_ranged_events_repeat");

Zeile 401Zeile 403
		{
$this->verify_repeats();
}

		{
$this->verify_repeats();
}

		



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

// We are done validating, return.

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

// We are done validating, return.

Zeile 431Zeile 433
		{
die("The event needs to be validated before inserting it into the DB.");
}

		{
die("The event needs to be validated before inserting it into the DB.");
}

		



		if(count($this->get_errors()) > 0)
{
die("The event is not valid.");

		if(count($this->get_errors()) > 0)
{
die("The event is not valid.");

Zeile 457Zeile 459
		{
$visible = 1;
}

		{
$visible = 1;
}

			



		// Prepare an array for insertion into the database.
$this->event_insert_data = array(
'cid' => intval($event['cid']),

		// Prepare an array for insertion into the database.
$this->event_insert_data = array(
'cid' => intval($event['cid']),

Zeile 501Zeile 503
		{
die("The event needs to be validated before inserting it into the DB.");
}

		{
die("The event needs to be validated before inserting it into the DB.");
}

		



		if(count($this->get_errors()) > 0)
{
die("The event is not valid.");

		if(count($this->get_errors()) > 0)
{
die("The event is not valid.");

Zeile 556Zeile 558
		{
$this->event_update_data['timezone'] = $db->escape_string(floatval($event['timezone']));
}

		{
$this->event_update_data['timezone'] = $db->escape_string(floatval($event['timezone']));
}

		



		if(isset($event['ignoretimezone']))
{
$this->event_update_data['ignoretimezone'] = intval($event['ignoretimezone']);

		if(isset($event['ignoretimezone']))
{
$this->event_update_data['ignoretimezone'] = intval($event['ignoretimezone']);

		}		

		}


if(isset($event['private']))
{


if(isset($event['private']))
{