echo "\t<title>Oops, we have an empty username</title>\n";
echo "</head>\n";
echo "<body>\n";
echo "\tCan't authenticate an <strong>empty username</strong>.<br /><br />\n";
echo "\tIt seems as if you were trying to perform AD auth but you forgot to enable the required <strong>mod_authnz_ldap</strong> module in Apache<br />\n";
echo "</body>\n";
echo "</html>\n";
die();
}
$query='select * from guirights order by code desc;';
$sql='SELECT loc.id, loc.name as office, b.name as building FROM location as loc LEFT JOIN building as b on loc.building_id=b.id ORDER BY building, office'; // Get details for all offices