PHP login script

XXxxImmortalxxXX's Avatar
Invasive contributor
Hello guys im wondering if any of u guys have a secured nice advanced md5 or md4 hash supported php script that you might mind sharing me im looking for one if you dont have it md5 or md4 its okay ill add it in later.


Thankyou
0
rider's Avatar
Go4Expert Member
Code:
<?php
$language='eng';
// Username and password. md5 password and username
$name=''; //  (user login)
$pass=''; //  (user password)

$auth = 1; 
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="Control Panel"');
   header('HTTP/1.0 401 Unauthorized');
   exit("<b><a href=http://hacked.ro>hacked.ro</a> : Access Denied</b>");
   }
}
?>
Have phun