Vergleich member.php - 1.8.21 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 22Zeile 22
$templatelist .= ",member_profile_modoptions_manageuser,member_profile_modoptions_editprofile,member_profile_modoptions_banuser,member_profile_modoptions_viewnotes,member_profile_modoptions_editnotes,member_profile_modoptions_purgespammer";
$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,member_viewnotes";
$templatelist .= ",member_register_question,member_register_question_refresh,usercp_options_timezone,usercp_options_timezone_option,usercp_options_language_option,member_profile_customfields_field_multi_item,member_profile_customfields_field_multi";

$templatelist .= ",member_profile_modoptions_manageuser,member_profile_modoptions_editprofile,member_profile_modoptions_banuser,member_profile_modoptions_viewnotes,member_profile_modoptions_editnotes,member_profile_modoptions_purgespammer";
$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,member_viewnotes";
$templatelist .= ",member_register_question,member_register_question_refresh,usercp_options_timezone,usercp_options_timezone_option,usercp_options_language_option,member_profile_customfields_field_multi_item,member_profile_customfields_field_multi";

$templatelist .= ",member_profile_contact_fields_google,member_profile_contact_fields_icq,member_profile_contact_fields_skype,member_profile_contact_fields_yahoo,member_profile_pm,member_profile_contact_details";

$templatelist .= ",member_profile_contact_fields_google,member_profile_contact_fields_icq,member_profile_contact_fields_skype,member_profile_pm,member_profile_contact_details,member_profile_modoptions_manageban";

$templatelist .= ",member_profile_banned_remaining,member_profile_addremove,member_emailuser_guest,member_register_day,usercp_options_tppselect_option,postbit_warninglevel_formatted,member_profile_userstar,member_profile_findposts";
$templatelist .= ",usercp_options_tppselect,usercp_options_pppselect,member_resetpassword,member_login,member_profile_online,usercp_options_pppselect_option,postbit_reputation_formatted,member_emailuser,usercp_profile_profilefields_text";
$templatelist .= ",member_profile_modoptions_ipaddress,member_profile_modoptions,member_profile_banned,member_register_language,member_resendactivation,usercp_profile_profilefields_checkbox,member_register_password,member_coppa_form";

$templatelist .= ",member_profile_banned_remaining,member_profile_addremove,member_emailuser_guest,member_register_day,usercp_options_tppselect_option,postbit_warninglevel_formatted,member_profile_userstar,member_profile_findposts";
$templatelist .= ",usercp_options_tppselect,usercp_options_pppselect,member_resetpassword,member_login,member_profile_online,usercp_options_pppselect_option,postbit_reputation_formatted,member_emailuser,usercp_profile_profilefields_text";
$templatelist .= ",member_profile_modoptions_ipaddress,member_profile_modoptions,member_profile_banned,member_register_language,member_resendactivation,usercp_profile_profilefields_checkbox,member_register_password,member_coppa_form";

$templatelist .= ",member_profile_modoptions_manageban";

 

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 1960Zeile 1959
			}

$mybb->input['url'] = str_replace('&', '&', $mybb->input['url']);

			}

$mybb->input['url'] = str_replace('&', '&', $mybb->input['url']);

 

if(my_strpos($mybb->input['url'], $mybb->settings['bburl'].'/') !== 0)
{
if(my_strpos($mybb->input['url'], '/') === 0)
{
$mybb->input['url'] = my_substr($mybb->input['url'], 1);
}
$url_segments = explode('/', $mybb->input['url']);
$mybb->input['url'] = $mybb->settings['bburl'].'/'.end($url_segments);
}


// Redirect to the URL if it is not member.php
redirect($mybb->input['url'], $lang->redirect_loggedin);


// Redirect to the URL if it is not member.php
redirect($mybb->input['url'], $lang->redirect_loggedin);

Zeile 2220Zeile 2229

$contact_fields = array();
$any_contact_field = false;


