source: trunk/cgi-bin/httpauth.php@ 6

Last change on this file since 6 was 6, checked in by Kris Deugau, 20 years ago

Add intermediate development files for posterity

File size: 321 bytes
Line 
1<?php
2 if(!isset($PHP_AUTH_USER)) {
3 header("WWW-Authenticate: Basic realm=\"My Realm\"");
4 header("HTTP/1.0 401 Unauthorized");
5 echo "Text to send if user hits Cancel button\n";
6 exit;
7 } else {
8 echo "<p>Hello $PHP_AUTH_USER.</p>";
9 echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
10 }
11?>
Note: See TracBrowser for help on using the repository browser.