// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. global $config; include_once 'include/functions.php'; include_once 'include/functions_ui.php'; include_once 'include/functions_calendar.php'; $get_alerts = get_parameter('get_alerts', 0); $get_alert_popup = get_parameter('get_alert_popup', 0); $check_alarms_popup = get_parameter('check_alarms_popup', 0); $set_alarm_checked = get_parameter('set_alarm_checked', 0); if ($get_alerts) { $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>'; }
require "operation/main_menu.php"; echo '</div>'; echo '</div>'; echo '<div class="header_search_icon">'; echo '<div class="header_search">'; echo "<form method=post action='index.php?sec2=operation/search'>"; echo "<input id='global_search' type=text name='search_string' size=20 value='{$search_string}'>"; echo '</form>'; echo '</div>'; echo '<div class="header_icons">'; //// This div is necessary for javascript actions. Dont touch /// echo '<div style="font-size: 0px; display: inline;" id="id_user">' . $config['id_user'] . "</div>"; ///////////////////////////////////////////////////////////////// $got_alerts = 0; $check_cron_exec = check_last_cron_execution(); $check_email_queue = check_email_queue(); $result_check_update_manager = ''; $check_alarm_calendar = check_alarm_calendar(); $check_directory_permissions = check_directory_permissions(); $check_minor_release_available = false; $check_browser = check_browser(); if (dame_admin($config['id_user'])) { $check_minor_release_available = db_check_minor_relase_available(); } if ($is_login && dame_admin($config['id_user'])) { //check if user has logged and user is admin. Check update manager once. if ($config["enable_update_manager"]) { if ($config["enteprise"] == 1) { enterprise_include("include/functions_update_manager.php"); $result_check_update_manager = update_manager_check_packages_for_header(); } else {