Vergleich member.php - 1.2.0 - 1.2.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: member.php 2193 2006-09-03 12:33:03Z chris $

 * $Id: member.php 2789 2007-02-14 01:52:24Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 210Zeile 210
		if($mybb->settings['regtype'] != "randompass")
{
// Log them in

		if($mybb->settings['regtype'] != "randompass")
{
// Log them in

			my_setcookie("mybbuser", $user_info['uid']."_".$user_info['loginkey']);

			my_setcookie("mybbuser", $user_info['uid']."_".$user_info['loginkey'], null, true);

		}

if($mybb->settings['regtype'] == "verify")

		}

if($mybb->settings['regtype'] == "verify")

Zeile 381Zeile 381
			}
elseif($referrername)
{

			}
elseif($referrername)
{

				$query = $db->simple_select(TABLE_PREFIX."users", "uid", "username='".$db->escape_string($referrername)."'");

				$query = $db->simple_select(TABLE_PREFIX."users", "uid", "LOWER(username)='".$db->escape_string(my_strtolower($referrername))."'");

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

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

Zeile 615Zeile 615

if($mybb->input['username'])
{


if($mybb->input['username'])
{

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");

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

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

Zeile 799Zeile 799

if($mybb->input['username'])
{


if($mybb->input['username'])
{

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");

		$query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");

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

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

Zeile 902Zeile 902
	}

my_setcookie('loginattempts', 1);

	}

my_setcookie('loginattempts', 1);

	$db->delete_query(TABLE_PREFIX."sessions", "ip='".$session->ipaddress."' AND sid != '".$session->sid."'");

	$db->delete_query(TABLE_PREFIX."sessions", "ip='".$db->escape_string($session->ipaddress)."' AND sid != '".$session->sid."'");

	$newsession = array(
"uid" => $user['uid'],
"loginattempts" => 1,

	$newsession = array(
"uid" => $user['uid'],
"loginattempts" => 1,

Zeile 912Zeile 912
	// Temporarily set the cookie remember option for the login cookies
$mybb->user['remember'] = $user['remember'];


	// Temporarily set the cookie remember option for the login cookies
$mybb->user['remember'] = $user['remember'];


	my_setcookie("mybbuser", $user['uid']."_".$user['loginkey']);
my_setcookie("sid", $session->sid, -1);

	my_setcookie("mybbuser", $user['uid']."_".$user['loginkey'], null, true);
my_setcookie("sid", $session->sid, -1, true);


if(function_exists("loggedIn"))
{


if(function_exists("loggedIn"))
{

Zeile 943Zeile 943
	if($mybb->input['uid'] == $mybb->user['uid'])
{
my_unsetcookie("mybbuser");

	if($mybb->input['uid'] == $mybb->user['uid'])
{
my_unsetcookie("mybbuser");

		my_setcookie("sid", 0, -1);

		my_unsetcookie("sid");

		if($mybb->user['uid'])
{
$time = time();

		if($mybb->user['uid'])
{
$time = time();

Zeile 1144Zeile 1144
			$returndate = "$lang->unknown";
}
else

			$returndate = "$lang->unknown";
}
else

		{

		{			

			$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);
$returndate = my_date($mybb->settings['dateformat'], $returnmkdate);

			$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);
$returndate = my_date($mybb->settings['dateformat'], $returnmkdate);

Zeile 1399Zeile 1399
	{
error_no_permission();
}

	{
error_no_permission();
}

	$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "username='".$db->escape_string($mybb->input['touser'])."'");

	$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['touser']))."'");

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

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