MD5 passwords, including code from Robert Hartman and John Gray.
git-svn-id: http://svn.automattic.com/wordpress/trunk@850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
+14
-15
@@ -2,7 +2,7 @@
|
||||
|
||||
require_once('../wp-config.php');
|
||||
|
||||
/* checking login & pass in the database */
|
||||
/* Checking login & pass in the database */
|
||||
function veriflog() {
|
||||
global $HTTP_COOKIE_VARS,$cookiehash;
|
||||
global $tableusers, $wpdb;
|
||||
@@ -31,19 +31,18 @@ function veriflog() {
|
||||
}
|
||||
}
|
||||
}
|
||||
//if ( $user_login!="" && $user_pass!="" && $id_session!="" && $adresse_ip==$REMOTE_ADDR) {
|
||||
// if ( !(veriflog()) AND !(verifcookielog()) ) {
|
||||
if (!(veriflog())) {
|
||||
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
|
||||
$error="<strong>Error</strong>: wrong login or password";
|
||||
}
|
||||
$redir = "Location: $siteurl/wp-login.php?redirect_to=" . urlencode($HTTP_SERVER_VARS["REQUEST_URI"]);
|
||||
header($redir);
|
||||
exit();
|
||||
|
||||
if ( !veriflog() ) {
|
||||
header('Expires: Wed, 11 Jan 1984 05:00:00 GMT');
|
||||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
|
||||
$error="<strong>Error</strong>: wrong login or password.";
|
||||
}
|
||||
//}
|
||||
$redir = "Location: $siteurl/wp-login.php?redirect_to=" . urlencode($HTTP_SERVER_VARS["REQUEST_URI"]);
|
||||
header($redir);
|
||||
exit();
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user