Zeile 51 | Zeile 51 |
---|
usercp_menu();
|
usercp_menu();
|
$server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);
if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0)
| $server_http_referer = ''; if(isset($_SERVER['HTTP_REFERER']))
|
{
|
{
|
if(my_strpos($server_http_referer, '/') === 0)
| $server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);
if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0)
|
{
|
{
|
$server_http_referer = my_substr($server_http_referer, 1);
| 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);
|
}
|
}
|
$url_segments = explode('/', $server_http_referer); $server_http_referer = $mybb->settings['bburl'].'/'.end($url_segments);
| |
}
$plugins->run_hooks("usercp_start");
| }
$plugins->run_hooks("usercp_start");
|
Zeile 224 | Zeile 228 |
---|
"away" => $away, "profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY) ));
|
"away" => $away, "profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY) ));
|
foreach(array('icq', 'skype', 'google') as $cfield) { $csetting = 'allow'.$cfield.'field';
| foreach(array('icq', 'skype', 'google') as $cfield) { $csetting = 'allow'.$cfield.'field';
|
if($mybb->settings[$csetting] == '') { continue; }
if(!is_member($mybb->settings[$csetting]))
|
if($mybb->settings[$csetting] == '') { continue; }
if(!is_member($mybb->settings[$csetting]))
|
{
| {
|
continue; }
if($cfield == 'icq') { $user[$cfield] = $mybb->get_input($cfield, 1);
|
continue; }
if($cfield == 'icq') { $user[$cfield] = $mybb->get_input($cfield, 1);
|
|
|
if(my_strlen($user[$cfield]) > 10) { error($lang->contact_field_icqerror); } } else
|
if(my_strlen($user[$cfield]) > 10) { error($lang->contact_field_icqerror); } } else
|
{
| {
|
$user[$cfield] = $mybb->get_input($cfield);
if(my_strlen($user[$cfield]) > 75) { error($lang->contact_field_error); }
|
$user[$cfield] = $mybb->get_input($cfield);
if(my_strlen($user[$cfield]) > 75) { error($lang->contact_field_error); }
|
} }
| } }
|
if($mybb->usergroup['canchangewebsite'] == 1) { $user['website'] = $mybb->get_input('website');
|
if($mybb->usergroup['canchangewebsite'] == 1) { $user['website'] = $mybb->get_input('website');
|
}
| }
|
if($mybb->usergroup['cancustomtitle'] == 1) { if($mybb->get_input('usertitle') != '')
| if($mybb->usergroup['cancustomtitle'] == 1) { if($mybb->get_input('usertitle') != '')
|
Zeile 282 | Zeile 286 |
---|
// Set to stored value if invalid if(array_key_exists("invalid_birthday_privacy", $raw_errors) || array_key_exists("conflicted_birthday_privacy", $raw_errors))
|
// Set to stored value if invalid if(array_key_exists("invalid_birthday_privacy", $raw_errors) || array_key_exists("conflicted_birthday_privacy", $raw_errors))
|
{
| {
|
$mybb->input['birthdayprivacy'] = $mybb->user['birthdayprivacy']; $bday = explode("-", $mybb->user['birthday']);
| $mybb->input['birthdayprivacy'] = $mybb->user['birthdayprivacy']; $bday = explode("-", $mybb->user['birthday']);
|
Zeile 294 | Zeile 298 |
---|
$errors = inline_error($errors); $mybb->input['action'] = "profile";
|
$errors = inline_error($errors); $mybb->input['action'] = "profile";
|
} else
| } else
|
{ $userhandler->update_user();
| { $userhandler->update_user();
|
Zeile 315 | Zeile 319 |
---|
$bday[2] = $mybb->get_input('bday3', MyBB::INPUT_INT); } else
|
$bday[2] = $mybb->get_input('bday3', MyBB::INPUT_INT); } else
|
{
| {
|
$user = $mybb->user; $bday = explode("-", $user['birthday']); if(!isset($bday[1])) { $bday[1] = 0;
|
$user = $mybb->user; $bday = explode("-", $user['birthday']); if(!isset($bday[1])) { $bday[1] = 0;
|
} }
| } }
|
if(!isset($bday[2]) || $bday[2] == 0) { $bday[2] = '';
| if(!isset($bday[2]) || $bday[2] == 0) { $bday[2] = '';
|
Zeile 336 | Zeile 340 |
---|
if($bday[0] == $day) { $selected = "selected=\"selected\"";
|
if($bday[0] == $day) { $selected = "selected=\"selected\"";
|
} else {
| } else {
|
$selected = ''; }
| $selected = ''; }
|
Zeile 450 | Zeile 454 |
---|
$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\""; } $returndate = explode("-", $mybb->user['returndate']); if(!isset($returndate[1]))
|
{ $awaynotice = $lang->away_notice; $awaycheck[0] = "checked=\"checked\""; } $returndate = explode("-", $mybb->user['returndate']); if(!isset($returndate[1]))
|
{
| {
|
$returndate[1] = 0;
|
$returndate[1] = 0;
|
}
| }
|
if(!isset($returndate[2])) { $returndate[2] = '';
|
if(!isset($returndate[2])) { $returndate[2] = '';
|
} }
| } }
|
$returndatesel = ''; for($day = 1; $day <= 31; ++$day)
| $returndatesel = ''; for($day = 1; $day <= 31; ++$day)
|
Zeile 508 | Zeile 512 |
---|
continue; }
|
continue; }
|
| $userfield = $code = $select = $val = $options = $expoptions = $useropts = ''; $seloptions = array();
|
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']); $profilefield['name'] = htmlspecialchars_uni($profilefield['name']); $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
| $profilefield['type'] = htmlspecialchars_uni($profilefield['type']); $profilefield['name'] = htmlspecialchars_uni($profilefield['name']); $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
|
Zeile 522 | Zeile 528 |
---|
$options = array(); } $field = "fid{$profilefield['fid']}";
|
$options = array(); } $field = "fid{$profilefield['fid']}";
|
$select = '';
| |
if($errors) { if(!isset($mybb->input['profile_fields'][$field]))
| if($errors) { if(!isset($mybb->input['profile_fields'][$field]))
|
Zeile 679 | Zeile 684 |
---|
eval("\$customfields .= \"".$templates->get("usercp_profile_customfield")."\";"); } $altbg = alt_trow();
|
eval("\$customfields .= \"".$templates->get("usercp_profile_customfield")."\";"); } $altbg = alt_trow();
|
$code = ""; $select = ""; $val = ""; $options = ""; $expoptions = ""; $useropts = ""; $seloptions = array();
| |
} } if($customfields)
| } } if($customfields)
|
Zeile 839 | Zeile 837 |
---|
if($mybb->input['action'] == "options") { if($errors != '')
|
if($mybb->input['action'] == "options") { if($errors != '')
|
{
| {
|
$user = $mybb->input; } else
| $user = $mybb->input; } else
|
Zeile 992 | Zeile 990 |
---|
else { $pmnoticecheck = "";
|
else { $pmnoticecheck = "";
|
}
| }
|
$dst_auto_selected = $dst_enabled_selected = $dst_disabled_selected = ''; if(isset($user['dstcorrection']) && $user['dstcorrection'] == 2) {
| $dst_auto_selected = $dst_enabled_selected = $dst_disabled_selected = ''; if(isset($user['dstcorrection']) && $user['dstcorrection'] == 2) {
|
Zeile 1096 | Zeile 1094 |
---|
if(isset($user['timeformat']) && $user['timeformat'] == $key) { $selected = " selected=\"selected\"";
|
if(isset($user['timeformat']) && $user['timeformat'] == $key) { $selected = " selected=\"selected\"";
|
}
| }
|
$timeformat = my_date($format, TIME_NOW, "", 0); eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");
| $timeformat = my_date($format, TIME_NOW, "", 0); eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");
|
Zeile 1219 | Zeile 1217 |
---|
"email" => $mybb->get_input('email'), "email2" => $mybb->get_input('email2') );
|
"email" => $mybb->get_input('email'), "email2" => $mybb->get_input('email2') );
|
$userhandler->set_data($user);
if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors(); } else
| $userhandler->set_data($user);
if(!$userhandler->validate_user()) { $errors = $userhandler->get_friendly_errors(); } else
|
{ $activation = false; // Checking for pending activations for non-activated accounts
| { $activation = false; // Checking for pending activations for non-activated accounts
|
Zeile 1345 | Zeile 1343 |
---|
$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)
|
{ $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
$user = array_merge($user, array( "uid" => $mybb->user['uid'],
| { $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
$user = array_merge($user, array( "uid" => $mybb->user['uid'],
|
"password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2') ));
| "password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2') ));
|
Zeile 1388 | Zeile 1386 |
---|
}
if($mybb->input['action'] == "password")
|
}
if($mybb->input['action'] == "password")
|
{
| {
|
$plugins->run_hooks("usercp_password");
eval("\$editpassword = \"".$templates->get("usercp_password")."\";");
| $plugins->run_hooks("usercp_password");
eval("\$editpassword = \"".$templates->get("usercp_password")."\";");
|
Zeile 1412 | Zeile 1410 |
---|
$plugins->run_hooks("usercp_do_changename_start");
if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false)
|
$plugins->run_hooks("usercp_do_changename_start");
if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false)
|
{
| {
|
$errors[] = $lang->error_invalidpassword; } else
| $errors[] = $lang->error_invalidpassword; } else
|
Zeile 1420 | Zeile 1418 |
---|
// 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_merge($user, array( "uid" => $mybb->user['uid'], "username" => $mybb->get_input('username')
| $user = array_merge($user, array( "uid" => $mybb->user['uid'], "username" => $mybb->get_input('username')
|
Zeile 1613 | Zeile 1611 |
---|
if($sids) { $db->delete_query("threadsubscriptions", "sid IN ({$sids}) AND uid='{$mybb->user['uid']}'");
|
if($sids) { $db->delete_query("threadsubscriptions", "sid IN ({$sids}) AND uid='{$mybb->user['uid']}'");
|
}
| }
|
$threadcount = $threadcount - count($del_subscriptions);
| $threadcount = $threadcount - count($del_subscriptions);
|
Zeile 1801 | Zeile 1799 |
---|
$lastpostdate = my_date('relative', $thread['lastpost']); $lastposteruid = $thread['lastposteruid']; if(!$lastposteruid && !$thread['lastposter'])
|
$lastpostdate = my_date('relative', $thread['lastpost']); $lastposteruid = $thread['lastposteruid']; if(!$lastposteruid && !$thread['lastposter'])
|
{ $lastposter = htmlspecialchars_uni($lang->guest); } else
| { $lastposter = htmlspecialchars_uni($lang->guest); } else
|
{ $lastposter = htmlspecialchars_uni($thread['lastposter']); }
| { $lastposter = htmlspecialchars_uni($thread['lastposter']); }
|
Zeile 1932 | Zeile 1930 |
---|
$lastposter = htmlspecialchars_uni($forum['lastposter']); } if($forum['lastposteruid'] == 0)
|
$lastposter = htmlspecialchars_uni($forum['lastposter']); } if($forum['lastposteruid'] == 0)
|
{
| {
|
$lastpost_profilelink = $lastposter; } else
| $lastpost_profilelink = $lastposter; } else
|
Zeile 2060 | Zeile 2058 |
---|
redirect($url, $lang->redirect_forumsubscriptionadded); } else
|
redirect($url, $lang->redirect_forumsubscriptionadded); } else
|
{
| {
|
$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) {
|
Zeile 2068 | Zeile 2066 |
---|
}
// Is the currently logged in user a moderator of this forum?
|
}
// 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))
|
Zeile 2083 | Zeile 2081 |
---|
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid'])) { error_no_permission();
|
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']);
|
Zeile 2092 | Zeile 2090 |
---|
if($server_http_referer) { $referrer = $server_http_referer;
|
if($server_http_referer) { $referrer = $server_http_referer;
|
}
| }
|
require_once MYBB_ROOT."inc/class_parser.php"; $parser = new postParser;
| require_once MYBB_ROOT."inc/class_parser.php"; $parser = new postParser;
|
Zeile 2108 | Zeile 2106 |
---|
elseif($mybb->user['subscriptionmethod'] == 2) { $notification_email_checked = "checked=\"checked\"";
|
elseif($mybb->user['subscriptionmethod'] == 2) { $notification_email_checked = "checked=\"checked\"";
|
}
| }
|
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" && ($mybb->request_method == "post" || verify_post_check($mybb->get_input('my_post_key'), true)))
|
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'));
if($mybb->get_input('type') == "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) {
| $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT)); if(!$forum) {
|
Zeile 2414 | Zeile 2412 |
---|
else { // User is allowed to edit their signature
|
else { // User is allowed to edit their signature
|
| $smilieinserter = '';
|
if($mybb->settings['sigsmilies'] == 1) { $sigsmilies = $lang->on;
| if($mybb->settings['sigsmilies'] == 1) { $sigsmilies = $lang->on;
|
Zeile 3162 | Zeile 3161 |
---|
}
if($mybb->get_input('manage') == "ignored")
|
}
if($mybb->get_input('manage') == "ignored")
|
{
| {
|
$message = $lang->removed_from_ignore_list; } else
| $message = $lang->removed_from_ignore_list; } else
|
Zeile 3280 | Zeile 3279 |
---|
{ $type = "buddy"; $query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array("order_by" => "username"));
|
{ $type = "buddy"; $query = $db->simple_select("users", "*", "uid IN ({$mybb->user['buddylist']})", array("order_by" => "username"));
|
while($user = $db->fetch_array($query)) { $user['username'] = htmlspecialchars_uni($user['username']); $profile_link = build_profile_link(format_name($user['username'], $user['usergroup'], $user['displaygroup']), $user['uid']); if($user['lastactive'] > $timecut && ($user['invisible'] == 0 || $mybb->usergroup['canviewwolinvis'] == 1) && $user['lastvisit'] != $user['lastactive']) { $status = "online"; } else { $status = "offline";
| while($user = $db->fetch_array($query)) { $user['username'] = htmlspecialchars_uni($user['username']); $profile_link = build_profile_link(format_name($user['username'], $user['usergroup'], $user['displaygroup']), $user['uid']); if($user['lastactive'] > $timecut && ($user['invisible'] == 0 || $mybb->usergroup['canviewwolinvis'] == 1) && $user['lastvisit'] != $user['lastactive']) { $status = "online"; } else { $status = "offline";
|
} eval("\$buddy_list .= \"".$templates->get("usercp_editlists_user")."\";"); ++$buddy_count;
| } eval("\$buddy_list .= \"".$templates->get("usercp_editlists_user")."\";"); ++$buddy_count;
|
Zeile 3340 | Zeile 3339 |
---|
{ echo $ignore_list; echo "<script type=\"text/javascript\"> $(\"#ignored_count\").html(\"{$ignore_count}\"); {$message_js}</script>";
|
{ echo $ignore_list; echo "<script type=\"text/javascript\"> $(\"#ignored_count\").html(\"{$ignore_count}\"); {$message_js}</script>";
|
} else {
| } else {
|
if(isset($sent) && $sent === true) { $sent_rows = '';
| if(isset($sent) && $sent === true) { $sent_rows = '';
|
Zeile 3462 | Zeile 3461 |
---|
$editurl = "newreply.php?action=editdraft&pid={$draft['pid']}"; $id = $draft['pid']; $type = "post";
|
$editurl = "newreply.php?action=editdraft&pid={$draft['pid']}"; $id = $draft['pid']; $type = "post";
|
}
| }
|
elseif($draft['threadvisible'] == -2) // We're looking at a draft thread { $draft['forumlink'] = get_forum_link($draft['fid']);
| elseif($draft['threadvisible'] == -2) // We're looking at a draft thread { $draft['forumlink'] = get_forum_link($draft['fid']);
|
Zeile 3476 | Zeile 3475 |
---|
$draft['subject'] = htmlspecialchars_uni($draft['subject']); $savedate = my_date('relative', $draft['dateline']); eval("\$drafts .= \"".$templates->get("usercp_drafts_draft")."\";");
|
$draft['subject'] = htmlspecialchars_uni($draft['subject']); $savedate = my_date('relative', $draft['dateline']); eval("\$drafts .= \"".$templates->get("usercp_drafts_draft")."\";");
|
} }
| } }
|
else { $disable_delete_drafts = 'disabled="disabled"';
| else { $disable_delete_drafts = 'disabled="disabled"';
|
Zeile 3485 | Zeile 3484 |
---|
}
$plugins->run_hooks("usercp_drafts_end");
|
}
$plugins->run_hooks("usercp_drafts_end");
|
|
|
eval("\$draftlist = \"".$templates->get("usercp_drafts")."\";"); output_page($draftlist); }
| eval("\$draftlist = \"".$templates->get("usercp_drafts")."\";"); output_page($draftlist); }
|
Zeile 3499 | Zeile 3498 |
---|
if(empty($mybb->input['deletedraft'])) { error($lang->no_drafts_selected);
|
if(empty($mybb->input['deletedraft'])) { error($lang->no_drafts_selected);
|
}
| }
|
$plugins->run_hooks("usercp_do_drafts_start");
|
$plugins->run_hooks("usercp_do_drafts_start");
|
|
|
$pidin = array(); $tidin = array();
foreach($mybb->input['deletedraft'] as $id => $val)
|
$pidin = array(); $tidin = array();
foreach($mybb->input['deletedraft'] as $id => $val)
|
{
| {
|
if($val == "post") { $pidin[] = "'".(int)$id."'";
| if($val == "post") { $pidin[] = "'".(int)$id."'";
|
Zeile 3522 | Zeile 3521 |
---|
$tidin = implode(",", $tidin); $db->delete_query("threads", "tid IN ($tidin) AND visible='-2' AND uid='".$mybb->user['uid']."'"); $tidinp = "OR tid IN ($tidin)";
|
$tidin = implode(",", $tidin); $db->delete_query("threads", "tid IN ($tidin) AND visible='-2' AND uid='".$mybb->user['uid']."'"); $tidinp = "OR tid IN ($tidin)";
|
}
| }
|
else { $tidinp = '';
| else { $tidinp = '';
|
Zeile 3552 | Zeile 3551 |
---|
$usergroups = $mybb->cache->read('usergroups');
$plugins->run_hooks("usercp_usergroups_start");
|
$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 3560 | Zeile 3559 |
---|
verify_post_check($mybb->get_input('my_post_key'));
if(my_strpos($ingroups, ",".$mybb->input['displaygroup'].",") === false)
|
verify_post_check($mybb->get_input('my_post_key'));
if(my_strpos($ingroups, ",".$mybb->input['displaygroup'].",") === false)
|
{
| {
|
error($lang->not_member_of_group); }
| error($lang->not_member_of_group); }
|
Zeile 3575 | Zeile 3574 |
---|
redirect("usercp.php?action=usergroups", $lang->display_group_changed); exit; }
|
redirect("usercp.php?action=usergroups", $lang->display_group_changed); exit; }
|
|
|
// Leaving a group if($mybb->get_input('leavegroup', MyBB::INPUT_INT)) { // Verify incoming POST request
|
// Leaving a group if($mybb->get_input('leavegroup', MyBB::INPUT_INT)) { // Verify incoming POST request
|
verify_post_check($mybb->input['my_post_key']);
| verify_post_check($mybb->get_input('my_post_key'));
|
if(my_strpos($ingroups, ",".$mybb->get_input('leavegroup', MyBB::INPUT_INT).",") === false)
|
if(my_strpos($ingroups, ",".$mybb->get_input('leavegroup', MyBB::INPUT_INT).",") === false)
|
{
| {
|
error($lang->not_member_of_group); } if($mybb->user['usergroup'] == $mybb->get_input('leavegroup', MyBB::INPUT_INT))
| error($lang->not_member_of_group); } if($mybb->user['usergroup'] == $mybb->get_input('leavegroup', MyBB::INPUT_INT))
|
Zeile 3627 | Zeile 3626 |
---|
if($usergroup['type'] == 5) { error($lang->cannot_join_invite_group);
|
if($usergroup['type'] == 5) { error($lang->cannot_join_invite_group);
|
}
| }
|
if(($usergroup['type'] != 4 && $usergroup['type'] != 3) || !$usergroup['gid']) { error($lang->cannot_join_group);
| if(($usergroup['type'] != 4 && $usergroup['type'] != 3) || !$usergroup['gid']) { error($lang->cannot_join_group);
|
Zeile 3642 | Zeile 3641 |
---|
$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('joingroup', MyBB::INPUT_INT)."'"); $joinrequest = $db->fetch_array($query);
|
$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'])
| if(!empty($joinrequest['rid']))
|
{ error($lang->already_sent_join_request); }
| { error($lang->already_sent_join_request); }
|
Zeile 4197 | Zeile 4196 |
---|
$useravatar = format_avatar($mybb->user['avatar'], $mybb->user['avatardimensions'], '100x100'); $avatar_username = htmlspecialchars_uni($mybb->user['username']); eval("\$avatar = \"".$templates->get("usercp_currentavatar")."\";");
|
$useravatar = format_avatar($mybb->user['avatar'], $mybb->user['avatardimensions'], '100x100'); $avatar_username = htmlspecialchars_uni($mybb->user['username']); eval("\$avatar = \"".$templates->get("usercp_currentavatar")."\";");
|
| $mybb->user['email'] = htmlspecialchars_uni($mybb->user['email']);
|
$usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']); if($mybb->user['usergroup'] == 5 && $mybb->settings['regtype'] != "admin")
| $usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']); if($mybb->user['usergroup'] == 5 && $mybb->settings['regtype'] != "admin")
|
Zeile 4204 | Zeile 4205 |
---|
eval("\$usergroup .= \"".$templates->get("usercp_resendactivation")."\";"); } // Make reputations row
|
eval("\$usergroup .= \"".$templates->get("usercp_resendactivation")."\";"); } // Make reputations row
|
$reputations = '';
| $reputation = '';
|
if($mybb->usergroup['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1) { $reputation_link = get_reputation($mybb->user['reputation']);
| if($mybb->usergroup['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1) { $reputation_link = get_reputation($mybb->user['reputation']);
|
Zeile 4367 | Zeile 4368 |
---|
LIMIT 0, 10 ");
|
LIMIT 0, 10 ");
|
| $subscriptions = array();
|
$fpermissions = forum_permissions();
while($subscription = $db->fetch_array($query)) { $forumpermissions = $fpermissions[$subscription['fid']];
|
$fpermissions = forum_permissions();
while($subscription = $db->fetch_array($query)) { $forumpermissions = $fpermissions[$subscription['fid']];
|
if($forumpermissions['canonlyviewownthreads'] == 0 || $subscription['uid'] == $mybb->user['uid'])
| if(!isset($forumpermissions['canonlyviewownthreads']) || $forumpermissions['canonlyviewownthreads'] == 0 || $subscription['uid'] == $mybb->user['uid'])
|
{ $subscriptions[$subscription['tid']] = $subscription; } }
|
{ $subscriptions[$subscription['tid']] = $subscription; } }
|
if(is_array($subscriptions))
| if($subscriptions)
|
{ $tids = implode(",", array_keys($subscriptions));
| { $tids = implode(",", array_keys($subscriptions));
|
Zeile 4422 | Zeile 4424 |
---|
$folder_label = ''; $gotounread = '';
|
$folder_label = ''; $gotounread = '';
|
if($thread['tid'])
| if(!empty($thread['tid']))
|
{ $bgcolor = alt_trow(); $thread['subject'] = $parser->parse_badwords($thread['subject']);
| { $bgcolor = alt_trow(); $thread['subject'] = $parser->parse_badwords($thread['subject']);
|
Zeile 4679 | Zeile 4681 |
---|
}
// Folder Icons
|
}
// Folder Icons
|
if($thread['doticon'])
| if(!empty($thread['doticon']))
|
{ $folder = "dot_"; $folder_label .= $lang->icon_dot;
| { $folder = "dot_"; $folder_label .= $lang->icon_dot;
|