Exemplo n.º 1
0
             if ($message_frequency == "0") {
                 EfrontNotification::addNotification($timestamp, $subject, $message, $condition, $html_message);
                 // Notification periodically starting from a specific date
             } else {
                 if ($message_frequency == "1") {
                     EfrontNotification::addNotification($timestamp, $subject, $message, $condition, $html_message, $form->exportValue('send_interval'));
                 }
             }
         } else {
             // Notification on a specific time, once
             if ($message_frequency == "0") {
                 EfrontNotification::editNotification($_GET['edit_notification'], $timestamp, $subject, $message, $condition, $html_message);
                 // Notification periodically starting from a specific date
             } else {
                 if ($message_frequency == "1") {
                     EfrontNotification::editNotification($_GET['edit_notification'], $timestamp, $subject, $message, $condition, $html_message, $form->exportValue('send_interval'));
                 }
             }
         }
         $message = _NOTIFICATIONSETUPSUCCESSFULLY;
         $message_type = 'success';
     }
 } else {
     $send_immediately = false;
     // Notification on event
     if ($notification_type == 1) {
         $event_type = explode("_", $form->exportValue('event_types'));
         $send_immediately = $form->exportValue('send_immediately');
         $after_time = false;
     } else {
         if ($notification_type == 2) {