Vergleich modcp.php - 1.8.14 - 1.8.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 58Zeile 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 263Zeile 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 2585Zeile 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 2665Zeile 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 2773Zeile 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");

if(!$user['displaygroup'])
{
$user['displaygroup'] = $user['usergroup'];
}

$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 2805Zeile 2822
	}

// Sanitize all input

	}

// 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 3151Zeile 3160
	{
$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 3199Zeile 3208

$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 3268Zeile 3278
	eval("\$suspend_signature = \"".$templates->get("modcp_editprofile_signature")."\";");

$user['usernotes'] = htmlspecialchars_uni($user['usernotes']);

	eval("\$suspend_signature = \"".$templates->get("modcp_editprofile_signature")."\";");

$user['usernotes'] = htmlspecialchars_uni($user['usernotes']);





	if(!isset($newtitle))
{
$newtitle = '';

	if(!isset($newtitle))
{
$newtitle = '';

	}

$plugins->run_hooks("modcp_editprofile_end");








	}

$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);


eval("\$edituser = \"".$templates->get("modcp_editprofile")."\";");
output_page($edituser);

Zeile 3286Zeile 3303
	{
error_no_permission();
}

	{
error_no_permission();
}





	add_breadcrumb($lang->mcp_nav_users, "modcp.php?action=finduser");

$perpage = $mybb->get_input('perpage', MyBB::INPUT_INT);
if(!$perpage || $perpage <= 0)

	add_breadcrumb($lang->mcp_nav_users, "modcp.php?action=finduser");

$perpage = $mybb->get_input('perpage', MyBB::INPUT_INT);
if(!$perpage || $perpage <= 0)

	{

	{

		$perpage = $mybb->settings['threadsperpage'];
}
$where = '';

		$perpage = $mybb->settings['threadsperpage'];
}
$where = '';

Zeile 3337Zeile 3354
	$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");

	$user_count = $db->fetch_field($query, "count");


// Figure out if we need to display multiple pages.
if($mybb->get_input('page') != "last")


// Figure out if we need to display multiple pages.
if($mybb->get_input('page') != "last")

Zeile 3351Zeile 3368
	if($mybb->get_input('page') == "last")
{
$page = $pages;

	if($mybb->get_input('page') == "last")
{
$page = $pages;

	}

	}


if($page > $pages || $page <= 0)


if($page > $pages || $page <= 0)

	{

	{

		$page = 1;
}
if($page)
{
$start = ($page-1) * $perpage;

		$page = 1;
}
if($page)
{
$start = ($page-1) * $perpage;

	}
else

	}
else

	{
$start = 0;
$page = 1;

	{
$start = 0;
$page = 1;

Zeile 3406Zeile 3423
		else
{
$lastdate = my_date('relative', $user['lastvisit']);

		else
{
$lastdate = my_date('relative', $user['lastvisit']);

		}


		}


		$usergroup = htmlspecialchars_uni($usergroups_cache[$user['usergroup']]['title']);
eval("\$users .= \"".$templates->get("modcp_finduser_user")."\";");

		$usergroup = htmlspecialchars_uni($usergroups_cache[$user['usergroup']]['title']);
eval("\$users .= \"".$templates->get("modcp_finduser_user")."\";");

	}

	}


// No results?
if(!$users)


// No results?
if(!$users)

Zeile 3419Zeile 3436
	}

$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 3429Zeile 3447
	if($mybb->usergroup['canviewwarnlogs'] == 0)
{
error_no_permission();

	if($mybb->usergroup['canviewwarnlogs'] == 0)
{
error_no_permission();

	}


	}


	add_breadcrumb($lang->mcp_nav_warninglogs, "modcp.php?action=warninglogs");

// Filter options

	add_breadcrumb($lang->mcp_nav_warninglogs, "modcp.php?action=warninglogs");

// Filter options

Zeile 3523Zeile 3541
	if(!isset($mybb->input['filter']['order']))
{
$mybb->input['filter']['order'] = '';

	if(!isset($mybb->input['filter']['order']))
{
$mybb->input['filter']['order'] = '';

	}

	}

	$order = $mybb->input['filter']['order'];
