$smarty->assign('org',$_REQUEST['org']);
//display templates
if(!empty($_REQUEST['export'])){
- if ($conf['userlogreq'] == 1 && $user == ''){
- header("HTTP/1.1 401 ACCESS DENIED");
+ if ($conf['userlogreq'] && $user == ''){
+ header("HTTP/1.1 401 Access Denied");
+ echo '<h1>Access Denied</h1>';
exit();
}