getSession('user', null);
if ($user == null) {
$user = new User();
}
$user->hackinjectConfig();
?>
XXX
getRequest('action');
switch ($action) {
case 'login':
if (!$user->checkLogin()) {
$user->login();
}
menu();
break;
case 'logout':
$user->logout();
break;
default:
if (!$user->isLogged()) {
$user->login();
}
else {
menu();
$page = $system->getRequest('page', 'dashboard');
switch ($page) {
default:
case 'dashboard':
break;
case 'agents':
$viewAgents = new ViewAgents();
$viewAgents->show();
break;
case 'agent':
$viewAgent = new ViewAgent();
$viewAgent->show();
break;
case 'servers':
break;
}
}
break;
}
?>
setSession('user', $user);
//$system->sessionDestroy();
ob_end_flush();
?>