Zeile 839 | Zeile 839 |
---|
$ref['username'] = htmlspecialchars_uni($ref['username']); $referrername = $ref['username']; }
|
$ref['username'] = htmlspecialchars_uni($ref['username']); $referrername = $ref['username']; }
|
elseif(isset($referrer))
| elseif(!empty($referrer))
|
{ $query = $db->simple_select("users", "username", "uid='".(int)$referrer['uid']."'"); $ref = $db->fetch_array($query);
| { $query = $db->simple_select("users", "username", "uid='".(int)$referrer['uid']."'"); $ref = $db->fetch_array($query);
|
Zeile 901 | Zeile 901 |
---|
$code = $select = $val = $options = $expoptions = $useropts = ''; $seloptions = array(); $profilefield['type'] = htmlspecialchars_uni($profilefield['type']);
|
$code = $select = $val = $options = $expoptions = $useropts = ''; $seloptions = array(); $profilefield['type'] = htmlspecialchars_uni($profilefield['type']);
|
$thing = explode("\n", $profilefield['type'], "2");
| $thing = explode("\n", $profilefield['type'], 2);
|
$type = trim($thing[0]);
|
$type = trim($thing[0]);
|
$options = $thing[1];
| $options = isset($thing[1]) ? $thing[1] : null;
|
$select = ''; $field = "fid{$profilefield['fid']}"; $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
| $select = ''; $field = "fid{$profilefield['fid']}"; $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
|
Zeile 2345 | Zeile 2345 |
---|
}
// Get the user title for this user
|
}
// Get the user title for this user
|
unset($usertitle);
| |
unset($stars);
|
unset($stars);
|
| $usertitle = '';
|
$starimage = ''; if(trim($memprofile['usertitle']) != '') {
| $starimage = ''; if(trim($memprofile['usertitle']) != '') {
|
Zeile 2360 | Zeile 2360 |
---|
} else {
|
} else {
|
// No usergroup title so get a default one $usertitles = $cache->read('usertitles');
| if(!isset($usertitles)) { $usertitles = $cache->read('usertitles'); }
|
|
|
| // No usergroup title so get a default one
|
if(is_array($usertitles)) { foreach($usertitles as $title)
| if(is_array($usertitles)) { foreach($usertitles as $title)
|
Zeile 2386 | Zeile 2389 |
---|
// Set the number of stars if display group has constant number of stars $stars = $memperms['stars']; }
|
// Set the number of stars if display group has constant number of stars $stars = $memperms['stars']; }
|
elseif(!$stars)
| elseif(!isset($stars))
|
{
|
{
|
if(!is_array($usertitles))
| if(!isset($usertitles))
|
{ $usertitles = $cache->read('usertitles'); }
| { $usertitles = $cache->read('usertitles'); }
|
Zeile 2405 | Zeile 2408 |
---|
break; } }
|
break; } }
|
| }
if(!isset($stars)) { $stars = 0;
|
} }
| } }
|
Zeile 2476 | Zeile 2484 |
---|
$location_time = my_date($mybb->settings['timeformat'], $last_seen);
eval("\$online_status = \"".$templates->get("member_profile_online")."\";");
|
$location_time = my_date($mybb->settings['timeformat'], $last_seen);
eval("\$online_status = \"".$templates->get("member_profile_online")."\";");
|
} } }
| } } }
|
if(!isset($online_status)) { eval("\$online_status = \"".$templates->get("member_profile_offline")."\";");
|
if(!isset($online_status)) { eval("\$online_status = \"".$templates->get("member_profile_offline")."\";");
|
}
| }
|
// Reset the background colours to keep it inline $alttrow = 'trow1';
| // Reset the background colours to keep it inline $alttrow = 'trow1';
|
Zeile 2498 | Zeile 2506 |
---|
$referral_count = $memprofile['referrals']; if ($referral_count > 0) { eval("\$memprofile['referrals'] = \"".$templates->get('member_referrals_link')."\";");
|
$referral_count = $memprofile['referrals']; if ($referral_count > 0) { eval("\$memprofile['referrals'] = \"".$templates->get('member_referrals_link')."\";");
|
}
| }
|
eval("\$referrals = \"".$templates->get('member_profile_referrals')."\";"); }
| eval("\$referrals = \"".$templates->get('member_profile_referrals')."\";"); }
|
Zeile 2509 | Zeile 2517 |
---|
{ $bg_color = alt_trow(); $reputation = get_reputation($memprofile['reputation']);
|
{ $bg_color = alt_trow(); $reputation = get_reputation($memprofile['reputation']);
|
|
|
// If this user has permission to give reputations show the vote link $vote_link = ''; if($mybb->usergroup['cangivereputations'] == 1 && $memprofile['uid'] != $mybb->user['uid'] && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))
| // If this user has permission to give reputations show the vote link $vote_link = ''; if($mybb->usergroup['cangivereputations'] == 1 && $memprofile['uid'] != $mybb->user['uid'] && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))
|
Zeile 2518 | Zeile 2526 |
---|
}
eval("\$reputation = \"".$templates->get("member_profile_reputation")."\";");
|
}
eval("\$reputation = \"".$templates->get("member_profile_reputation")."\";");
|
}
| }
|
$warning_level = ''; if($mybb->settings['enablewarningsystem'] != 0 && $memperms['canreceivewarnings'] != 0 && ($mybb->usergroup['canwarnusers'] != 0 || ($mybb->user['uid'] == $memprofile['uid'] && $mybb->settings['canviewownwarning'] != 0)))
| $warning_level = ''; if($mybb->settings['enablewarningsystem'] != 0 && $memperms['canreceivewarnings'] != 0 && ($mybb->usergroup['canwarnusers'] != 0 || ($mybb->user['uid'] == $memprofile['uid'] && $mybb->settings['canviewownwarning'] != 0)))
|
Zeile 2528 | Zeile 2536 |
---|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
}
| }
|
$warning_level = round($memprofile['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)
|
$warning_level = round($memprofile['warningpoints']/$mybb->settings['maxwarningpoints']*100);
if($warning_level > 100)
|
{
| {
|
$warning_level = 100; }
| $warning_level = 100; }
|
Zeile 2548 | Zeile 2556 |
---|
eval("\$warning_level = \"".$templates->get("member_profile_warninglevel")."\";"); } }
|
eval("\$warning_level = \"".$templates->get("member_profile_warninglevel")."\";"); } }
|
|
|
$bgcolor = $alttrow = 'trow1'; $customfields = $profilefields = '';
| $bgcolor = $alttrow = 'trow1'; $customfields = $profilefields = '';
|
Zeile 2557 | Zeile 2565 |
---|
// If this user is an Administrator or a Moderator then we wish to show all profile fields $pfcache = $cache->read('profilefields');
|
// If this user is an Administrator or a Moderator then we wish to show all profile fields $pfcache = $cache->read('profilefields');
|
|
|
if(is_array($pfcache)) { foreach($pfcache as $customfield)
| if(is_array($pfcache)) { foreach($pfcache as $customfield)
|
Zeile 2648 | Zeile 2656 |
---|
{ // Fetch details on their ban $query = $db->simple_select('banned b LEFT JOIN '.TABLE_PREFIX.'users a ON (b.admin=a.uid)', 'b.*, a.username AS adminuser', "b.uid='{$uid}'", array('limit' => 1));
|
{ // Fetch details on their ban $query = $db->simple_select('banned b LEFT JOIN '.TABLE_PREFIX.'users a ON (b.admin=a.uid)', 'b.*, a.username AS adminuser', "b.uid='{$uid}'", array('limit' => 1));
|
$memban = $db->fetch_array($query);
| |
|
|
if($memban['reason'])
| if($db->num_rows($query))
|
{
|
{
|
$memban['reason'] = htmlspecialchars_uni($parser->parse_badwords($memban['reason'])); } else { $memban['reason'] = $lang->na; }
if($memban['lifted'] == 'perm' || $memban['lifted'] == '' || $memban['bantime'] == 'perm' || $memban['bantime'] == '---') { $banlength = $lang->permanent; $timeremaining = $lang->na; $banned_class = "normal_banned"; } else { // Set up the array of ban times. $bantimes = fetch_ban_times();
$banlength = $bantimes[$memban['bantime']]; $remaining = $memban['lifted']-TIME_NOW;
$timeremaining = nice_time($remaining, array('short' => 1, 'seconds' => false))."";
$banned_class = ''; if($remaining < 3600) { $banned_class = "high_banned";
| $memban = $db->fetch_array($query);
if($memban['reason']) { $memban['reason'] = htmlspecialchars_uni($parser->parse_badwords($memban['reason'])); } else { $memban['reason'] = $lang->na;
|
}
|
}
|
else if($remaining < 86400)
| if($memban['lifted'] == 'perm' || $memban['lifted'] == '' || $memban['bantime'] == 'perm' || $memban['bantime'] == '---')
|
{
|
{
|
$banned_class = "moderate_banned"; } else if($remaining < 604800) { $banned_class = "low_banned";
| $banlength = $lang->permanent; $timeremaining = $lang->na; $banned_class = "normal_banned";
|
} else {
|
} else {
|
$banned_class = "normal_banned";
| // Set up the array of ban times. $bantimes = fetch_ban_times();
$banlength = $bantimes[$memban['bantime']]; $remaining = $memban['lifted']-TIME_NOW;
$timeremaining = nice_time($remaining, array('short' => 1, 'seconds' => false))."";
$banned_class = ''; if($remaining < 3600) { $banned_class = "high_banned"; } else if($remaining < 86400) { $banned_class = "moderate_banned"; } else if($remaining < 604800) { $banned_class = "low_banned"; } else { $banned_class = "normal_banned"; }
|
}
|
}
|
} eval('$timeremaining = "'.$templates->get('member_profile_banned_remaining').'";');
$memban['adminuser'] = build_profile_link(htmlspecialchars_uni($memban['adminuser']), $memban['admin']);
| eval('$timeremaining = "'.$templates->get('member_profile_banned_remaining').'";');
|
|
|
// Display a nice warning to the user eval('$bannedbit = "'.$templates->get('member_profile_banned').'";');
| $memban['adminuser'] = build_profile_link(htmlspecialchars_uni($memban['adminuser']), $memban['admin']);
// Display a nice warning to the user eval('$bannedbit = "'.$templates->get('member_profile_banned').'";'); } else { // TODO: more specific output for converted/merged boards where no ban record is merged. $bannedbit = ''; }
|
}
$adminoptions = '';
| }
$adminoptions = '';
|