X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=index.php;h=7fcf106a9d1dc464785e6d972cfd26ae3e8d0f0c;hb=03bedef53fe38250f38315c10e3bf04ad737f3f1;hp=e41237a56767aaa3517a7df551707844fc55b468;hpb=94a175c653bdc28a698830b8c2298a214d79defc;p=contagged diff --git a/index.php b/index.php index e41237a..7fcf106 100644 --- a/index.php +++ b/index.php @@ -48,8 +48,9 @@ $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 '

Access Denied

'; exit(); }