Vergleich inc/datahandlers/event.php - 1.4.5 - 1.4.15

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: event.php 4304 2009-01-02 01:11:56Z chris $

 * $Id: event.php 5379 2011-02-21 11:06:42Z Tomm $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 255Zeile 255
	{
global $mybb;
$event = &$this->data;

	{
global $mybb;
$event = &$this->data;

 
		
if(!is_array($event['repeats']) || !$event['repeats']['repeats'])
{
return true;
}


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


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

		}

if(!is_array($event['repeats']) || !$event['repeats']['repeats'])
{
return true;

 
		}

switch($event['repeats']['repeats'])

		}

switch($event['repeats']['repeats'])

Zeile 395Zeile 395
		}

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

		}

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





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

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

Zeile 465Zeile 465
			'ignoretimezone' => intval($event['ignoretimezone']),
'usingtime' => intval($event['usingtime']),
'repeats' => $db->escape_string(serialize($event['repeats']))

			'ignoretimezone' => intval($event['ignoretimezone']),
'usingtime' => intval($event['usingtime']),
'repeats' => $db->escape_string(serialize($event['repeats']))

		);


		);


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

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

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

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

Zeile 537Zeile 537

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


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

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





			if(!empty($event['repeats']))
{
$event['repeats'] = serialize($event['repeats']);
}
$this->event_update_data['repeats'] = $db->escape_string($event['repeats']);

		}

if(isset($event['timezone']))

		}

if(isset($event['timezone']))