getSession('user', null); if ($user == null) { $user = new User(); } $user->hackinjectConfig(); ?> Pandora FMS - <?php echo __('the Flexible Monitoring System (mobile version)'); ?>
getRequest('action'); switch ($action) { case 'login': if (!$user->checkLogin()) { $user->showLogin(); } else { if ($user->isLogged()) { $user->hackinjectConfig(); menu(); if (! check_acl($system->getConfig('id_user'), 0, "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $tactical = new Tactical(); $tactical->show(); } else { $user->showLogin(); } } break; case 'logout': $user->logout(); $user->showLogin('' . __('LOGOUT') . ''); break; default: if (!$user->isLogged()) { $user->showLogin(); } else { menu(); $page = $system->getRequest('page', 'tactical'); switch ($page) { case 'reports': if ($enterpriseHook !== ENTERPRISE_NOT_HOOK) { $enterprise = new Enterprise($page); $enterprise->show(); } break; default: case 'tactical': if (! check_acl($system->getConfig('id_user'), 0, "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $tactical = new Tactical(); $tactical->show(); break; case 'agents': if (! check_acl($system->getConfig('id_user'), 0, "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $viewAgents = new ViewAgents(); $viewAgents->show(); break; case 'agent': $action = $system->getRequest('action', 'view_agent'); switch ($action) { case 'view_module_graph': $idAgentModule = $system->getRequest('id', 0); $viewGraph = new viewGraph($idAgentModule); $viewGraph->show(); break; default: case 'view_agent': $viewAgent = new ViewAgent(); $viewAgent->show(); break; } break; case 'servers': if (! check_acl($system->getConfig('id_user'), 0, "PM")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $viewServers = new ViewServers(); $viewServers->show(); break; case 'alerts': if (! check_acl($system->getConfig('id_user'), 0, "PM")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $viewAlerts = new ViewAlerts(); $viewAlerts->show(); break; case 'groups': if (! check_acl($system->getConfig('id_user'), 0, "PM")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $groupView = new GroupView(); $groupView->show(); break; case 'events': if (! check_acl($system->getConfig('id_user'), 0, "IR")) { db_pandora_audit("ACL Violation", "Trying to access event viewer"); require ("general/noaccess.php"); return; } $eventsView = new EventsView(); $eventsView->show(); break; case 'monitor': if (! check_acl($system->getConfig('id_user'), 0, "AR")) { db_pandora_audit("ACL Violation", "Trying to access Agent Data view"); require ("../general/noaccess.php"); return; } $monitorStatus = new MonitorStatus($user); $monitorStatus->show(); break; } } break; } ?>
isLogged()) { footer(); } ?> setSession('user', $user); //$system->sessionDestroy(); ob_end_flush(); ?>