-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.php
More file actions
17 lines (17 loc) · 692 Bytes
/
Copy pathauth.php
File metadata and controls
17 lines (17 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
if (!isset($_SERVER['PHP_AUTH_USER'])) {
//header("WWW-Authenticate: Basic realm=\"Private Area\"");
//header("HTTP/1.0 401 Unauthorized");
//print "Sorry - you need valid credentials to be granted access!\n";
exit;
} else {
if (($_SERVER['PHP_AUTH_USER'] == 'k**********g') && ($_SERVER['PHP_AUTH_PW'] == 'K**********a')) {
//print "Welcome to the private area!";
} else {
//header("WWW-Authenticate: Basic realm=\"Private Area\"");
//header("HTTP/1.0 400 Unauthorized");
//print "Sorry - you need valid credentials to be granted access!\n";
exit;
}
}
?>