Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   PHP login script (http://www.go4expert.com/forums/php-login-script-t12021/)

XXxxImmortalxxXX 11Jul2008 13:38

PHP login script
 
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

rider 11Jul2008 16:44

Re: PHP login script
 
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 :)


All times are GMT +5.5. The time now is 06:39.