/ Published in: PHP
put this code in top index file. require_once('auth.inc.php');
Expand |
Embed | Plain Text
<?php //auth.inc.php }; $user = $_SERVER['PHP_AUTH_USER']; $pass = $_SERVER['PHP_AUTH_PW']; $validated = (($uvalidated == true) || ($avalidated == true)) ; $_SESSION['newlogin'] = true; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Auth Screen</title> </head> <body> <div id="messagebox">Authorisation Required.</div> </body> </html> <?php exit; }; ?>
You need to login to post a comment.
