Zeile 58 | Zeile 58 |
---|
$moderated_forums = array(); if($mybb->usergroup['issupermod'] != 1) {
|
$moderated_forums = array(); if($mybb->usergroup['issupermod'] != 1) {
|
$query = $db->simple_select("moderators", "*", "(id='{$mybb->user['uid']}' AND isgroup = '0') OR (id='{$mybb->user['usergroup']}' AND isgroup = '1')");
| $query = $db->simple_select("moderators", "*", "(id='{$mybb->user['uid']}' AND isgroup = '0') OR (id IN ({$mybb->usergroup['all_usergroups']}) AND isgroup = '1')");
|
$numannouncements = $nummodqueuethreads = $nummodqueueposts = $nummodqueueattach = $numreportedposts = $nummodlogs = 0; while($forum = $db->fetch_array($query))
| $numannouncements = $nummodqueuethreads = $nummodqueueposts = $nummodqueueattach = $numreportedposts = $nummodlogs = 0; while($forum = $db->fetch_array($query))
|
Zeile 263 | Zeile 263 |
---|
if(!empty($nav_announcements) || !empty($nav_modqueue) || !empty($nav_reportcenter) || !empty($nav_modlogs)) {
|
if(!empty($nav_announcements) || !empty($nav_modqueue) || !empty($nav_reportcenter) || !empty($nav_modlogs)) {
|
| $expaltext = (in_array("modcpforums", $collapse)) ? "[+]" : "[-]";
|
eval("\$modcp_nav_forums_posts = \"".$templates->get("modcp_nav_forums_posts")."\";"); }
if(!empty($nav_editprofile) || !empty($nav_banning) || !empty($nav_warninglogs) || !empty($nav_ipsearch)) {
|
eval("\$modcp_nav_forums_posts = \"".$templates->get("modcp_nav_forums_posts")."\";"); }
if(!empty($nav_editprofile) || !empty($nav_banning) || !empty($nav_warninglogs) || !empty($nav_ipsearch)) {
|
| $expaltext = (in_array("modcpusers", $collapse)) ? "[+]" : "[-]";
|
eval("\$modcp_nav_users = \"".$templates->get("modcp_nav_users")."\";"); }
| eval("\$modcp_nav_users = \"".$templates->get("modcp_nav_users")."\";"); }
|
Zeile 2585 | Zeile 2587 |
---|
"profile_fields_editable" => true, "website" => $mybb->get_input('website'), "icq" => $mybb->get_input('icq'),
|
"profile_fields_editable" => true, "website" => $mybb->get_input('website'), "icq" => $mybb->get_input('icq'),
|
"aim" => $mybb->get_input('aim'),
| |
"yahoo" => $mybb->get_input('yahoo'), "skype" => $mybb->get_input('skype'), "google" => $mybb->get_input('google'),
| "yahoo" => $mybb->get_input('yahoo'), "skype" => $mybb->get_input('skype'), "google" => $mybb->get_input('google'),
|
Zeile 2665 | Zeile 2666 |
---|
require_once MYBB_ROOT."inc/functions_warnings.php"; foreach($moderator_options as $option) {
|
require_once MYBB_ROOT."inc/functions_warnings.php"; foreach($moderator_options as $option) {
|
$mybb->input[$option['time']] = $mybb->get_input($option['time'], MyBB::INPUT_INT);
| ${$option['time']} = $mybb->get_input($option['time'], MyBB::INPUT_INT);
|
$mybb->input[$option['period']] = $mybb->get_input($option['period']); if(empty($mybb->input[$option['action']])) {
| $mybb->input[$option['period']] = $mybb->get_input($option['period']); if(empty($mybb->input[$option['action']])) {
|
Zeile 2773 | Zeile 2774 |
---|
if(!modcp_can_manage_user($user['uid'])) { error_no_permission();
|
if(!modcp_can_manage_user($user['uid'])) { error_no_permission();
|
| }
$userperms = user_permissions($user['uid']);
// Set display group $displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image"); $display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group)) { $userperms = array_merge($userperms, $display_group);
|
}
if(!my_validate_url($user['website'])) { $user['website'] = '';
|
}
if(!my_validate_url($user['website'])) { $user['website'] = '';
|
}
| }
|
if($user['icq'] != "0") { $user['icq'] = (int)$user['icq'];
|
if($user['icq'] != "0") { $user['icq'] = (int)$user['icq'];
|
}
| }
|
if(!$errors) { $mybb->input = array_merge($user, $mybb->input);
| if(!$errors) { $mybb->input = array_merge($user, $mybb->input);
|
Zeile 2798 | Zeile 2809 |
---|
$birthday[2] = ''; } list($mybb->input['birthday_day'], $mybb->input['birthday_month'], $mybb->input['birthday_year']) = $birthday;
|
$birthday[2] = ''; } list($mybb->input['birthday_day'], $mybb->input['birthday_month'], $mybb->input['birthday_year']) = $birthday;
|
}
| }
|
else { $errors = inline_error($errors); }
// Sanitize all input
|
else { $errors = inline_error($errors); }
// Sanitize all input
|
foreach(array('usertitle', 'website', 'icq', 'aim', 'yahoo', 'skype', 'google', 'signature', 'birthday_day', 'birthday_month', 'birthday_year') as $field)
| foreach(array('usertitle', 'website', 'icq', 'yahoo', 'skype', 'google', 'signature', 'birthday_day', 'birthday_month', 'birthday_year') as $field)
|
{ $mybb->input[$field] = htmlspecialchars_uni($mybb->get_input($field)); }
|
{ $mybb->input[$field] = htmlspecialchars_uni($mybb->get_input($field)); }
|
// Custom user title, check to see if we have a default group title if(!$user['displaygroup']) { $user['displaygroup'] = $user['usergroup']; }
$displaygroupfields = array('usertitle'); $display_group = usergroup_displaygroup($user['displaygroup']);
if(!empty($display_group['usertitle']))
| // Custom user title if(!empty($userperms['usertitle']))
|
{
|
{
|
$defaulttitle = htmlspecialchars_uni($display_group['usertitle']);
| $defaulttitle = htmlspecialchars_uni($userperms['usertitle']);
|
} else {
| } else {
|
Zeile 3151 | Zeile 3154 |
---|
{ $modpost_check = 0; $modpost_checked = '';
|
{ $modpost_check = 0; $modpost_checked = '';
|
}
| }
|
// Do we mark the suspend posts box? if($user['suspendposting'] || ($mybb->get_input('suspendposting', MyBB::INPUT_INT) && !empty($errors))) {
| // Do we mark the suspend posts box? if($user['suspendposting'] || ($mybb->get_input('suspendposting', MyBB::INPUT_INT) && !empty($errors))) {
|
Zeile 3199 | Zeile 3202 |
---|
$suspendsignature_info = $moderateposts_info = $suspendposting_info = ''; $action_options = $modpost_options = $suspost_options = '';
|
$suspendsignature_info = $moderateposts_info = $suspendposting_info = ''; $action_options = $modpost_options = $suspost_options = '';
|
| $modopts = array();
|
foreach($moderator_options as $option) {
|
foreach($moderator_options as $option) {
|
$mybb->input[$option['time']] = $mybb->get_input($option['time'], MyBB::INPUT_INT);
| ${$option['time']} = $mybb->get_input($option['time'], MyBB::INPUT_INT);
|
// Display the suspension info, if this user has this option suspended if($user[$option['option']]) {
| // Display the suspension info, if this user has this option suspended if($user[$option['option']]) {
|
Zeile 3223 | Zeile 3227 |
---|
{ case "suspendsignature": eval("\$suspendsignature_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";");
|
{ case "suspendsignature": eval("\$suspendsignature_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";");
|
break;
| break;
|
case "moderateposts": eval("\$moderateposts_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";");
|
case "moderateposts": eval("\$moderateposts_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";");
|
break;
| break;
|
case "suspendposting": eval("\$suspendposting_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";"); break;
| case "suspendposting": eval("\$suspendposting_info = \"".$templates->get("modcp_editprofile_suspensions_info")."\";"); break;
|
Zeile 3241 | Zeile 3245 |
---|
if($mybb->get_input($string) == $key) { $selected = "selected=\"selected\"";
|
if($mybb->get_input($string) == $key) { $selected = "selected=\"selected\"";
|
}
| }
|
else { $selected = ''; }
|
else { $selected = ''; }
|
|
|
eval("\$selection_options .= \"".$templates->get("modcp_editprofile_select_option")."\";");
|
eval("\$selection_options .= \"".$templates->get("modcp_editprofile_select_option")."\";");
|
}
| }
|
$select_name = $option['select_option']."_period"; switch($option['option']) { case "suspendsignature": eval("\$action_options = \"".$templates->get("modcp_editprofile_select")."\";");
|
$select_name = $option['select_option']."_period"; switch($option['option']) { case "suspendsignature": eval("\$action_options = \"".$templates->get("modcp_editprofile_select")."\";");
|
break;
| break;
|
case "moderateposts": eval("\$modpost_options = \"".$templates->get("modcp_editprofile_select")."\";");
|
case "moderateposts": eval("\$modpost_options = \"".$templates->get("modcp_editprofile_select")."\";");
|
break;
| break;
|
case "suspendposting": eval("\$suspost_options = \"".$templates->get("modcp_editprofile_select")."\";"); break; } }
|
case "suspendposting": eval("\$suspost_options = \"".$templates->get("modcp_editprofile_select")."\";"); break; } }
|
|
|
eval("\$suspend_signature = \"".$templates->get("modcp_editprofile_signature")."\";");
$user['usernotes'] = htmlspecialchars_uni($user['usernotes']);
if(!isset($newtitle))
|
eval("\$suspend_signature = \"".$templates->get("modcp_editprofile_signature")."\";");
$user['usernotes'] = htmlspecialchars_uni($user['usernotes']);
if(!isset($newtitle))
|
{
| {
|
$newtitle = '';
|
$newtitle = '';
|
}
| }
$birthday_year = $mybb->input['birthday_year']; $user_website = $mybb->input['website']; $user_icq = $mybb->input['icq']; $user_skype = $mybb->input['skype']; $user_google = $mybb->input['google']; $user_yahoo = $mybb->input['yahoo'];
|
$plugins->run_hooks("modcp_editprofile_end");
eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";"); output_page($edituser); }
|
$plugins->run_hooks("modcp_editprofile_end");
eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";"); output_page($edituser); }
|
|
|
if($mybb->input['action'] == "finduser") { if($mybb->usergroup['caneditprofiles'] == 0)
| if($mybb->input['action'] == "finduser") { if($mybb->usergroup['caneditprofiles'] == 0)
|
Zeile 3293 | Zeile 3304 |
---|
if(!$perpage || $perpage <= 0) { $perpage = $mybb->settings['threadsperpage'];
|
if(!$perpage || $perpage <= 0) { $perpage = $mybb->settings['threadsperpage'];
|
}
| }
|
$where = '';
if(isset($mybb->input['username']))
| $where = '';
if(isset($mybb->input['username']))
|
Zeile 3316 | Zeile 3327 |
---|
{ case "lastvisit": $sortby = "lastvisit";
|
{ case "lastvisit": $sortby = "lastvisit";
|
break;
| break;
|
case "postnum": $sortby = "postnum"; break;
| case "postnum": $sortby = "postnum"; break;
|
Zeile 3337 | Zeile 3348 |
---|
$ordersel[$order] = " selected=\"selected\"";
$query = $db->simple_select("users", "COUNT(uid) AS count", "1=1 {$where}");
|
$ordersel[$order] = " selected=\"selected\"";
$query = $db->simple_select("users", "COUNT(uid) AS count", "1=1 {$where}");
|
$user_count = $db->fetch_field($query, "count");
// Figure out if we need to display multiple pages.
| $user_count = $db->fetch_field($query, "count");
// Figure out if we need to display multiple pages.
|
if($mybb->get_input('page') != "last") { $page = $mybb->get_input('page');
| if($mybb->get_input('page') != "last") { $page = $mybb->get_input('page');
|
Zeile 3420 | Zeile 3431 |
---|
$plugins->run_hooks("modcp_finduser_end");
|
$plugins->run_hooks("modcp_finduser_end");
|
| $username = $mybb->get_input('username');
|
eval("\$finduser = \"".$templates->get("modcp_finduser")."\";"); output_page($finduser); }
| eval("\$finduser = \"".$templates->get("modcp_finduser")."\";"); output_page($finduser); }
|
Zeile 3636 | Zeile 3648 |
---|
}
$plugins->run_hooks("modcp_warninglogs_end");
|
}
$plugins->run_hooks("modcp_warninglogs_end");
|
| $filter_username = $mybb->input['filter']['username']; $filter_modusername = $mybb->input['filter']['mod_username']; $filter_reason = $mybb->input['filter']['reason'];
|
eval("\$warninglogs = \"".$templates->get("modcp_warninglogs")."\";"); output_page($warninglogs);
| eval("\$warninglogs = \"".$templates->get("modcp_warninglogs")."\";"); output_page($warninglogs);
|
Zeile 3690 | Zeile 3706 |
---|
if($unviewable_forums) { $where_sql .= " AND p.fid NOT IN ({$unviewable_forums})";
|
if($unviewable_forums) { $where_sql .= " AND p.fid NOT IN ({$unviewable_forums})";
|
}
| }
|
if($inactiveforums) { $where_sql .= " AND p.fid NOT IN ({$inactiveforums})";
| if($inactiveforums) { $where_sql .= " AND p.fid NOT IN ({$inactiveforums})";
|
Zeile 3709 | Zeile 3725 |
---|
}
if(!empty($onlyusfids))
|
}
if(!empty($onlyusfids))
|
{
| {
|
$where_sql .= " AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))"; }
| $where_sql .= " AND ((t.fid IN(".implode(',', $onlyusfids).") AND t.uid='{$mybb->user['uid']}') OR t.fid NOT IN(".implode(',', $onlyusfids)."))"; }
|
Zeile 4077 | Zeile 4093 |
---|
}
if($page > $pages || $page <= 0)
|
}
if($page > $pages || $page <= 0)
|
{ $page = 1; }
| { $page = 1; }
|
if($page) { $start = ($page-1) * $perpage;
| if($page) { $start = ($page-1) * $perpage;
|
Zeile 4104 | Zeile 4120 |
---|
ORDER BY dateline DESC LIMIT {$start}, {$perpage} ");
|
ORDER BY dateline DESC LIMIT {$start}, {$perpage} ");
|
|
|
// Get the banned users $bannedusers = ''; while($banned = $db->fetch_array($query))
| // Get the banned users $bannedusers = ''; while($banned = $db->fetch_array($query))
|
Zeile 4117 | Zeile 4133 |
---|
if($mybb->user['uid'] == $banned['admin'] || !$banned['adminuser'] || $mybb->usergroup['issupermod'] == 1 || $mybb->usergroup['cancp'] == 1) { eval("\$edit_link = \"".$templates->get("modcp_banning_edit")."\";");
|
if($mybb->user['uid'] == $banned['admin'] || !$banned['adminuser'] || $mybb->usergroup['issupermod'] == 1 || $mybb->usergroup['cancp'] == 1) { eval("\$edit_link = \"".$templates->get("modcp_banning_edit")."\";");
|
}
| }
|
$admin_profile = build_profile_link(htmlspecialchars_uni($banned['adminuser']), $banned['admin']);
|
$admin_profile = build_profile_link(htmlspecialchars_uni($banned['adminuser']), $banned['admin']);
|
|
|
$trow = alt_trow();
if($banned['reason']) { $banned['reason'] = htmlspecialchars_uni($parser->parse_badwords($banned['reason']));
|
$trow = alt_trow();
if($banned['reason']) { $banned['reason'] = htmlspecialchars_uni($parser->parse_badwords($banned['reason']));
|
} else
| } else
|
{ $banned['reason'] = $lang->na; }
| { $banned['reason'] = $lang->na; }
|
Zeile 4173 | Zeile 4189 |
---|
}
eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");
|
}
eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");
|
}
| }
|
if(!$bannedusers) {
| if(!$bannedusers) {
|
Zeile 4266 | Zeile 4282 |
---|
error_no_permission(); } }
|
error_no_permission(); } }
|
| $errors = array();
|
// Creating a new ban if(!$existing_ban)
| // Creating a new ban if(!$existing_ban)
|
Zeile 4725 | Zeile 4743 |
---|
$where = ''; if($tflist_modlog) {
|
$where = ''; if($tflist_modlog) {
|
$where = "WHERE (t.fid <> 0 {$tflist_modlog}) OR (!l.fid)";
| $where = "WHERE (t.fid <> 0 {$tflist_modlog}) OR (l.fid <> 0)";
|
}
$query = $db->query("
| }
$query = $db->query("
|