if(!isset($_SERVER["PHP_AUTH_USER"])) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
- exit(0);
} else return;
}
return false;
}
-function gwvp_fourZeroThree()
-{
- header("HTTP/1.0 403 Permission Denied");
- exit(0);
-}
-
function gwvp_AuthNoPerms()
{
gwvp_goMainPage("gwvp_AuthNoPermsBody");
echo "<form method=\"post\" action=\"$BASE_URL/login\">Username <input type=\"text\" name=\"username\" class=\"login\">";
echo " Passowrd <input type=\"text\" name=\"password\" class=\"login\"><input type=\"submit\" name=\"login\" value=\"Login\" class=\"loginbutton\">";
if(gwvp_IsRegistrationEnabled()) echo "<a href=\"$BASE_URL/register\">Register</a></form>";
- else echo "</form>";
+ else echo "</form><br>";
}