hasRole(AdminModel::ADMIN_TYPE_SUPERADMIN)){ GUIHandler::redirect("admin/index.php"); } MenuGenerator::generateMenu(); HTMLHelper::generateAdminHead(); $error = ""; try { $id = PostHandler::get("id"); if (is_null($id) || strcmp("", $id)==0){ GUIHandler::redirect("admin/logs.php"); } $logMsg = GlobalVariables::get("dao")->getFirst("LogModel",array("id"=>$id)); if (is_null($logMsg)){ GUIHandler::redirect("admin/logs.php"); } $action = PostHandler::get("action"); if (!is_null($action) && strcmp("", $action)!=0){ if (strcmp("cancel", $action)==0){ GUIHandler::redirect("admin/logs.php"); } } }catch(GUIException $ex){ $error = $ex->getMessage(); }catch (Exception $exec){ LoggingFacilityManager::getLogger("gui")->log(LoggingFacility::$LEVEL_ERROR, $exec->getMessage()); $error = "UNEXPECTED - ".$error = $ex->getMessage();; } ?>