GetSettingsValue("system_requirelogin"); if ($reqLogin && $op !="chklogin" && !$curUser->IsLogged() && $op !="login" ) { //$this_page = basename($_SERVER['REQUEST_URI']); //$goto = ($this_page == "admin.php") ? "admin.php" : "index.php" ; //ShowLogin(AWF_URL."/$goto"); Redirect("",AWF_URL."?mod=system&op=login",0); } //Get Module //TODO: FIX THAT Module thing! if (!isset($_REQUEST["mod"])) $activeModuleName = $AWFKernel->GetSettingsValue("system_initmodule"); else $activeModuleName = $_REQUEST["mod"]; //check Modules validity if (!$AWFKernel->IsModuleValid($activeModuleName)) Redirect("Invalid Module"); //chk Access to it! if (!$AWFKernel->IsActionPermited($activeModuleName, $curUser->userGroup, $op)) Redirect("Unauthorized"); if($activeModuleName!=''){ if ( file_exists(AWF_ROOT_PATH."/modules/".$activeModuleName ."/language/".$lang."/main.php") ) { include_once (AWF_ROOT_PATH."/modules/".$activeModuleName ."/language/".$lang."/main.php"); } else { include_once (AWF_ROOT_PATH."/modules/".$activeModuleName ."/language/".$languages[0]['code']."/main.php"); } } ?>