Ejemplo n.º 1
0
     utilities_view_user_log();
     bottom_footer();
     break;
 case 'clear_user_log':
     utilities_clear_user_log();
     utilities_view_user_log();
     break;
 case 'view_tech':
     $php_info = utilities_php_modules();
     top_header();
     utilities_view_tech($php_info);
     bottom_footer();
     break;
 case 'view_boost_status':
     top_header();
     boost_display_run_status();
     bottom_footer();
     break;
 case 'view_snmpagent_cache':
     top_header();
     snmpagent_utilities_run_cache();
     bottom_footer();
     break;
 case 'rebuild_snmpagent_cache':
     snmpagent_cache_rebuilt();
     header('Location: utilities.php?action=view_snmpagent_cache');
     exit;
     break;
 case 'view_snmpagent_events':
     top_header();
     snmpagent_utilities_run_eventlog();
Ejemplo n.º 2
0
function boost_utilities_action($action)
{
    global $config, $colors;
    if ($action == 'view_boost_status') {
        /* ================= input validation ================= */
        input_validate_input_number(get_request_var_request("refresh"));
        /* ==================================================== */
        load_current_session_value("refresh", "sess_boost_utilities_refresh", "30");
        $refresh["seconds"] = $_REQUEST["refresh"];
        $refresh["page"] = "utilities.php?action=view_boost_status";
        include_once $config['base_path'] . "/include/top_header.php";
        boost_display_run_status();
        include_once $config['base_path'] . "/include/bottom_footer.php";
        exit;
    }
    return $action;
}