$ordersel = array('asc' => '', 'desc' => '');
if($order != "asc")

	$order = $mybb->input['filter']['order'];
$ordersel = array('asc' => '', 'desc' => '');
if($order != "asc")

	{

	{

		$order = "desc";
$ordersel['desc'] = ' selected="selected"';

		$order = "desc";
$ordersel['desc'] = ' selected="selected"';

	}

	}

	else
{
$ordersel['asc'] = ' selected="selected"';
}

	else
{
$ordersel['asc'] = ' selected="selected"';
}





	$plugins->run_hooks("modcp_warninglogs_start");

// Pagination stuff

	$plugins->run_hooks("modcp_warninglogs_start");

// Pagination stuff

Zeile 3543Zeile 3561
		SELECT COUNT(wid) as count
FROM
".TABLE_PREFIX."warnings w

		SELECT COUNT(wid) as count
FROM
".TABLE_PREFIX."warnings w

			LEFT JOIN ".TABLE_PREFIX."warningtypes t ON (w.tid=t.tid)
WHERE 1=1
{$where_sql}
";
$query = $db->query($sql);

			LEFT JOIN ".TABLE_PREFIX."warningtypes t ON (w.tid=t.tid)
WHERE 1=1
{$where_sql}
";
$query = $db->query($sql);

	$total_warnings = $db->fetch_field($query, 'count');
$page = $mybb->get_input('page', MyBB::INPUT_INT);
if($page <= 0)

	$total_warnings = $db->fetch_field($query, 'count');
$page = $mybb->get_input('page', MyBB::INPUT_INT);
if($page <= 0)

	{
$page = 1;
}

	{
$page = 1;
}

	$per_page = 20;
if(isset($mybb->input['filter']['per_page']) && (int)$mybb->input['filter']['per_page'] > 0)

	$per_page = 20;
if(isset($mybb->input['filter']['per_page']) && (int)$mybb->input['filter']['per_page'] > 0)

	{

	{

		$per_page = (int)$mybb->input['filter']['per_page'];

		$per_page = (int)$mybb->input['filter']['per_page'];

	}

	}

	$start = ($page-1) * $per_page;

	$start = ($page-1) * $per_page;

 
	$pages = ceil($total_warning / $per_page);
if($page > $pages)
{
$start = 0;
$page = 1;
}

	// Build the base URL for pagination links
$url = 'modcp.php?action=warninglogs';
if(is_array($mybb->input['filter']) && count($mybb->input['filter']))

	// Build the base URL for pagination links
$url = 'modcp.php?action=warninglogs';
if(is_array($mybb->input['filter']) && count($mybb->input['filter']))

Zeile 3593Zeile 3617

$warning_list = '';
while($row = $db->fetch_array($query))


$warning_list = '';
while($row = $db->fetch_array($query))

	{

	{

		$trow = alt_trow();
$row['username'] = htmlspecialchars_uni($row['username']);
$username = format_name($row['username'], $row['usergroup'], $row['displaygroup']);

		$trow = alt_trow();
$row['username'] = htmlspecialchars_uni($row['username']);
$username = format_name($row['username'], $row['usergroup'], $row['displaygroup']);

Zeile 3636Zeile 3660
	}

$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);
}





if($mybb->input['action'] == "ipsearch")
{
if($mybb->usergroup['canuseipsearch'] == 0)

if($mybb->input['action'] == "ipsearch")
{
if($mybb->usergroup['canuseipsearch'] == 0)

Zeile 3649Zeile 3677
	}

add_breadcrumb($lang->mcp_nav_ipsearch, "modcp.php?action=ipsearch");

	}

add_breadcrumb($lang->mcp_nav_ipsearch, "modcp.php?action=ipsearch");





	$mybb->input['ipaddress'] = $mybb->get_input('ipaddress');
