Zeile 42 | Zeile 42 |
---|
if($mybb->user['uid'] == 0 || $mybb->usergroup['canusercp'] == 0) { error_no_permission();
|
if($mybb->user['uid'] == 0 || $mybb->usergroup['canusercp'] == 0) { error_no_permission();
|
}
if(!$mybb->user['pmfolders']) { $mybb->user['pmfolders'] = '1**$%%$2**$%%$3**$%%$4**'; $db->update_query('users', array('pmfolders' => $mybb->user['pmfolders']), "uid = {$mybb->user['uid']}");
| |
}
$errors = '';
|
}
$errors = '';
|
$mybb->input['action'] = $mybb->get_input('action');
| $mybb->input['action'] = $mybb->get_input('action');
|
usercp_menu();
|
usercp_menu();
|
|
|
$server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);
|
$server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);
|
| if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0) { if(my_strpos($server_http_referer, '/') === 0) { $server_http_referer = my_substr($server_http_referer, 1); } $url_segments = explode('/', $server_http_referer); $server_http_referer = $mybb->settings['bburl'].'/'.end($url_segments); }
|
$plugins->run_hooks("usercp_start"); if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")
| $plugins->run_hooks("usercp_start"); if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")
|
Zeile 144 | Zeile 148 |
---|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
| $user = array();
|
$plugins->run_hooks("usercp_do_profile_start");
| $plugins->run_hooks("usercp_do_profile_start");
|
Zeile 172 | Zeile 178 |
---|
if($return_year < my_date('Y', $awaydate) || ($returntimestamp < $awaytimestamp && $return_year == my_date('Y', $awaydate))) { error($lang->error_usercp_return_date_past);
|
if($return_year < my_date('Y', $awaydate) || ($returntimestamp < $awaytimestamp && $return_year == my_date('Y', $awaydate))) { error($lang->error_usercp_return_date_past);
|
}
| }
|
$returndate = "{$return_day}-{$return_month}-{$return_year}"; } else
| $returndate = "{$return_day}-{$return_month}-{$return_year}"; } else
|
Zeile 207 | Zeile 213 |
---|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
$user = array(
| $user = array_merge($user, array(
|
"uid" => $mybb->user['uid'], "postnum" => $mybb->user['postnum'], "usergroup" => $mybb->user['usergroup'],
| "uid" => $mybb->user['uid'], "postnum" => $mybb->user['postnum'], "usergroup" => $mybb->user['usergroup'],
|
Zeile 216 | Zeile 222 |
---|
"birthdayprivacy" => $mybb->get_input('birthdayprivacy'), "away" => $away, "profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY)
|
"birthdayprivacy" => $mybb->get_input('birthdayprivacy'), "away" => $away, "profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY)
|
); foreach(array('icq', 'yahoo', 'skype', 'google') as $cfield)
| )); foreach(array('icq', 'skype', 'google') as $cfield)
|
{ $csetting = 'allow'.$cfield.'field'; if($mybb->settings[$csetting] == '')
|
{ $csetting = 'allow'.$cfield.'field'; if($mybb->settings[$csetting] == '')
|
{ continue; }
| { continue; }
|
if(!is_member($mybb->settings[$csetting])) { continue; }
if($cfield == 'icq')
|
if(!is_member($mybb->settings[$csetting])) { continue; }
if($cfield == 'icq')
|
{
| {
|
$user[$cfield] = $mybb->get_input($cfield, 1);
|
$user[$cfield] = $mybb->get_input($cfield, 1);
|
| if(my_strlen($user[$cfield]) > 10) { error($lang->contact_field_icqerror); }
|
} else { $user[$cfield] = $mybb->get_input($cfield);
|
} else { $user[$cfield] = $mybb->get_input($cfield);
|
} }
| if(my_strlen($user[$cfield]) > 75) { error($lang->contact_field_error); } } }
|
if($mybb->usergroup['canchangewebsite'] == 1) {
| if($mybb->usergroup['canchangewebsite'] == 1) {
|
Zeile 366 | Zeile 382 |
---|
{ $user['skype'] = htmlspecialchars_uni($user['skype']); $user['google'] = htmlspecialchars_uni($user['google']);
|
{ $user['skype'] = htmlspecialchars_uni($user['skype']); $user['google'] = htmlspecialchars_uni($user['google']);
|
$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);
| |
}
$contact_fields = array(); $contactfields = ''; $cfieldsshow = false;
|
}
$contact_fields = array(); $contactfields = ''; $cfieldsshow = false;
|
foreach(array('icq', 'yahoo', 'skype', 'google') as $cfield)
| foreach(array('icq', 'skype', 'google') as $cfield)
|
{ $contact_fields[$cfield] = ''; $csetting = 'allow'.$cfield.'field';
| { $contact_fields[$cfield] = ''; $csetting = 'allow'.$cfield.'field';
|
Zeile 428 | Zeile 443 |
---|
$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']); $awaycheck[1] = "checked=\"checked\""; $awaynotice = $lang->sprintf($lang->away_notice_away, $awaydate);
|
$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']); $awaycheck[1] = "checked=\"checked\""; $awaynotice = $lang->sprintf($lang->away_notice_away, $awaydate);
|
} else {
| } else {
|
$awaynotice = $lang->away_notice; $awaycheck[0] = "checked=\"checked\""; }
| $awaynotice = $lang->away_notice; $awaycheck[0] = "checked=\"checked\""; }
|
Zeile 556 | Zeile 571 |
---|
} } elseif($type == "select")
|
} } elseif($type == "select")
|
{ $expoptions = explode("\n", $options); if(is_array($expoptions)) { foreach($expoptions as $key => $val) {
| { $expoptions = explode("\n", $options); if(is_array($expoptions)) { foreach($expoptions as $key => $val) {
|
$val = trim($val); $val = str_replace("\n", "\\n", $val); $sel = "";
| $val = trim($val); $val = str_replace("\n", "\\n", $val); $sel = "";
|
Zeile 569 | Zeile 584 |
---|
{ $sel = " selected=\"selected\""; }
|
{ $sel = " selected=\"selected\""; }
|
|
|
eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";"); } if(!$profilefield['length'])
|
eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";"); } if(!$profilefield['length'])
|
{
| {
|
$profilefield['length'] = 1; }
| $profilefield['length'] = 1; }
|
Zeile 590 | Zeile 605 |
---|
{ $checked = ""; if($val == $userfield)
|
{ $checked = ""; if($val == $userfield)
|
{
| {
|
$checked = " checked=\"checked\""; }
| $checked = " checked=\"checked\""; }
|
Zeile 742 | Zeile 757 |
---|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_options_start");
| $user = array();
$plugins->run_hooks("usercp_do_options_start");
|
// Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
// Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
$user = array(
| $user = array_merge($user, array(
|
"uid" => $mybb->user['uid'], "style" => $mybb->get_input('style', MyBB::INPUT_INT), "dateformat" => $mybb->get_input('dateformat', MyBB::INPUT_INT),
| "uid" => $mybb->user['uid'], "style" => $mybb->get_input('style', MyBB::INPUT_INT), "dateformat" => $mybb->get_input('dateformat', MyBB::INPUT_INT),
|
Zeile 757 | Zeile 774 |
---|
"language" => $mybb->get_input('language'), 'usergroup' => $mybb->user['usergroup'], 'additionalgroups' => $mybb->user['additionalgroups']
|
"language" => $mybb->get_input('language'), 'usergroup' => $mybb->user['usergroup'], 'additionalgroups' => $mybb->user['additionalgroups']
|
);
| ));
|
$user['options'] = array( "allownotices" => $mybb->get_input('allownotices', MyBB::INPUT_INT),
| $user['options'] = array( "allownotices" => $mybb->get_input('allownotices', MyBB::INPUT_INT),
|
Zeile 790 | Zeile 807 |
---|
}
if($mybb->settings['userpppoptions'])
|
}
if($mybb->settings['userpppoptions'])
|
{
| {
|
$user['options']['ppp'] = $mybb->get_input('ppp', MyBB::INPUT_INT);
|
$user['options']['ppp'] = $mybb->get_input('ppp', MyBB::INPUT_INT);
|
}
$userhandler->set_data($user);
| }
$userhandler->set_data($user);
|
if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors(); $errors = inline_error($errors); $mybb->input['action'] = "options";
|
if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors(); $errors = inline_error($errors); $mybb->input['action'] = "options";
|
} else {
| } else {
|
$userhandler->update_user();
|
$userhandler->update_user();
|
$plugins->run_hooks("usercp_do_options_end");
| $plugins->run_hooks("usercp_do_options_end");
|
redirect("usercp.php?action=options", $lang->redirect_optionsupdated); } }
|
redirect("usercp.php?action=options", $lang->redirect_optionsupdated); } }
|
|
|
if($mybb->input['action'] == "options") {
|
if($mybb->input['action'] == "options") {
|
$plugins->run_hooks("usercp_options_start");
| |
if($errors != '') { $user = $mybb->input;
|
if($errors != '') { $user = $mybb->input;
|
}
| }
|
else { $user = $mybb->user; }
|
else { $user = $mybb->user; }
|
| $plugins->run_hooks("usercp_options_start");
|
$languages = $lang->get_languages(); $board_language = $langoptions = '';
| $languages = $lang->get_languages(); $board_language = $langoptions = '';
|
Zeile 1309 | Zeile 1326 |
---|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
| $user = array();
|
$errors = array();
|
$errors = array();
|
|
|
$plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('oldpassword')) == false) {
| $plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('oldpassword')) == false) {
|
Zeile 1322 | Zeile 1340 |
---|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
$user = array(
| $user = array_merge($user, array(
|
"uid" => $mybb->user['uid'], "password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2')
|
"uid" => $mybb->user['uid'], "password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2')
|
);
| ));
|
$userhandler->set_data($user);
| $userhandler->set_data($user);
|
Zeile 1356 | Zeile 1374 |
---|
}
if($mybb->input['action'] == "password")
|
}
if($mybb->input['action'] == "password")
|
{
| {
|
$plugins->run_hooks("usercp_password");
|
$plugins->run_hooks("usercp_password");
|
|
|
eval("\$editpassword = \"".$templates->get("usercp_password")."\";"); output_page($editpassword); }
|
eval("\$editpassword = \"".$templates->get("usercp_password")."\";"); output_page($editpassword); }
|
|
|
if($mybb->input['action'] == "do_changename" && $mybb->request_method == "post") { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
if($mybb->input['action'] == "do_changename" && $mybb->request_method == "post") { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_changename_start");
| $errors = array();
|
if($mybb->usergroup['canchangename'] != 1) { error_no_permission();
|
if($mybb->usergroup['canchangename'] != 1) { error_no_permission();
|
}
| }
$user = array();
$plugins->run_hooks("usercp_do_changename_start");
|
if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false) {
| if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false) {
|
Zeile 1384 | Zeile 1407 |
---|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
$user = array(
| $user = array_merge($user, array(
|
"uid" => $mybb->user['uid'], "username" => $mybb->get_input('username')
|
"uid" => $mybb->user['uid'], "username" => $mybb->get_input('username')
|
);
| ));
|
$userhandler->set_data($user);
| $userhandler->set_data($user);
|
Zeile 1400 | Zeile 1423 |
---|
$userhandler->update_user(); $plugins->run_hooks("usercp_do_changename_end"); redirect("usercp.php?action=changename", $lang->redirect_namechanged);
|
$userhandler->update_user(); $plugins->run_hooks("usercp_do_changename_end"); redirect("usercp.php?action=changename", $lang->redirect_namechanged);
|
| |
} } if(count($errors) > 0)
| } } if(count($errors) > 0)
|
Zeile 1416 | Zeile 1438 |
---|
if($mybb->usergroup['canchangename'] != 1) { error_no_permission();
|
if($mybb->usergroup['canchangename'] != 1) { error_no_permission();
|
}
$plugins->run_hooks("usercp_changename_end");
| }
// Coming back to this page after one or more errors were experienced, show field the user previously entered (with the exception of the password) if($errors) { $username = htmlspecialchars_uni($mybb->get_input('username')); } else { $username = ''; }
$plugins->run_hooks("usercp_changename_end");
|
eval("\$changename = \"".$templates->get("usercp_changename")."\";"); output_page($changename); }
|
eval("\$changename = \"".$templates->get("usercp_changename")."\";"); output_page($changename); }
|
|
|
if($mybb->input['action'] == "do_subscriptions") { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
if($mybb->input['action'] == "do_subscriptions") { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_subscriptions_start");
| |
if(!isset($mybb->input['check']) || !is_array($mybb->input['check'])) { error($lang->no_subscriptions_selected); }
|
if(!isset($mybb->input['check']) || !is_array($mybb->input['check'])) { error($lang->no_subscriptions_selected); }
|
| $plugins->run_hooks("usercp_do_subscriptions_start");
|
// Clean input - only accept integers thanks! $mybb->input['check'] = array_map('intval', $mybb->get_input('check', MyBB::INPUT_ARRAY));
| // Clean input - only accept integers thanks! $mybb->input['check'] = array_map('intval', $mybb->get_input('check', MyBB::INPUT_ARRAY));
|
Zeile 1944 | Zeile 1976 |
---|
if($mybb->get_input('referrer')) {
|
if($mybb->get_input('referrer')) {
|
$url = htmlspecialchars_uni($mybb->get_input('referrer'));
| $mybb->input['referrer'] = $mybb->get_input('referrer');
if(my_strpos($mybb->input['referrer'], $mybb->settings['bburl'].'/') !== 0) { if(my_strpos($mybb->input['referrer'], '/') === 0) { $mybb->input['referrer'] = my_substr($mybb->input['url'], 1); } $url_segments = explode('/', $mybb->input['referrer']); $mybb->input['referrer'] = $mybb->settings['bburl'].'/'.end($url_segments); }
$url = htmlspecialchars_uni($mybb->input['referrer']);
|
} else {
| } else {
|
Zeile 1952 | Zeile 1996 |
---|
} redirect($url, $lang->redirect_subscriptionadded); }
|
} redirect($url, $lang->redirect_subscriptionadded); }
|
|
|
if($mybb->input['action'] == "addsubscription")
|
if($mybb->input['action'] == "addsubscription")
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
if($mybb->get_input('type') == "forum") { $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT)); if(!$forum)
| { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
if($mybb->get_input('type') == "forum") { $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT)); if(!$forum)
|
{ error($lang->error_invalidforum); }
| { error($lang->error_invalidforum); }
|
Zeile 1992 | Zeile 2036 |
---|
{ $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT)); if(!$thread || $thread['visible'] == -1)
|
{ $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT)); if(!$thread || $thread['visible'] == -1)
|
{ error($lang->error_invalidthread);
| { error($lang->error_invalidthread);
|
}
// Is the currently logged in user a moderator of this forum?
| }
// Is the currently logged in user a moderator of this forum?
|
Zeile 2041 | Zeile 2085 |
---|
elseif($mybb->user['subscriptionmethod'] == 3) { $notification_pm_checked = "checked=\"checked\"";
|
elseif($mybb->user['subscriptionmethod'] == 3) { $notification_pm_checked = "checked=\"checked\"";
|
}
| }
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_addsubscription_thread");
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_addsubscription_thread");
|
|
|
eval("\$add_subscription = \"".$templates->get("usercp_addsubscription_thread")."\";"); output_page($add_subscription); exit; } }
|
eval("\$add_subscription = \"".$templates->get("usercp_addsubscription_thread")."\";"); output_page($add_subscription); exit; } }
|
if($mybb->input['action'] == "removesubscription")
| if($mybb->input['action'] == "removesubscription" && ($mybb->request_method == "post" || verify_post_check($mybb->get_input('my_post_key'), true)))
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
| { // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
Zeile 2072 | Zeile 2116 |
---|
$plugins->run_hooks("usercp2_removesubscription_forum");
remove_subscribed_forum($forum['fid']);
|
$plugins->run_hooks("usercp2_removesubscription_forum");
remove_subscribed_forum($forum['fid']);
|
if($server_http_referer && $mybb->request_method != 'post') { $url = $server_http_referer;
| if($server_http_referer && $mybb->request_method != 'post') { $url = $server_http_referer;
|
} else {
| } else {
|
Zeile 2086 | Zeile 2130 |
---|
{ $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT)); if(!$thread)
|
{ $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT)); if(!$thread)
|
{
| { error($lang->error_invalidthread); }
// Is the currently logged in user a moderator of this forum? $ismod = is_moderator($thread['fid']);
// Make sure we are looking at a real thread here. if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true)) { error($lang->error_invalidthread); }
// check if the forum requires a password to view. If so, we need to show a form to the user check_forum_password($thread['fid']);
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_removesubscription_thread");
remove_subscribed_thread($thread['tid']); if($server_http_referer && $mybb->request_method != 'post') { $url = $server_http_referer; } else { $url = "usercp.php?action=subscriptions"; } redirect($url, $lang->redirect_subscriptionremoved); } }
// Show remove subscription form when GET method and without valid my_post_key if($mybb->input['action'] == "removesubscription") { $referrer = ''; if($mybb->get_input('type') == "forum") { $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT)); if(!$forum) { error($lang->error_invalidforum); }
add_breadcrumb($lang->nav_forumsubscriptions, "usercp.php?action=forumsubscriptions"); add_breadcrumb($lang->nav_removesubscription);
$forumpermissions = forum_permissions($forum['fid']); if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0) { error_no_permission(); }
// check if the forum requires a password to view. If so, we need to show a form to the user check_forum_password($forum['fid']);
$lang->unsubscribe_from_forum = $lang->sprintf($lang->unsubscribe_from_forum, $forum['name']);
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_removesubscription_display_forum");
eval("\$remove_forum_subscription = \"".$templates->get("usercp_removesubscription_forum")."\";"); output_page($remove_forum_subscription); exit; } else { $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT)); if(!$thread || $thread['visible'] == -1) {
|
error($lang->error_invalidthread); }
// Is the currently logged in user a moderator of this forum?
|
error($lang->error_invalidthread); }
// Is the currently logged in user a moderator of this forum?
|
$ismod = is_moderator($thread['fid']);
| $ismod = is_moderator($thread['fid']);
|
// Make sure we are looking at a real thread here. if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
|
// Make sure we are looking at a real thread here. if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
|
{
| {
|
error($lang->error_invalidthread);
|
error($lang->error_invalidthread);
|
| }
add_breadcrumb($lang->nav_subthreads, "usercp.php?action=subscriptions"); add_breadcrumb($lang->nav_removesubscription);
$forumpermissions = forum_permissions($thread['fid']); if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid'])) { error_no_permission();
|
}
// check if the forum requires a password to view. If so, we need to show a form to the user check_forum_password($thread['fid']);
|
}
// check if the forum requires a password to view. If so, we need to show a form to the user check_forum_password($thread['fid']);
|
| require_once MYBB_ROOT."inc/class_parser.php"; $parser = new postParser; $thread['subject'] = $parser->parse_badwords($thread['subject']); $thread['subject'] = htmlspecialchars_uni($thread['subject']); $lang->unsubscribe_from_thread = $lang->sprintf($lang->unsubscribe_from_thread, $thread['subject']);
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php
|
$plugins->run_hooks("usercp2_removesubscription_thread");
remove_subscribed_thread($thread['tid']); if($server_http_referer && $mybb->request_method != 'post') { $url = $server_http_referer; } else { $url = "usercp.php?action=subscriptions"; } redirect($url, $lang->redirect_subscriptionremoved);
| $plugins->run_hooks("usercp2_removesubscription_display_thread");
eval("\$remove_thread_subscription = \"".$templates->get("usercp_removesubscription_thread")."\";"); output_page($remove_thread_subscription); exit;
|
} }
if($mybb->input['action'] == "removesubscriptions")
|
} }
if($mybb->input['action'] == "removesubscriptions")
|
{ // Verify incoming POST request
| { // Verify incoming POST request
|
verify_post_check($mybb->get_input('my_post_key'));
if($mybb->get_input('type') == "forum")
|
verify_post_check($mybb->get_input('my_post_key'));
if($mybb->get_input('type') == "forum")
|
{
| {
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_removesubscriptions_forum");
$db->delete_query("forumsubscriptions", "uid='".$mybb->user['uid']."'");
|
// Naming of the hook retained for backward compatibility while dropping usercp2.php $plugins->run_hooks("usercp2_removesubscriptions_forum");
$db->delete_query("forumsubscriptions", "uid='".$mybb->user['uid']."'");
|
if($server_http_referer) {
| if($server_http_referer) {
|
$url = $server_http_referer; } else
| $url = $server_http_referer; } else
|
Zeile 2161 | Zeile 2282 |
---|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_editsig_start");
| |
// User currently has a suspended signature if($mybb->user['suspendsignature'] == 1 && $mybb->user['suspendsigtime'] > TIME_NOW)
|
// User currently has a suspended signature if($mybb->user['suspendsignature'] == 1 && $mybb->user['suspendsigtime'] > TIME_NOW)
|
{
| {
|
error_no_permission(); }
|
error_no_permission(); }
|
| $plugins->run_hooks("usercp_do_editsig_start");
|
if($mybb->get_input('updateposts') == "enable") {
| if($mybb->get_input('updateposts') == "enable") {
|
Zeile 2257 | Zeile 2378 |
---|
// User has a current signature, so let's display it (but show an error message) if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
|
// User has a current signature, so let's display it (but show an error message) if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
|
{ $plugins->run_hooks("usercp_editsig_end");
| { $plugins->run_hooks("usercp_editsig_end");
|
// User either doesn't have permission, or has their signature suspended eval("\$editsig = \"".$templates->get("usercp_editsig_suspended")."\";");
| // User either doesn't have permission, or has their signature suspended eval("\$editsig = \"".$templates->get("usercp_editsig_suspended")."\";");
|
Zeile 2270 | Zeile 2391 |
---|
{ $sigsmilies = $lang->on; $smilieinserter = build_clickable_smilies();
|
{ $sigsmilies = $lang->on; $smilieinserter = build_clickable_smilies();
|
}
| }
|
else { $sigsmilies = $lang->off; } if($mybb->settings['sigmycode'] == 1)
|
else { $sigsmilies = $lang->off; } if($mybb->settings['sigmycode'] == 1)
|
{
| {
|
$sigmycode = $lang->on; } else
| $sigmycode = $lang->on; } else
|
Zeile 2286 | Zeile 2407 |
---|
if($mybb->settings['sightml'] == 1) { $sightml = $lang->on;
|
if($mybb->settings['sightml'] == 1) { $sightml = $lang->on;
|
} else
| } else
|
{ $sightml = $lang->off; }
| { $sightml = $lang->off; }
|
Zeile 2302 | Zeile 2423 |
---|
$sig = htmlspecialchars_uni($sig); $lang->edit_sig_note2 = $lang->sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
|
$sig = htmlspecialchars_uni($sig); $lang->edit_sig_note2 = $lang->sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
|
if($mybb->settings['bbcodeinserter'] != 0 || $mybb->user['showcodebuttons'] != 0)
| if($mybb->settings['sigmycode'] != 0 && $mybb->settings['bbcodeinserter'] != 0 && $mybb->user['showcodebuttons'] != 0)
|
{ $codebuttons = build_mycode_inserter("signature");
|
{ $codebuttons = build_mycode_inserter("signature");
|
}
| }
|
$plugins->run_hooks("usercp_editsig_end");
|
$plugins->run_hooks("usercp_editsig_end");
|
|
|
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");
|
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");
|
}
| }
|
output_page($editsig); }
| output_page($editsig); }
|
Zeile 2340 | Zeile 2461 |
---|
if($mybb->usergroup['canuploadavatars'] == 0) { error_no_permission();
|
if($mybb->usergroup['canuploadavatars'] == 0) { error_no_permission();
|
}
| }
|
$avatar = upload_avatar(); if($avatar['error']) {
| $avatar = upload_avatar(); if($avatar['error']) {
|
Zeile 2351 | Zeile 2472 |
---|
if($avatar['width'] > 0 && $avatar['height'] > 0) { $avatar_dimensions = $avatar['width']."|".$avatar['height'];
|
if($avatar['width'] > 0 && $avatar['height'] > 0) { $avatar_dimensions = $avatar['width']."|".$avatar['height'];
|
}
| }
|
$updated_avatar = array( "avatar" => $avatar['avatar'].'?dateline='.TIME_NOW, "avatardimensions" => $avatar_dimensions,
| $updated_avatar = array( "avatar" => $avatar['avatar'].'?dateline='.TIME_NOW, "avatardimensions" => $avatar_dimensions,
|
Zeile 2380 | Zeile 2501 |
---|
// Because Gravatars are square, hijack the width list($maxwidth, $maxheight) = preg_split('/[|x]/', my_strtolower($mybb->settings['maxavatardims'])); $maxheight = (int)$maxwidth;
|
// Because Gravatars are square, hijack the width list($maxwidth, $maxheight) = preg_split('/[|x]/', my_strtolower($mybb->settings['maxavatardims'])); $maxheight = (int)$maxwidth;
|
|
|
// Rating? $types = array('g', 'pg', 'r', 'x'); $rating = $mybb->settings['useravatarrating'];
| // Rating? $types = array('g', 'pg', 'r', 'x'); $rating = $mybb->settings['useravatarrating'];
|
Zeile 2397 | Zeile 2518 |
---|
"avatardimensions" => "{$maxheight}|{$maxheight}", "avatartype" => "gravatar" );
|
"avatardimensions" => "{$maxheight}|{$maxheight}", "avatartype" => "gravatar" );
|
|
|
$db->update_query("users", $updated_avatar, "uid = '{$mybb->user['uid']}'"); } else
| $db->update_query("users", $updated_avatar, "uid = '{$mybb->user['uid']}'"); } else
|
Zeile 2420 | Zeile 2541 |
---|
$avatar_error = $lang->error_invalidavatarurl; } else
|
$avatar_error = $lang->error_invalidavatarurl; } else
|
{
| {
|
fwrite($fp, $file); fclose($fp); list($width, $height, $type) = @getimagesize($tmp_name); @unlink($tmp_name); if(!$type)
|
fwrite($fp, $file); fclose($fp); list($width, $height, $type) = @getimagesize($tmp_name); @unlink($tmp_name); if(!$type)
|
{
| {
|
$avatar_error = $lang->error_invalidavatarurl;
|
$avatar_error = $lang->error_invalidavatarurl;
|
} } }
| } } }
|
if(empty($avatar_error)) { if($width && $height && $mybb->settings['maxavatardims'] != "")
| if(empty($avatar_error)) { if($width && $height && $mybb->settings['maxavatardims'] != "")
|
Zeile 2443 | Zeile 2564 |
---|
$avatar_error = $lang->error_avatartoobig; } }
|
$avatar_error = $lang->error_avatartoobig; } }
|
| }
// Limiting URL string to stay within database limit if(strlen($mybb->input['avatarurl']) > 200) { $avatar_error = $lang->error_avatarurltoolong;
|
}
if(empty($avatar_error))
| }
if(empty($avatar_error))
|
Zeile 3069 | Zeile 3196 |
---|
if($new_list == "") { echo "\$(\"#".$mybb->get_input('manage')."_count\").html(\"0\");\n";
|
if($new_list == "") { echo "\$(\"#".$mybb->get_input('manage')."_count\").html(\"0\");\n";
|
| echo "\$(\"#buddylink\").remove();\n";
|
if($mybb->get_input('manage') == "ignored") { echo "\$(\"#ignore_list\").html(\"<li>{$lang->ignore_list_empty}</li>\");\n";
| if($mybb->get_input('manage') == "ignored") { echo "\$(\"#ignore_list\").html(\"<li>{$lang->ignore_list_empty}</li>\");\n";
|
Zeile 3086 | Zeile 3215 |
---|
exit; } $mybb->input['action'] = "editlists";
|
exit; } $mybb->input['action'] = "editlists";
|
}
| }
|
else { if($error_message)
| else { if($error_message)
|
Zeile 3326 | Zeile 3455 |
---|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
// Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_drafts_start");
| |
$mybb->input['deletedraft'] = $mybb->get_input('deletedraft', MyBB::INPUT_ARRAY); if(empty($mybb->input['deletedraft']))
|
$mybb->input['deletedraft'] = $mybb->get_input('deletedraft', MyBB::INPUT_ARRAY); if(empty($mybb->input['deletedraft']))
|
{
| {
|
error($lang->no_drafts_selected); }
|
error($lang->no_drafts_selected); }
|
| $plugins->run_hooks("usercp_do_drafts_start");
|
$pidin = array(); $tidin = array();
|
$pidin = array(); $tidin = array();
|
|
|
foreach($mybb->input['deletedraft'] as $id => $val) { if($val == "post") { $pidin[] = "'".(int)$id."'";
|
foreach($mybb->input['deletedraft'] as $id => $val) { if($val == "post") { $pidin[] = "'".(int)$id."'";
|
}
| }
|
elseif($val == "thread") { $tidin[] = "'".(int)$id."'";
|
elseif($val == "thread") { $tidin[] = "'".(int)$id."'";
|
} }
| } }
|
if($tidin) { $tidin = implode(",", $tidin);
| if($tidin) { $tidin = implode(",", $tidin);
|
Zeile 3371 | Zeile 3503 |
---|
if($mybb->input['action'] == "usergroups") {
|
if($mybb->input['action'] == "usergroups") {
|
$plugins->run_hooks("usercp_usergroups_start");
| |
$ingroups = ",".$mybb->user['usergroup'].",".$mybb->user['additionalgroups'].",".$mybb->user['displaygroup'].",";
|
$ingroups = ",".$mybb->user['usergroup'].",".$mybb->user['additionalgroups'].",".$mybb->user['displaygroup'].",";
|
|
|
$usergroups = $mybb->cache->read('usergroups');
|
$usergroups = $mybb->cache->read('usergroups');
|
| $plugins->run_hooks("usercp_usergroups_start");
|
// Changing our display group if($mybb->get_input('displaygroup', MyBB::INPUT_INT))
| // Changing our display group if($mybb->get_input('displaygroup', MyBB::INPUT_INT))
|
Zeile 3463 | Zeile 3596 |
---|
}
$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('joingroup', MyBB::INPUT_INT)."'");
|
}
$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('joingroup', MyBB::INPUT_INT)."'");
|
$joinrequest = $db->fetch_array($query);
if($joinrequest['rid']) {
| $joinrequest = $db->fetch_array($query);
if($joinrequest['rid']) {
|
error($lang->already_sent_join_request); }
| error($lang->already_sent_join_request); }
|
Zeile 3592 | Zeile 3725 |
---|
if($usergroup['type'] != 4) { $usergroup['joinrequests'] = '--';
|
if($usergroup['type'] != 4) { $usergroup['joinrequests'] = '--';
|
}
| }
|
if($usergroup['joinrequests'] > 0 && $usergroup['canmanagerequests'] == 1) { eval("\$moderaterequestslink = \"".$templates->get("usercp_usergroups_leader_usergroup_moderaterequests")."\";");
| if($usergroup['joinrequests'] > 0 && $usergroup['canmanagerequests'] == 1) { eval("\$moderaterequestslink = \"".$templates->get("usercp_usergroups_leader_usergroup_moderaterequests")."\";");
|
Zeile 3600 | Zeile 3733 |
---|
$groupleader[$usergroup['gid']] = 1; $trow = alt_trow(); eval("\$groupsledlist .= \"".$templates->get("usercp_usergroups_leader_usergroup")."\";");
|
$groupleader[$usergroup['gid']] = 1; $trow = alt_trow(); eval("\$groupsledlist .= \"".$templates->get("usercp_usergroups_leader_usergroup")."\";");
|
}
| }
|
$leadinggroups = ''; if($groupsledlist) {
| $leadinggroups = ''; if($groupsledlist) {
|
Zeile 3616 | Zeile 3749 |
---|
eval("\$leavelink = \"".$templates->get("usercp_usergroups_memberof_usergroup_leaveprimary")."\";"); $trow = alt_trow(); if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])
|
eval("\$leavelink = \"".$templates->get("usercp_usergroups_memberof_usergroup_leaveprimary")."\";"); $trow = alt_trow(); if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])
|
{
| {
|
eval("\$displaycode = \"".$templates->get("usercp_usergroups_memberof_usergroup_display")."\";");
|
eval("\$displaycode = \"".$templates->get("usercp_usergroups_memberof_usergroup_display")."\";");
|
}
| }
|
elseif($usergroup['candisplaygroup'] == 1) { eval("\$displaycode = \"".$templates->get("usercp_usergroups_memberof_usergroup_setdisplay")."\";"); } else
|
elseif($usergroup['candisplaygroup'] == 1) { eval("\$displaycode = \"".$templates->get("usercp_usergroups_memberof_usergroup_setdisplay")."\";"); } else
|
{
| {
|
$displaycode = ''; }
| $displaycode = ''; }
|
Zeile 3632 | Zeile 3765 |
---|
$showmemberof = false; if($mybb->user['additionalgroups']) {
|
$showmemberof = false; if($mybb->user['additionalgroups']) {
|
$query = $db->simple_select("usergroups", "*", "gid IN (".$mybb->user['additionalgroups'].") AND gid !='".$mybb->user['usergroup']."'", array('order_by' => 'title'));
| $additionalgroups = implode( ',', array_map( 'intval', explode(',', $mybb->user['additionalgroups']) ) ); $query = $db->simple_select("usergroups", "*", "gid IN (".$additionalgroups.") AND gid !='".$mybb->user['usergroup']."'", array('order_by' => 'title'));
|
while($usergroup = $db->fetch_array($query)) { $showmemberof = true;
| while($usergroup = $db->fetch_array($query)) { $showmemberof = true;
|
Zeile 3657 | Zeile 3797 |
---|
{ $usergroup['description'] = htmlspecialchars_uni($usergroup['description']); eval("\$description = \"".$templates->get("usercp_usergroups_memberof_usergroup_description")."\";");
|
{ $usergroup['description'] = htmlspecialchars_uni($usergroup['description']); eval("\$description = \"".$templates->get("usercp_usergroups_memberof_usergroup_description")."\";");
|
}
| }
|
$trow = alt_trow(); if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup']) {
| $trow = alt_trow(); if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup']) {
|
Zeile 3679 | Zeile 3819 |
---|
// List of groups this user has applied for but has not been accepted in to $query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."'"); while($request = $db->fetch_array($query))
|
// List of groups this user has applied for but has not been accepted in to $query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."'"); while($request = $db->fetch_array($query))
|
{
| {
|
$appliedjoin[$request['gid']] = $request['dateline']; }
| $appliedjoin[$request['gid']] = $request['dateline']; }
|
Zeile 3687 | Zeile 3827 |
---|
$existinggroups = $mybb->user['usergroup']; if($mybb->user['additionalgroups']) {
|
$existinggroups = $mybb->user['usergroup']; if($mybb->user['additionalgroups']) {
|
$existinggroups .= ",".$mybb->user['additionalgroups'];
| $additionalgroups = implode( ',', array_map( 'intval', explode(',', $mybb->user['additionalgroups']) ) ); $existinggroups .= ",".$additionalgroups;
|
}
$joinablegroups = $joinablegrouplist = '';
| }
$joinablegroups = $joinablegrouplist = '';
|
Zeile 3769 | Zeile 3916 |
---|
if($mybb->input['action'] == "attachments") {
|
if($mybb->input['action'] == "attachments") {
|
$plugins->run_hooks("usercp_attachments_start");
| |
require_once MYBB_ROOT."inc/functions_upload.php";
if($mybb->settings['enableattachments'] == 0) { error($lang->attachments_disabled); }
|
require_once MYBB_ROOT."inc/functions_upload.php";
if($mybb->settings['enableattachments'] == 0) { error($lang->attachments_disabled); }
|
| $plugins->run_hooks("usercp_attachments_start");
|
// Get unviewable forums $f_perm_sql = '';
| // Get unviewable forums $f_perm_sql = '';
|
Zeile 3784 | Zeile 3932 |
---|
if($unviewable_forums) { $f_perm_sql = " AND t.fid NOT IN ($unviewable_forums)";
|
if($unviewable_forums) { $f_perm_sql = " AND t.fid NOT IN ($unviewable_forums)";
|
}
| }
|
if($inactiveforums)
|
if($inactiveforums)
|
{
| {
|
$f_perm_sql .= " AND t.fid NOT IN ($inactiveforums)";
|
$f_perm_sql .= " AND t.fid NOT IN ($inactiveforums)";
|
}
$attachments = '';
$query = $db->simple_select("attachments", "SUM(filesize) AS ausage, COUNT(aid) AS acount", "uid='".$mybb->user['uid']."'"); $usage = $db->fetch_array($query); $totalattachments = $usage['acount'];
| }
$attachments = '';
|
// Pagination if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1) {
| // Pagination if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1) {
|
Zeile 3808 | Zeile 3952 |
---|
if($page > 0) { $start = ($page-1) * $perpage;
|
if($page > 0) { $start = ($page-1) * $perpage;
|
$pages = ceil($totalattachments / $perpage); if($page > $pages) { $start = 0; $page = 1; }
| |
} else {
| } else {
|
Zeile 3833 | Zeile 3971 |
---|
ORDER BY p.dateline DESC LIMIT {$start}, {$perpage} ");
|
ORDER BY p.dateline DESC LIMIT {$start}, {$perpage} ");
|
$bandwidth = $totaldownloads = 0;
| $bandwidth = $totaldownloads = $totalusage = $totalattachments = $processedattachments = 0;
|
while($attachment = $db->fetch_array($query)) { if($attachment['dateline'] && $attachment['tid'])
| while($attachment = $db->fetch_array($query)) { if($attachment['dateline'] && $attachment['tid'])
|
Zeile 3856 | Zeile 3994 |
---|
// Add to bandwidth total $bandwidth += ($attachment['filesize'] * $attachment['downloads']); $totaldownloads += $attachment['downloads'];
|
// Add to bandwidth total $bandwidth += ($attachment['filesize'] * $attachment['downloads']); $totaldownloads += $attachment['downloads'];
|
| $totalusage += $attachment['filesize']; ++$totalattachments;
|
} else { // This little thing delets attachments without a thread/post remove_attachment($attachment['pid'], $attachment['posthash'], $attachment['aid']); }
|
} else { // This little thing delets attachments without a thread/post remove_attachment($attachment['pid'], $attachment['posthash'], $attachment['aid']); }
|
| ++$processedattachments; }
if($processedattachments >= $perpage || $page > 1) { $query = $db->query(" SELECT SUM(a.filesize) AS ausage, COUNT(a.aid) AS acount FROM ".TABLE_PREFIX."attachments a LEFT JOIN ".TABLE_PREFIX."posts p ON (a.pid=p.pid) LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid) WHERE a.uid='".$mybb->user['uid']."' {$f_perm_sql} "); $usage = $db->fetch_array($query); $totalusage = $usage['ausage']; $totalattachments = $usage['acount'];
$multipage = multipage($totalattachments, $perpage, $page, "usercp.php?action=attachments");
|
}
|
}
|
$totalusage = $usage['ausage'];
| |
$friendlyusage = get_friendly_size((int)$totalusage); if($mybb->usergroup['attachquota']) {
| $friendlyusage = get_friendly_size((int)$totalusage); if($mybb->usergroup['attachquota']) {
|
Zeile 3877 | Zeile 4033 |
---|
{ $attachquota = $lang->unlimited; $usagenote = $lang->sprintf($lang->attachments_usage, $friendlyusage, $totalattachments);
|
{ $attachquota = $lang->unlimited; $usagenote = $lang->sprintf($lang->attachments_usage, $friendlyusage, $totalattachments);
|
}
$multipage = multipage($totalattachments, $perpage, $page, "usercp.php?action=attachments");
| }
|
$bandwidth = get_friendly_size($bandwidth);
if(!$attachments)
| $bandwidth = get_friendly_size($bandwidth);
if(!$attachments)
|
Zeile 3898 | Zeile 4053 |
---|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
$plugins->run_hooks("usercp_do_attachments_start");
|
|
require_once MYBB_ROOT."inc/functions_upload.php"; if(!isset($mybb->input['attachments']) || !is_array($mybb->input['attachments'])) { error($lang->no_attachments_selected); }
|
require_once MYBB_ROOT."inc/functions_upload.php"; if(!isset($mybb->input['attachments']) || !is_array($mybb->input['attachments'])) { error($lang->no_attachments_selected); }
|
| $plugins->run_hooks("usercp_do_attachments_start");
|
// Get unviewable forums $f_perm_sql = '';
| // Get unviewable forums $f_perm_sql = '';
|
Zeile 3917 | Zeile 4073 |
---|
if($inactiveforums) { $f_perm_sql .= " AND p.fid NOT IN ($inactiveforums)";
|
if($inactiveforums) { $f_perm_sql .= " AND p.fid NOT IN ($inactiveforums)";
|
}
| }
|
$aids = implode(',', array_map('intval', $mybb->input['attachments']));
$query = $db->query("
| $aids = implode(',', array_map('intval', $mybb->input['attachments']));
$query = $db->query("
|
Zeile 3934 | Zeile 4090 |
---|
} $plugins->run_hooks("usercp_do_attachments_end"); redirect("usercp.php?action=attachments", $lang->attachments_deleted);
|
} $plugins->run_hooks("usercp_do_attachments_end"); redirect("usercp.php?action=attachments", $lang->attachments_deleted);
|
}
| }
|
if($mybb->input['action'] == "do_notepad" && $mybb->request_method == "post") {
| if($mybb->input['action'] == "do_notepad" && $mybb->request_method == "post") {
|
Zeile 3966 | Zeile 4122 |
---|
$perday = $mybb->user['postnum'] / $daysreg; $perday = round($perday, 2); if($perday > $mybb->user['postnum'])
|
$perday = $mybb->user['postnum'] / $daysreg; $perday = round($perday, 2); if($perday > $mybb->user['postnum'])
|
{
| {
|
$perday = $mybb->user['postnum']; }
| $perday = $mybb->user['postnum']; }
|
Zeile 3980 | Zeile 4136 |
---|
{ $percent = $mybb->user['postnum']*100/$posts; $percent = round($percent, 2);
|
{ $percent = $mybb->user['postnum']*100/$posts; $percent = round($percent, 2);
|
}
| }
|
$colspan = 2; $lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent); $regdate = my_date('relative', $mybb->user['regdate']);
| $colspan = 2; $lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent); $regdate = my_date('relative', $mybb->user['regdate']);
|
Zeile 4108 | Zeile 4264 |
---|
if($mybb->settings['usereferrals'] == 1) { $referral_link = $lang->sprintf($lang->referral_link, $settings['bburl'], $mybb->user['uid']);
|
if($mybb->settings['usereferrals'] == 1) { $referral_link = $lang->sprintf($lang->referral_link, $settings['bburl'], $mybb->user['uid']);
|
| $referral_count = (int) $mybb->user['referrals']; if($referral_count > 0) { $uid = (int) $mybb->user['uid']; eval("\$mybb->user['referrals'] = \"".$templates->get('member_referrals_link')."\";"); }
|
eval("\$referral_info = \"".$templates->get("usercp_referrals")."\";"); }
| eval("\$referral_info = \"".$templates->get("usercp_referrals")."\";"); }
|
Zeile 4185 | Zeile 4349 |
---|
foreach($subscriptions as $thread) {
|
foreach($subscriptions as $thread) {
|
| $plugins->run_hooks("usercp_thread_subscriptions_thread");
|
$folder = ''; $folder_label = ''; $gotounread = '';
| $folder = ''; $folder_label = ''; $gotounread = '';
|
Zeile 4377 | Zeile 4542 |
---|
$latest_threads_threads = ''; foreach($threadcache as $thread) {
|
$latest_threads_threads = ''; foreach($threadcache as $thread) {
|
| $plugins->run_hooks("usercp_latest_threads_thread");
|
if($thread['tid']) { $bgcolor = alt_trow();
| if($thread['tid']) { $bgcolor = alt_trow();
|
Zeile 4493 | Zeile 4659 |
---|
if($thread['closed'] == 1) {
|
if($thread['closed'] == 1) {
|
$folder .= "lock"; $folder_label .= $lang->icon_lock;
| $folder .= "close"; $folder_label .= $lang->icon_close;
|
}
$folder .= "folder";
| }
$folder .= "folder";
|