Vergleich member.php - 1.2.3 - 1.2.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

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

 * $Id: member.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 563Zeile 563
			$emailnotifycheck = '';
$receivepmscheck = "checked=\"checked\"";
$pmpopupcheck = "checked=\"checked\"";

			$emailnotifycheck = '';
$receivepmscheck = "checked=\"checked\"";
$pmpopupcheck = "checked=\"checked\"";

			$pmnotifycheck = '';

			$emailpmnotifycheck = '';

			$invisiblecheck = '';
if($mybb->settings['dstcorrection'] == "yes")
{

			$invisiblecheck = '';
if($mybb->settings['dstcorrection'] == "yes")
{

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

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

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



	
// 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['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 1014Zeile 1013
		else
{
$uid = $mybb->user['uid'];

		else
{
$uid = $mybb->user['uid'];

		}

		}

	}

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

	}

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

Zeile 1046Zeile 1045
	$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']);
$lang->users_signature = sprintf($lang->users_signature, $memprofile['username']);
$lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);

	$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']);
$lang->users_signature = sprintf($lang->users_signature, $memprofile['username']);
$lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);


if(!empty($memprofile['awayreason']))
{
$awayreason = $memprofile['awayreason'];
}
else
{
$awayreason = $lang->away_no_reason;
}

 

if($memprofile['avatar'])
{


if($memprofile['avatar'])
{

Zeile 1065Zeile 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 = '';
}

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

	else
{
$avatar = '';
}

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

	{

	{

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

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

Zeile 1081Zeile 1071
	}

if($memprofile['website'])

	}

if($memprofile['website'])

	{

	{

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

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

Zeile 1110Zeile 1100
	{
$ppd = $memprofile['postnum'];
}

	{
$ppd = $memprofile['postnum'];
}

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS posts", "visible > 0");
$posts = $db->fetch_field($query, "posts");

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

	if($posts == 0)
{
$percent = "0";

	if($posts == 0)
{
$percent = "0";

Zeile 1138Zeile 1128
	{
$lang->away_note = sprintf($lang->away_note, $memprofile['username']);
$awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);

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

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








		if(!empty($memprofile['awayreason']))
{
$awayreason = htmlspecialchars_uni($memprofile['awayreason']);
}
else
{
$awayreason = $lang->away_no_reason;
}

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

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

		}

		}

		else
{
$returnhome = explode("-", $memprofile['returndate']);

		else
{
$returnhome = explode("-", $memprofile['returndate']);

Zeile 1152Zeile 1149
		eval("\$awaybit = \"".$templates->get("member_profile_away")."\";");
}
if($memprofile['dst'] == "yes")

		eval("\$awaybit = \"".$templates->get("member_profile_away")."\";");
}
if($memprofile['dst'] == "yes")

	{

	{

		$memprofile['timezone']++;
if(my_substr($memprofile['timezone'], 0, 1) != "-")
{

		$memprofile['timezone']++;
if(my_substr($memprofile['timezone'], 0, 1) != "-")
{

Zeile 1162Zeile 1159
	$memregdate = my_date($mybb->settings['dateformat'], $memprofile['regdate']);
$memlocaldate = gmdate($mybb->settings['dateformat'], time() + ($memprofile['timezone'] * 3600));
$memlocaltime = gmdate($mybb->settings['timeformat'], time() + ($memprofile['timezone'] * 3600));

	$memregdate = my_date($mybb->settings['dateformat'], $memprofile['regdate']);
$memlocaldate = gmdate($mybb->settings['dateformat'], time() + ($memprofile['timezone'] * 3600));
$memlocaltime = gmdate($mybb->settings['timeformat'], time() + ($memprofile['timezone'] * 3600));





	$localtime = sprintf($lang->local_time_format, $memlocaldate, $memlocaltime);

if($memprofile['lastactive'])

	$localtime = sprintf($lang->local_time_format, $memlocaldate, $memlocaltime);

if($memprofile['lastactive'])

	{

	{

		$memlastvisitdate = my_date($mybb->settings['dateformat'], $memprofile['lastactive']);
$memlastvisitsep = ', ';
$memlastvisittime = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);

		$memlastvisitdate = my_date($mybb->settings['dateformat'], $memprofile['lastactive']);
$memlastvisitsep = ', ';
$memlastvisittime = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);

	}

	}

	else
{
$memlastvisitdate = $lang->lastvisit_never;

	else
{
$memlastvisitdate = $lang->lastvisit_never;

Zeile 1183Zeile 1180
		$membday = explode("-", $memprofile['birthday']);
if($membday[2])
{

		$membday = explode("-", $memprofile['birthday']);
if($membday[2])
{

 
			$year = my_date("Y");
$lang->membdayage = sprintf($lang->membdayage, get_age($memprofile['birthday']));
$membdayage = $lang->membdayage;

			if($membday[2] < 1970)
{
$w_day = get_weekday($membday[1], $membday[0], $membday[2]);

			if($membday[2] < 1970)
{
$w_day = get_weekday($membday[1], $membday[0], $membday[2]);

Zeile 1194Zeile 1194
				$membday = mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]);
$membday = date($bdayformat, $membday);
}

				$membday = mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]);
$membday = date($bdayformat, $membday);
}

			$lang->membdayage = sprintf($lang->membdayage, get_age($memprofile['birthday']));
$membdayage = $lang->membdayage;

 
		}
else
{

		}
else
{

Zeile 1283Zeile 1281
	$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 1393Zeile 1391
}
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")