if($mybb->input['ipaddress'])
{

	$mybb->input['ipaddress'] = $mybb->get_input('ipaddress');
if($mybb->input['ipaddress'])
{

Zeile 3663Zeile 3691
		$ip_range = fetch_ip_range($mybb->input['ipaddress']);

$post_results = $user_results = 0;

		$ip_range = fetch_ip_range($mybb->input['ipaddress']);

$post_results = $user_results = 0;





		// Searching post IP addresses
if(isset($mybb->input['search_posts']))
{

		// Searching post IP addresses
if(isset($mybb->input['search_posts']))
{

Zeile 3672Zeile 3700
				if(!is_array($ip_range))
{
$post_ip_sql = "p.ipaddress=".$db->escape_binary($ip_range);

				if(!is_array($ip_range))
{
$post_ip_sql = "p.ipaddress=".$db->escape_binary($ip_range);

				}

				}

				else
{
$post_ip_sql = "p.ipaddress BETWEEN ".$db->escape_binary($ip_range[0])." AND ".$db->escape_binary($ip_range[1]);
}
}

				else
{
$post_ip_sql = "p.ipaddress BETWEEN ".$db->escape_binary($ip_range[0])." AND ".$db->escape_binary($ip_range[1]);
}
}





			$plugins->run_hooks("modcp_ipsearch_posts_start");

if($post_ip_sql)

			$plugins->run_hooks("modcp_ipsearch_posts_start");

if($post_ip_sql)

Zeile 3686Zeile 3714
				$where_sql = '';

$unviewable_forums = get_unviewable_forums(true);

				$where_sql = '';

$unviewable_forums = get_unviewable_forums(true);





				if($unviewable_forums)
{
$where_sql .= " AND p.fid NOT IN ({$unviewable_forums})";

				if($unviewable_forums)
{
$where_sql .= " AND p.fid NOT IN ({$unviewable_forums})";

Zeile 3695Zeile 3723
				if($inactiveforums)
{
$where_sql .= " AND p.fid NOT IN ({$inactiveforums})";

				if($inactiveforums)
{
$where_sql .= " AND p.fid NOT IN ({$inactiveforums})";

				}

				}


// Check group permissions if we can't view threads not started by us
$onlyusfids = array();


// Check group permissions if we can't view threads not started by us
$onlyusfids = array();

Zeile 3709Zeile 3737
				}

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 3755Zeile 3783
					WHERE {$post_ip_sql}{$where_sql}{$visible_sql}
");
$post_results = $db->fetch_field($query, "count");

					WHERE {$post_ip_sql}{$where_sql}{$visible_sql}
");
$post_results = $db->fetch_field($query, "count");

			}
}

			}
}


// Searching user IP addresses
if(isset($mybb->input['search_users']))


// Searching user IP addresses
if(isset($mybb->input['search_users']))

Zeile 3801Zeile 3829
		if($mybb->get_input('page') != "last")
{
$page = $mybb->get_input('page', MyBB::INPUT_INT);

		if($mybb->get_input('page') != "last")
{
$page = $mybb->get_input('page', MyBB::INPUT_INT);

		}


		}


		$pages = $total_results / $perpage;
$pages = ceil($pages);

		$pages = $total_results / $perpage;
$pages = ceil($pages);





		if($mybb->get_input('page') == "last")
{
$page = $pages;
}

if($page > $pages || $page <= 0)

		if($mybb->get_input('page') == "last")
{
$page = $pages;
}

if($page > $pages || $page <= 0)

		{
$page = 1;
}

		{
$page = 1;
}


if($page)


if($page)

		{

		{

			$start = ($page-1) * $perpage;
}
else
{
$start = 0;
$page = 1;

			$start = ($page-1) * $perpage;
}
else
{
$start = 0;
$page = 1;

		}


		}


		$page_url = "modcp.php?action=ipsearch&amp;perpage={$perpage}";
