Vergleich member.php - 1.2.9 - 1.2.14

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

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

 * $Id: member.php 3160 2007-06-25 21:12:24Z CraKteR $

 * $Id: member.php 3739 2008-03-22 02:38:56Z dennis $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 940Zeile 940
	{
redirect("index.php", $lang->redirect_alreadyloggedout);
}

	{
redirect("index.php", $lang->redirect_alreadyloggedout);
}

	if($mybb->input['uid'] == $mybb->user['uid'] && $mybb->input['sid'] == $session->sid)



	
// Check session ID if we have one
if($mybb->input['sid'] && $mybb->input['sid'] != $session->sid)

	{

	{

		my_unsetcookie("mybbuser");
my_unsetcookie("sid");
if($mybb->user['uid'])
{
$time = time();
$lastvisit = array(
"lastactive" => $time-900,
"lastvisit" => $time,
);
$db->update_query(TABLE_PREFIX."users", $lastvisit, "uid='".$mybb->user['uid']."'");
$db->delete_query(TABLE_PREFIX."sessions", "sid='".$session->sid."'");

if(function_exists("loggedOut"))
{
loggedOut($mybb->user['uid']);
}
}

$plugins->run_hooks("member_logout_end");

redirect("index.php", $lang->redirect_loggedout);
}
else

		error($lang->error_notloggedout);
}
// Otherwise, check logoutkey
else if(!$mybb->input['sid'] && $mybb->input['logoutkey'] != $mybb->user['logoutkey'])




















	{
error($lang->error_notloggedout);
}

	{
error($lang->error_notloggedout);
}

 

my_unsetcookie("mybbuser");
my_unsetcookie("sid");
if($mybb->user['uid'])
{
$time = time();
$lastvisit = array(
"lastactive" => $time-900,
"lastvisit" => $time,
);
$db->update_query(TABLE_PREFIX."users", $lastvisit, "uid='".$mybb->user['uid']."'");
$db->delete_query(TABLE_PREFIX."sessions", "sid='".$session->sid."'");
}
$plugins->run_hooks("member_logout_end");

redirect("index.php", $lang->redirect_loggedout);

}
elseif($mybb->input['action'] == "profile")
{

}
elseif($mybb->input['action'] == "profile")
{

Zeile 1030Zeile 1029

$lang->nav_profile = sprintf($lang->nav_profile, $memprofile['username']);
add_breadcrumb($lang->nav_profile);


$lang->nav_profile = sprintf($lang->nav_profile, $memprofile['username']);
add_breadcrumb($lang->nav_profile);





	$lang->users_forum_info = sprintf($lang->users_forum_info, $memprofile['username']);
$lang->users_contact_details = sprintf($lang->users_contact_details, $memprofile['username']);

if($mybb->settings['enablepms'] != "no" && $memprofile['receivepms'] != "no" && $memperms['canusepms'] != "no" && strpos(",".$memprofile['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
$lang->send_pm = sprintf($lang->send_pm, $memprofile['username']);

	$lang->users_forum_info = sprintf($lang->users_forum_info, $memprofile['username']);
$lang->users_contact_details = sprintf($lang->users_contact_details, $memprofile['username']);

if($mybb->settings['enablepms'] != "no" && $memprofile['receivepms'] != "no" && $memperms['canusepms'] != "no" && strpos(",".$memprofile['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
$lang->send_pm = sprintf($lang->send_pm, $memprofile['username']);

	}
else

	}
else

	{
$lang->send_pm = '';
}

	{
$lang->send_pm = '';
}

Zeile 1056Zeile 1055
			$avatar_width_height = "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";
}
$avatar = "<img src=\"$memprofile[avatar]\" alt=\"\" $avatar_width_height />";

			$avatar_width_height = "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";
}
$avatar = "<img src=\"$memprofile[avatar]\" alt=\"\" $avatar_width_height />";

	}

	}

	else
{
$avatar = '';

	else
{
$avatar = '';

	}

	}


if($memprofile['hideemail'] != "yes")


if($memprofile['hideemail'] != "yes")

	{

	{

		eval("\$sendemail = \"".$templates->get("member_profile_email")."\";");

		eval("\$sendemail = \"".$templates->get("member_profile_email")."\";");

	}
else
{

	}
else
{

		$sendemail = '';
}

if($memprofile['website'])

		$sendemail = '';
}

if($memprofile['website'])

	{

	{

		$memprofile['website'] = htmlspecialchars_uni($memprofile['website']);
$website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";
}
else

		$memprofile['website'] = htmlspecialchars_uni($memprofile['website']);
$website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";
}
else

	{

	{

		$website = '';
}


		$website = '';
}


Zeile 1104Zeile 1103
	$stats = $cache->read("stats");
$posts = $stats['numposts'];
if($posts == 0)

	$stats = $cache->read("stats");
$posts = $stats['numposts'];
if($posts == 0)

	{

	{

		$percent = "0";

		$percent = "0";

	}
else
{

	}
else
{

		$percent = $memprofile['postnum']*100/$posts;
$percent = round($percent, 2);

		$percent = $memprofile['postnum']*100/$posts;
$percent = round($percent, 2);

	}


	}


	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS referrals", "referrer='{$memprofile['uid']}'");
$referrals = $db->fetch_field($query, "referrals");

if(!empty($memprofile['icq']))

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(*) AS referrals", "referrer='{$memprofile['uid']}'");
$referrals = $db->fetch_field($query, "referrals");

if(!empty($memprofile['icq']))

	{

	{

		$memprofile['icq'] = intval($memprofile['icq']);
}
else

		$memprofile['icq'] = intval($memprofile['icq']);
}
else

	{

	{

		$memprofile['icq'] = '';
}


		$memprofile['icq'] = '';
}


Zeile 1130Zeile 1129
		$lang->away_note = sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);
