Home | History | Annotate | Download | only in auth
      1 <?php
      2   if (!isset($_SERVER['PHP_AUTH_USER'])) {
      3    header('WWW-Authenticate: Basic realm="WebKit AppCache Test Realm"');
      4    header('HTTP/1.0 401 Unauthorized');
      5    echo 'Authentication canceled';
      6    exit;
      7   } else {
      8    echo "<html manifest='manifest.php'>\n";
      9    echo "<p>Subframe, should disappear.</p>\n";
     10    echo "<script>\n";
     11    echo "    applicationCache.oncached = parent.success;\n";
     12    echo "    applicationCache.onnoupdate = parent.success;\n";
     13    echo "</script>\n";
     14    echo "</html>\n";
     15   }
     16 ?>
     17