X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=img.php;h=087ff2da69462cbda39e858f43f4b96d8e8c28bf;hb=fee3219cb9e4a505c4a368d879ea3bde6b6e27a3;hp=cb405cda6cba3131e92e2ec15153714518770b2e;hpb=957e03f1c6791f6275ecfdc5e954c673c930844e;p=contagged diff --git a/img.php b/img.php index cb405cd..087ff2d 100644 --- a/img.php +++ b/img.php @@ -2,7 +2,7 @@ require_once('inc/init.php'); ldap_login(); -if ($conf['userlogreq'] && $user == ''){ +if ($conf['userlogreq'] && !isset($_SESSION['ldapab']['username'])){ header("HTTP/1.0 401 Access Denied"); echo '

Access Denied

'; exit();