if(!empty($memprofile['awayreason']))

		$lang->away_note = sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);
if(!empty($memprofile['awayreason']))

		{

		{

			$awayreason = htmlspecialchars_uni($memprofile['awayreason']);
}
else

			$awayreason = htmlspecialchars_uni($memprofile['awayreason']);
}
else

Zeile 1140Zeile 1139
		if($memprofile['returndate'] == '')
{
$returndate = "$lang->unknown";

		if($memprofile['returndate'] == '')
{
$returndate = "$lang->unknown";

		}
else

		}
else

		{			
$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);

		{			
$returnhome = explode("-", $memprofile['returndate']);
$returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]);

Zeile 1216Zeile 1215
	$displaygroup = usergroup_displaygroup($memprofile['displaygroup']);

// Get the user title for this user

	$displaygroup = usergroup_displaygroup($memprofile['displaygroup']);

// Get the user title for this user

	if($displaygroup['usertitle'])






	if(trim($memprofile['usertitle']) != '')
{
// User has custom user title
$usertitle = $memprofile['usertitle'];
}
elseif(trim($displaygroup['usertitle']) != '')

	{

	{

 
		// User has group title

		$usertitle = $displaygroup['usertitle'];

		$usertitle = $displaygroup['usertitle'];

		$stars = $displaygroup['stars'];

 
	}
else
{

	}
else
{

 
		// No usergroup title so get a default one

		$query = $db->simple_select(TABLE_PREFIX."usertitles", "*", "", array('order_by' => 'posts', 'order_dir' => 'DESC'));
while($title = $db->fetch_array($query))
{

		$query = $db->simple_select(TABLE_PREFIX."usertitles", "*", "", array('order_by' => 'posts', 'order_dir' => 'DESC'));
while($title = $db->fetch_array($query))
{

Zeile 1233Zeile 1238
				$starimage = $title['starimage'];
break;
}

				$starimage = $title['starimage'];
break;
}

		}
}







		}
}

if($displaygroup['stars'])
{
$stars = $displaygroup['stars'];
}


	if(!empty($displaygroup['image']))
{
if(!empty($mybb->user['language']))

	if(!empty($displaygroup['image']))
{
if(!empty($mybb->user['language']))

Zeile 1250Zeile 1260
		eval("\$groupimage = \"".$templates->get("member_profile_groupimage")."\";");
}


		eval("\$groupimage = \"".$templates->get("member_profile_groupimage")."\";");
}


	if(trim($memprofile['usertitle']) != '')
{
$usertitle = $memprofile['usertitle'];
}

	




	if(!$starimage)
{
$starimage = $displaygroup['starimage'];

	if(!$starimage)
{
$starimage = $displaygroup['starimage'];

Zeile 1282Zeile 1289
	$query = $db->simple_select(TABLE_PREFIX."userfields", "*", "ufid='$uid'");
$userfields = $db->fetch_array($query);
$customfields = '';

	$query = $db->simple_select(TABLE_PREFIX."userfields", "*", "ufid='$uid'");
$userfields = $db->fetch_array($query);
$customfields = '';

	$bgcolor = trow1;

	$bgcolor = "trow1";

	// If this user is an Administrator or a Moderator then we wish to show all profile fields
if($mybb->usergroup['cancp'] == "yes" || $mybb->usergroup['issupermod'] == "yes" || $mybb->usergroup['gid'] == 6)
{

	// If this user is an Administrator or a Moderator then we wish to show all profile fields
if($mybb->usergroup['cancp'] == "yes" || $mybb->usergroup['issupermod'] == "yes" || $mybb->usergroup['gid'] == 6)
{

Zeile 1392Zeile 1399
}
elseif($mybb->input['action'] == "do_emailuser" && $mybb->request_method == "post")
{

}
elseif($mybb->input['action'] == "do_emailuser" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("member_do_emailuser_start");

if($mybb->usergroup['cansendemail'] == "no")

	$plugins->run_hooks("member_do_emailuser_start");

if($mybb->usergroup['cansendemail'] == "no")