Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- ob_start();
- ########################################\
- # #
- # PRIVATE LOGIN PAGE #
- # #
- # #
- ########################################/
- $auth = 1;
- $name='ed4544d345562697a49e5cfc6a8ab545'; ///password mu yg udah di encrypt ke md5
- $pass='ed4544d345562697a49e5cfc6a8ab545'; ///password mu yg udah di encrypt ke md5
- if($auth == 1) {
- if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass)
- {
- header('WWW-Authenticate: Basic realm="Private Login Page"');
- header('HTTP/1.0 401 Unauthorized');
- exit("<b></b>");
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment