Exemple #1
0
 $check_cron = check_last_cron_execution();
 $check_emails = check_email_queue();
 $minutes_last_exec = check_last_cron_execution(true);
 $seconds_last_exec = $minutes_last_exec * 60;
 $queued_emails = check_email_queue(true);
 $update_manager_msg = get_parameter('update_manager_msg', '');
 $check_alarm_calendar = check_alarm_calendar();
 $check_directory_permissions = check_directory_permissions();
 $check_minor_release_available = db_check_minor_relase_available();
 $check_browser = check_browser();
 $alerts = '';
 if ($minutes_last_exec == '') {
     $alerts .= '<h4 style="width:100%; float: left; font-size:15px !important; font-weight: bold; margin-top:32px;">' . __('Crontask not installed. Please check documentation!') . '</h4>';
 }
 if (!$check_cron) {
     $alerts .= '<h4 style="width:100%; float: left; font-size:15px !important; font-weight: bold; margin-top:32px;">' . __('Last time Crontask was executed was ') . calendar_seconds_to_humand($seconds_last_exec) . __(' ago') . '</h4>';
 }
 if (!$check_emails) {
     $alerts .= '<h4 style="width:100%; float: left; font-size:15px !important; font-weight: bold; margin-top:32px;">' . __('Too many pending mail in mail queue: ') . $queued_emails . '. Check SMTP configuration' . '</h4>';
 }
 if ($update_manager_msg != '') {
     $update_manager_msg .= "<br><a href='index.php?sec=godmode&sec2=godmode/setup/update_manager'>" . __("Go to Update Manager") . "</a>";
     $alerts .= '<h4 style="width:100%; float: left; font-size:15px !important; font-weight: bold; margin-top:32px;">' . $update_manager_msg . '</h4>';
 }
 if ($check_alarm_calendar) {
     $alarm_calendar_msg = '';
     $alarms = check_alarm_calendar(false);
     if ($alarms) {
         foreach ($alarms as $alarm) {
             $time = substr($alarm['timestamp'], 11, 5);
             $msg = '<h3 style="float: left; font-size:18px !important; font-weight: bold; margin-top:32px;">' . __('Calendar alert: ') . '</h3><h4 style="float: left; font-size:15px !important; font-weight: bold; margin-top:32px;"><a href="index.php?sec=agenda&sec2=operation/agenda/agenda">' . $time . ' ' . __($alarm['title']) . '</a></h4><h5 style="float: left; font-size:12px !important; font-weight: bold; margin-top:32px;">' . $alarm['description'] . '</h5>';
Exemple #2
0
 $check_cron = check_last_cron_execution();
 $check_emails = check_email_queue();
 $minutes_last_exec = check_last_cron_execution(true);
 $seconds_last_exec = $minutes_last_exec * 60;
 $queued_emails = check_email_queue(true);
 $update_manager_msg = get_parameter('update_manager_msg', '');
 $check_alarm_calendar = check_alarm_calendar();
 $check_directory_permissions = check_directory_permissions();
 $check_minor_release_available = db_check_minor_relase_available();
 $check_browser = check_browser();
 $alerts = '';
 if ($minutes_last_exec == '') {
     $alerts .= '<h4>' . __('Crontask not installed. Please check documentation!') . '</h4>';
 }
 if (!$check_cron) {
     $alerts .= '<h4>' . __('Last time Crontask was executed was ') . calendar_seconds_to_humand($seconds_last_exec) . __(' ago') . '</h4>';
 }
 if (!$check_emails) {
     $alerts .= '<h4>' . __('Too many pending mail in mail queue: ') . $queued_emails . '. Check SMTP configuration' . '</h4>';
 }
 if ($update_manager_msg != '') {
     $update_manager_msg .= "<br><a href='index.php?sec=godmode&sec2=godmode/setup/update_manager'>" . __("Go to Update Manager") . "</a>";
     $alerts .= '<h4>' . $update_manager_msg . '</h4>';
 }
 if ($check_alarm_calendar) {
     $alarm_calendar_msg = '';
     $alarms = check_alarm_calendar(false);
     if ($alarms) {
         foreach ($alarms as $alarm) {
             $time = substr($alarm['timestamp'], 11, 5);
             $msg = '<h3>' . __('Calendar alert: ') . '</h3><h4><a href="index.php?sec=agenda&sec2=operation/agenda/agenda">' . $time . ' ' . __($alarm['title']) . '</a></h4><h5>' . $alarm['description'] . '</h5>';