Vergleich inc/functions_user.php - 1.2.0 - 1.2.1

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 50Zeile 50
function validate_password_from_username($username, $password)
{
global $db;

function validate_password_from_username($username, $password)
{
global $db;

	$query = $db->query("SELECT uid,username,password,salt,loginkey FROM ".TABLE_PREFIX."users WHERE username='".$db->escape_string($username)."' LIMIT 1");

	$query = $db->query("SELECT uid,username,password,salt,loginkey,remember FROM ".TABLE_PREFIX."users WHERE username='".$db->escape_string($username)."' LIMIT 1");

	$user = $db->fetch_array($query);
if(!$user['uid'])
{

	$user = $db->fetch_array($query);
if(!$user['uid'])
{

Zeile 541Zeile 541
	// Update number of new messages.
if($count_to_update & 2)
{

	// Update number of new messages.
if($count_to_update & 2)
{

		$query = $db->query("SELECT COUNT(pmid) AS pms_new FROM ".TABLE_PREFIX."privatemessages WHERE uid='".$uid."' AND dateline>'".$mybb->user['lastvisit']."' AND folder=1");

		$query = $db->query("SELECT COUNT(pmid) AS pms_new FROM ".TABLE_PREFIX."privatemessages WHERE uid='".$uid."' AND dateline>'".$lastvisit."' AND folder=1");

		$new = $db->fetch_array($query);
$pmcount['newpms'] = $new['pms_new'];
}

		$new = $db->fetch_array($query);
$pmcount['newpms'] = $new['pms_new'];
}