Zeile 6 | Zeile 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 4037 2008-07-24 11:56:23Z ZiNgaBuRgA $
| * $Id: event.php 4621 2009-12-20 19:15:38Z RyanGordon $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 255 | Zeile 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 395 | Zeile 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 465 | Zeile 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 537 | Zeile 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']))
|