foreach(array('ipaddress', 'search_users', 'search_posts') as $input)
{

		$page_url = "modcp.php?action=ipsearch&amp;perpage={$perpage}";
foreach(array('ipaddress', 'search_users', 'search_posts') as $input)
{

Zeile 3894Zeile 3922
			}
}
if(isset($mybb->input['search_posts']) && $post_results && (!isset($mybb->input['search_users']) || (isset($mybb->input['search_users']) && $post_limit > 0)))

			}
}
if(isset($mybb->input['search_posts']) && $post_results && (!isset($mybb->input['search_users']) || (isset($mybb->input['search_users']) && $post_limit > 0)))

		{

		{

			$ipaddresses = $tids = $uids = array();

$query = $db->query("

			$ipaddresses = $tids = $uids = array();

$query = $db->query("

Zeile 3916Zeile 3944
			{
$query = $db->simple_select("threads", "subject, tid", "tid IN(".implode(',', array_keys($tids)).")");
while($thread = $db->fetch_array($query))

			{
$query = $db->simple_select("threads", "subject, tid", "tid IN(".implode(',', array_keys($tids)).")");
while($thread = $db->fetch_array($query))

				{

				{

					$ipaddresses[$tids[$thread['tid']]]['threadsubject'] = $thread['subject'];
}
unset($tids);

					$ipaddresses[$tids[$thread['tid']]]['threadsubject'] = $thread['subject'];
}
unset($tids);

Zeile 3962Zeile 3990
			$lang->ipsearch_results = $lang->sprintf($lang->ipsearch_results, $ipaddressvalue);
}
else

			$lang->ipsearch_results = $lang->sprintf($lang->ipsearch_results, $ipaddressvalue);
}
else

		{

		{

			$lang->ipsearch_results = $lang->ipsearch;

			$lang->ipsearch_results = $lang->ipsearch;

		}

		}


$ipaddress = $ipaddress_url = $misc_info_link = '';
if(!strstr($mybb->input['ipaddress'], "*") && !strstr($mybb->input['ipaddress'], "/"))


$ipaddress = $ipaddress_url = $misc_info_link = '';
if(!strstr($mybb->input['ipaddress'], "*") && !strstr($mybb->input['ipaddress'], "/"))

Zeile 3973Zeile 4001
			$ipaddress_url = urlencode($mybb->input['ipaddress']);
eval("\$misc_info_link = \"".$templates->get("modcp_ipsearch_results_information")."\";");
}

			$ipaddress_url = urlencode($mybb->input['ipaddress']);
eval("\$misc_info_link = \"".$templates->get("modcp_ipsearch_results_information")."\";");
}





		eval("\$ipsearch_results = \"".$templates->get("modcp_ipsearch_results")."\";");
}

// Fetch filter options
if(!$mybb->input['ipaddress'])

		eval("\$ipsearch_results = \"".$templates->get("modcp_ipsearch_results")."\";");
}

// Fetch filter options
if(!$mybb->input['ipaddress'])

	{

	{

		$mybb->input['search_posts'] = 1;
$mybb->input['search_users'] = 1;
}
$usersearchselect = $postsearchselect = '';
if(isset($mybb->input['search_posts']))

		$mybb->input['search_posts'] = 1;
$mybb->input['search_users'] = 1;
}
$usersearchselect = $postsearchselect = '';
if(isset($mybb->input['search_posts']))

	{

	{

		$postsearchselect = "checked=\"checked\"";
}
if(isset($mybb->input['search_users']))

		$postsearchselect = "checked=\"checked\"";
}
if(isset($mybb->input['search_users']))

Zeile 4077Zeile 4105
	}

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 4104Zeile 4132
		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 4117Zeile 4145
		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 4173Zeile 4201
		}

eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");

		}

eval("\$bannedusers .= \"".$templates->get("modcp_banning_ban")."\";");

	}

	}


if(!$bannedusers)
{


if(!$bannedusers)
{

Zeile 4266Zeile 4294
			error_no_permission();
}
}

			error_no_permission();
}
}

 

$errors = array();


// Creating a new ban
if(!$existing_ban)


// Creating a new ban
if(!$existing_ban)

Zeile 4725Zeile 4755
		$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("