예제 #1
0
        $compatible_input_timeformat = 'H:i';
        break;
}
// SET ERROR VARIABLES
$is_error = FALSE;
$result = FALSE;
// CHECK FOR ADMIN ALLOWANCE OF PHOTO
if (!$event->eventowner_level_info['level_event_photo'] && ($task == "remove" || $task == "upload")) {
    $task = "main";
}
// DELETE PHOTO
if ($task == "remove") {
    $event->event_photo_delete();
    $event->event_lastupdate();
} elseif ($task == "upload") {
    $event->event_photo_upload("photo");
    $is_error = $event->is_error;
    $error_message = $event->error_message;
    if ($is_error == 0) {
        $event->event_lastupdate();
    }
} elseif ($task == "dosave") {
    $event->event_info['event_title'] = $_POST['event_title'];
    $event->event_info['event_desc'] = $_POST['event_desc'];
    $event->event_info['event_host'] = $_POST['event_host'];
    $event->event_info['event_location'] = $_POST['event_location'];
    $event->event_info['event_eventcat_id'] = $_POST['event_eventcat_id'];
    $event->event_info['event_eventsubcat_id'] = $_POST['event_eventsubcat_id'];
    $event_date_start = $_POST['event_date_start'];
    $event_time_start = preg_replace('/[^aAmMpP0-9:]/', '', $_POST['event_time_start']);
    $event_date_end = $_POST['event_date_end'];