Logout(); header("Location: ".$adminURL."/index.php?logout=1"); exit; } /*$m = GetModuleArray(); foreach($m as $key=>$value) { $path = $pathtoroot.$value.'admin/include/parser.php'; if( file_exists($path) ) include_once($path); }*/ $rootURL = 'http://'.ThisDomain().$objConfig->Get('Site_Path'); $location = $rootURL.GetVar('do').'?env='.GetVar('env'); header('Location: '.$location); exit; ?>