blob: 7e5d30d199a04032d7fa2556fba5529abb83bcde [file] [log] [blame]
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="WebKit AppCache Test Realm"');
header('HTTP/1.0 401 Unauthorized');
echo 'Authentication canceled';
exit;
} else {
echo "<html manifest='manifest.php'>\n";
echo "<p>Subframe, should disappear.</p>\n";
echo "<script>\n";
echo " applicationCache.oncached = parent.success;\n";
echo " applicationCache.onnoupdate = parent.success;\n";
echo "</script>\n";
echo "</html>\n";
}
?>