mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Missing querycount
git-svn-id: https://develop.svn.wordpress.org/trunk@558 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,7 +5,7 @@ require_once('../wp-config.php');
|
||||
/* checking login & pass in the database */
|
||||
function veriflog() {
|
||||
global $HTTP_COOKIE_VARS,$cookiehash;
|
||||
global $tableusers, $wpdb;
|
||||
global $tableusers, $wpdb, $querycount;
|
||||
|
||||
if (!empty($HTTP_COOKIE_VARS["wordpressuser_".$cookiehash])) {
|
||||
$user_login = $HTTP_COOKIE_VARS["wordpressuser_".$cookiehash];
|
||||
@@ -20,6 +20,7 @@ function veriflog() {
|
||||
return false;
|
||||
|
||||
$login = $wpdb->get_row("SELECT user_login, user_pass FROM $tableusers WHERE user_login = '$user_login'");
|
||||
++$querycount;
|
||||
|
||||
if (!$login) {
|
||||
return false;
|
||||
@@ -46,4 +47,4 @@ function veriflog() {
|
||||
exit();
|
||||
}
|
||||
//}
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user