case "Graphs": include "overview.php"; switch ($_SESSION['sub_tab']) { case "0": DisplayGraphs("flows"); break; case "1": DisplayGraphs("packets"); break; case "2": DisplayGraphs("traffic"); break; } break; case "Details": DisplayDetails(); DisplayProcessing(); break; /*case "Alerts": DisplayAlerts(); break; case "Stats": DisplayAdminPage(); break; case "Plugins": // Run the plugin if (count($plugins) > 0) call_user_func($plugin_run, $_SESSION['sub_tab'], $_SESSION['profile']); // otherwise do nothing break;
$oObj = MetaModel::GetObjectByName($sClass, $id, false); } if (is_null($oObj)) { $oP->set_title(Dict::S('UI:ErrorPageTitle')); $oP->P(Dict::S('UI:ObjectDoesNotExist')); } else { try { $oObj->Reload(); } catch (Exception $e) { // Probably not allowed to see this instance of a derived class $oObj = null; $oP->set_title(Dict::S('UI:ErrorPageTitle')); $oP->P(Dict::S('UI:ObjectDoesNotExist')); } if (!is_null($oObj)) { DisplayDetails($oP, $sClass, $oObj, $id); } } break; /////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////// case 'search_oql': // OQL query $sOQLClass = utils::ReadParam('oql_class', '', false, 'class'); $sBaseClass = utils::ReadParam('base_class', $sOQLClass, false, 'class'); $sOQLClause = utils::ReadParam('oql_clause', '', false, 'raw_data'); $sFormat = utils::ReadParam('format', ''); $bSearchForm = utils::ReadParam('search_form', true); $sTitle = utils::ReadParam('title', 'UI:SearchResultsPageTitle'); if (empty($sOQLClass)) { throw new ApplicationException(Dict::Format('UI:Error:1ParametersMissing', 'oql_class'));