Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: member.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id: member.php 5465 2011-05-16 20:11:06Z jammerx2 $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 793 | Zeile 793 |
---|
{ error($lang->error_activated_by_admin); }
|
{ error($lang->error_activated_by_admin); }
|
| if($mybb->user['uid'] && $mybb->user['usergroup'] != 5) { error($lang->error_alreadyactivated); }
|
eval("\$activate = \"".$templates->get("member_resendactivation")."\";"); output_page($activate); }
| eval("\$activate = \"".$templates->get("member_resendactivation")."\";"); output_page($activate); }
|
Zeile 1158 | Zeile 1162 |
---|
}
if($mybb->input['action'] == "logout")
|
}
if($mybb->input['action'] == "logout")
|
{
| {
|
$plugins->run_hooks("member_logout_start");
if(!$mybb->user['uid'])
| $plugins->run_hooks("member_logout_start");
if(!$mybb->user['uid'])
|
Zeile 1252 | Zeile 1256 |
---|
if($mybb->user['uid'] != $uid) {
|
if($mybb->user['uid'] != $uid) {
|
$query = $db->simple_select("users", "*", "uid='$uid'"); $memprofile = $db->fetch_array($query);
| $memprofile = get_user($uid);
|
} else {
| } else {
|
Zeile 1354 | Zeile 1357 |
---|
}
$daysreg = (TIME_NOW - $memprofile['regdate']) / (24*3600);
|
}
$daysreg = (TIME_NOW - $memprofile['regdate']) / (24*3600);
|
| if($daysreg < 1) { $daysreg = 1; }
|
$ppd = $memprofile['postnum'] / $daysreg; $ppd = round($ppd, 2); if($ppd > $memprofile['postnum'])
| $ppd = $memprofile['postnum'] / $daysreg; $ppd = round($ppd, 2); if($ppd > $memprofile['postnum'])
|
Zeile 1452 | Zeile 1461 |
---|
if($memprofile['birthdayprivacy'] != 'none') {
|
if($memprofile['birthdayprivacy'] != 'none') {
|
if($membday[2])
| if($membday[0] && $membday[1] && $membday[2])
|
{ $lang->membdayage = $lang->sprintf($lang->membdayage, get_age($memprofile['birthday']));
| { $lang->membdayage = $lang->sprintf($lang->membdayage, get_age($memprofile['birthday']));
|
Zeile 1468 | Zeile 1477 |
---|
$membday = date($bdayformat, $membday); } $membdayage = $lang->membdayage;
|
$membday = date($bdayformat, $membday); } $membdayage = $lang->membdayage;
|
| } elseif($membday[2]) { $membday = mktime(0, 0, 0, 1, 1, $membday[2]); $membday = date("Y", $membday); $membdayage = '';
|
} else {
| } else {
|
Zeile 1491 | Zeile 1506 |
---|
{ $membday = $lang->not_specified; $membdayage = '';
|
{ $membday = $lang->not_specified; $membdayage = '';
|
}
| }
|
if(!$memprofile['displaygroup']) {
| if(!$memprofile['displaygroup']) {
|
Zeile 1513 | Zeile 1528 |
---|
unset($usertitle); unset($stars); if(trim($memprofile['usertitle']) != '')
|
unset($usertitle); unset($stars); if(trim($memprofile['usertitle']) != '')
|
{
| {
|
// User has custom user title $usertitle = $memprofile['usertitle']; }
| // User has custom user title $usertitle = $memprofile['usertitle']; }
|
Zeile 1525 | Zeile 1540 |
---|
else { // No usergroup title so get a default one
|
else { // No usergroup title so get a default one
|
$query = $db->simple_select("usertitles", "*", "", array('order_by' => 'posts', 'order_dir' => 'DESC')); while($title = $db->fetch_array($query)) {
| $query = $db->simple_select("usertitles", "*", "", array('order_by' => 'posts', 'order_dir' => 'DESC')); while($title = $db->fetch_array($query)) {
|
if($memprofile['postnum'] >= $title['posts']) { $usertitle = $title['title'];
| if($memprofile['postnum'] >= $title['posts']) { $usertitle = $title['title'];
|
Zeile 1709 | Zeile 1724 |
---|
$customfieldval = htmlspecialchars_uni($userfields[$field]); } }
|
$customfieldval = htmlspecialchars_uni($userfields[$field]); } }
|
| $customfield['name'] = htmlspecialchars_uni($customfield['name']);
|
eval("\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); $bgcolor = alt_trow(); }
| eval("\$customfields .= \"".$templates->get("member_profile_customfields_field")."\";"); $bgcolor = alt_trow(); }
|
Zeile 1722 | Zeile 1739 |
---|
if($memprofile['timeonline'] > 0) { $timeonline = nice_time($memprofile['timeonline']);
|
if($memprofile['timeonline'] > 0) { $timeonline = nice_time($memprofile['timeonline']);
|
} else {
| } else {
|
$timeonline = $lang->none_registered; } if($mybb->usergroup['cancp'] == 1 && $mybb->config['hide_admin_links'] != 1) { eval("\$adminoptions = \"".$templates->get("member_profile_adminoptions")."\";");
|
$timeonline = $lang->none_registered; } if($mybb->usergroup['cancp'] == 1 && $mybb->config['hide_admin_links'] != 1) { eval("\$adminoptions = \"".$templates->get("member_profile_adminoptions")."\";");
|
} else {
| } else {
|
$adminoptions = ''; } if($mybb->usergroup['canmodcp'] == 1) { $memprofile['usernotes'] = nl2br(htmlspecialchars_uni($memprofile['usernotes']));
|
$adminoptions = ''; } if($mybb->usergroup['canmodcp'] == 1) { $memprofile['usernotes'] = nl2br(htmlspecialchars_uni($memprofile['usernotes']));
|
|
|
if(!empty($memprofile['usernotes'])) { if(strlen($memprofile['usernotes']) > 100) { $memprofile['usernotes'] = my_substr($memprofile['usernotes'], 0, 100).'...'; }
|
if(!empty($memprofile['usernotes'])) { if(strlen($memprofile['usernotes']) > 100) { $memprofile['usernotes'] = my_substr($memprofile['usernotes'], 0, 100).'...'; }
|
} else
| } else
|
{ $memprofile['usernotes'] = $lang->no_usernotes; }
| { $memprofile['usernotes'] = $lang->no_usernotes; }
|
Zeile 1756 | Zeile 1773 |
---|
eval("\$modoptions = \"".$templates->get("member_profile_modoptions")."\";"); } else
|
eval("\$modoptions = \"".$templates->get("member_profile_modoptions")."\";"); } else
|
{
| {
|
$modoptions = ''; }
| $modoptions = ''; }
|
Zeile 1767 | Zeile 1784 |
---|
$buddy_list = explode(',', $mybb->user['buddylist']); if(in_array($mybb->input['uid'], $buddy_list)) {
|
$buddy_list = explode(',', $mybb->user['buddylist']); if(in_array($mybb->input['uid'], $buddy_list)) {
|
$buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&delete={$mybb->input['uid']}&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_buddy.gif\" /> {$lang->remove_from_buddy_list}</a>";
| $buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&delete={$mybb->input['uid']}&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_buddy.gif\" alt=\"{$lang->remove_from_buddy_list}\" /> {$lang->remove_from_buddy_list}</a>";
|
} else {
|
} else {
|
$buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&add_username=".urlencode($memprofile['username'])."&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_buddy.gif\" /> {$lang->add_to_buddy_list}</a>";
| $buddy_options = "<br /><a href=\"./usercp.php?action=do_editlists&add_username=".urlencode($memprofile['username'])."&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_buddy.gif\" alt=\"{$lang->add_to_buddy_list}\" /> {$lang->add_to_buddy_list}</a>";
|
}
|
}
|
|
|
$ignore_list = explode(',', $mybb->user['ignorelist']); if(in_array($mybb->input['uid'], $ignore_list)) {
|
$ignore_list = explode(',', $mybb->user['ignorelist']); if(in_array($mybb->input['uid'], $ignore_list)) {
|
$buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&manage=ignored&delete={$mybb->input['uid']}&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_ignore.gif\" /> {$lang->remove_from_ignore_list}</a>";
| $buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&manage=ignored&delete={$mybb->input['uid']}&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/remove_ignore.gif\" alt=\"{$lang->remove_from_ignore_list}\" /> {$lang->remove_from_ignore_list}</a>";
|
} else {
|
} else {
|
$buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&manage=ignored&add_username=".urlencode($memprofile['username'])."&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_ignore.gif\" /> {$lang->add_to_ignore_list}</a>";
| $buddy_options .= "<br /><a href=\"./usercp.php?action=do_editlists&manage=ignored&add_username=".urlencode($memprofile['username'])."&my_post_key={$mybb->post_code}\"><img src=\"{$theme['imgdir']}/add_ignore.gif\" alt=\"{$lang->add_to_ignore_list}\" /> {$lang->add_to_ignore_list}</a>";
|
} }
| } }
|