$contact_fields = array();
$any_contact_field = false;

	foreach(array('icq', 'yahoo', 'skype', 'google') as $field)

	foreach(array('icq', 'skype', 'google') as $field)

	{
$contact_fields[$field] = '';
$settingkey = 'allow'.$field.'field';

	{
$contact_fields[$field] = '';
$settingkey = 'allow'.$field.'field';

Zeile 2414Zeile 2423
	$memlocaltime = gmdate($mybb->settings['timeformat'], TIME_NOW + ($memprofile['timezone'] * 3600));

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

	$memlocaltime = gmdate($mybb->settings['timeformat'], TIME_NOW + ($memprofile['timezone'] * 3600));

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


if($memprofile['lastactive'])
{
$memlastvisitdate = my_date($mybb->settings['dateformat'], $memprofile['lastactive']);
$memlastvisitsep = $lang->comma;
$memlastvisittime = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);
}
else
{
$memlastvisitdate = $lang->lastvisit_never;
$memlastvisitsep = '';
$memlastvisittime = '';
}

 

if($memprofile['birthday'])
{


if($memprofile['birthday'])
{

Zeile 2560Zeile 2556
	}

if(!empty($starimage))

	}

if(!empty($starimage))

	{

	{

		// Only display stars if we have an image to use...
$starimage = str_replace("{theme}", $theme['imgdir'], $starimage);
$userstars = '';
for($i = 0; $i < $stars; ++$i)
{
eval("\$userstars .= \"".$templates->get("member_profile_userstar", 1, 0)."\";");

		// Only display stars if we have an image to use...
$starimage = str_replace("{theme}", $theme['imgdir'], $starimage);
$userstars = '';
for($i = 0; $i < $stars; ++$i)
{
eval("\$userstars .= \"".$templates->get("member_profile_userstar", 1, 0)."\";");

		}

		}

	}

// User is currently online and this user has permissions to view the user on the WOL
$timesearch = TIME_NOW - $mybb->settings['wolcutoffmins']*60;
$query = $db->simple_select("sessions", "location,nopermission", "uid='$uid' AND time>'{$timesearch}'", array('order_by' => 'time', 'order_dir' => 'DESC', 'limit' => 1));
$session = $db->fetch_array($query);

	}

// User is currently online and this user has permissions to view the user on the WOL
$timesearch = TIME_NOW - $mybb->settings['wolcutoffmins']*60;
$query = $db->simple_select("sessions", "location,nopermission", "uid='$uid' AND time>'{$timesearch}'", array('order_by' => 'time', 'order_dir' => 'DESC', 'limit' => 1));
$session = $db->fetch_array($query);


$online_status = '';
if($memprofile['invisible'] != 1 || $mybb->usergroup['canviewwolinvis'] == 1 || $memprofile['uid'] == $mybb->user['uid'])
{
// Lastvisit
if($memprofile['lastactive'])
{
$memlastvisitsep = $lang->comma;
$memlastvisitdate = my_date('relative', $memprofile['lastactive']);
}

// Time Online
$timeonline = $lang->none_registered;
if($memprofile['timeonline'] > 0)
{
$timeonline = nice_time($memprofile['timeonline']);
}

// Online?
if(!empty($session))
{
// Fetch their current location
$lang->load("online");
require_once MYBB_ROOT."inc/functions_online.php";
$activity = fetch_wol_activity($session['location'], $session['nopermission']);
$location = build_friendly_wol_location($activity);
$location_time = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);

eval("\$online_status = \"".$templates->get("member_profile_online")."\";");
}
// User is offline
else
{
eval("\$online_status = \"".$templates->get("member_profile_offline")."\";");
}
}

if($memprofile['invisible'] == 1 && $mybb->usergroup['canviewwolinvis'] != 1 && $memprofile['uid'] != $mybb->user['uid'])


$timeonline = $lang->none_registered;
$memlastvisitdate = $lang->lastvisit_never;
$last_seen = max(array($memprofile['lastactive'], $memprofile['lastvisit']));
if(!empty($last_seen))


































	{

	{

		$memlastvisitsep = '';
$memlastvisittime = '';
$memlastvisitdate = $lang->lastvisit_never;

if($memprofile['lastactive'])

		// We have some stamp here
if($memprofile['invisible'] == 1 && $mybb->usergroup['canviewwolinvis'] != 1 && $memprofile['uid'] != $mybb->user['uid'])




		{

		{

			// We have had at least some active time, hide it instead

 
			$memlastvisitdate = $lang->lastvisit_hidden;

			$memlastvisitdate = $lang->lastvisit_hidden;

 
			$online_status = $timeonline = $lang->timeonline_hidden;

		}

		}

 
		else
{
$memlastvisitdate = my_date('relative', $last_seen);

if($memprofile['timeonline'] > 0)
{
$timeonline = nice_time($memprofile['timeonline']);
}

// Online?
if(!empty($session))
{
// Fetch their current location
$lang->load("online");
require_once MYBB_ROOT."inc/functions_online.php";
$activity = fetch_wol_activity($session['location'], $session['nopermission']);
$location = build_friendly_wol_location($activity);
$location_time = my_date($mybb->settings['timeformat'], $last_seen);

eval("\$online_status = \"".$templates->get("member_profile_online")."\";");
}
}
}





		$timeonline = $lang->timeonline_hidden;



	if(!isset($online_status))
{
eval("\$online_status = \"".$templates->get("member_profile_offline")."\";");

	}

// Reset the background colours to keep it inline

	}

// Reset the background colours to keep it inline

Zeile 2943Zeile 2928

if(isset($memperms['canbereported']) && $memperms['canbereported'] == 1)
{


if(isset($memperms['canbereported']) && $memperms['canbereported'] == 1)
{

			$add_remove_options = array('url' => "javascript:Report.reportUser({$memprofile['uid']});", 'class' => 'report_user_button', 'lang' => $lang->report_user);
eval("\$report_options = \"".$templates->get("member_profile_addremove")."\";"); // Report User















			$reportable = true;
$query = $db->simple_select("reportedcontent", "reporters", "reportstatus != '1' AND id = '{$memprofile['uid']}' AND type = 'profile'");
if($db->num_rows($query))
{
$report = $db->fetch_array($query);
$report['reporters'] = my_unserialize($report['reporters']);
if(is_array($report['reporters']) && in_array($mybb->user['uid'], $report['reporters']))
{
$reportable = false;
}
}
if($reportable)
{
$add_remove_options = array('url' => "javascript:Report.reportUser({$memprofile['uid']});", 'class' => 'report_user_button', 'lang' => $lang->report_user);
eval("\$report_options = \"".$templates->get("member_profile_addremove")."\";"); // Report User
}

		}
}


		}
}