diff --git a/application/libraries/FilterCmptLib.php b/application/libraries/FilterCmptLib.php index cd934d1ae..c1a2b47cb 100644 --- a/application/libraries/FilterCmptLib.php +++ b/application/libraries/FilterCmptLib.php @@ -177,7 +177,7 @@ class FilterCmptLib $session = $this->getSession(); // If session is NOT empty -> a filter was already loaded - if (false && $session != null) + if ($session != null) { // Retrieve the filterId stored in the session $sessionFilterId = $this->_getSessionElement(FilterCmptLib::FILTER_ID); @@ -221,7 +221,7 @@ class FilterCmptLib } // If the session is empty -> first time that this filter is loaded - if (true || $session == null) + if ($session == null) { // Load filter definition data from DB $definition = $this->_loadDefinition( @@ -1173,5 +1173,4 @@ class FilterCmptLib return $filterName; } -} - +} \ No newline at end of file diff --git a/system/checksystem.php b/system/checksystem.php index 2439e3c3b..4af8bc56d 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -37,17 +37,17 @@ echo '
'; -//if (php_sapi_name() != 'cli') -//{ -// $uid = get_uid(); -// $rechte = new benutzerberechtigung(); -// $rechte->getBerechtigungen($uid); -// -// if(!$rechte->isBerechtigt('admin')) -// { -// exit('Sie haben keine Berechtigung'); -// } -//} +if (php_sapi_name() != 'cli') +{ + $uid = get_uid(); + $rechte = new benutzerberechtigung(); + $rechte->getBerechtigungen($uid); + + if(!$rechte->isBerechtigt('admin')) + { + exit('Sie haben keine Berechtigung'); + } +} echo '