sddns/login.php
root 5f61820c54 improved output
added uri frame support
2010-10-07 14:22:51 +02:00

25 lines
644 B
PHP
Executable file

<?php
require_once 'include/init.php';
Output::start('html');
if (!isAuthentificated()) {
header('WWW-Authenticate: Basic realm="Administration area"');
header('HTTP/1.0 401 Unauthorized');
echo '<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn\'t understand how to supply
the credentials required.</p>
<hr>
<address>' . $_SERVER['SERVER_SIGNATURE'] . '</address>';
} else {
$output->add('authentificated as', 'notice', $_SERVER['PHP_AUTH_USER']);
}
Output::send()
?>