Vergleich inc/functions_modcp.php - 1.8.0 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 74Zeile 74
	{
foreach($children as $forum)
{

	{
foreach($children as $forum)
{

			if($forum['linkto'] || ($unviewableforums && in_array($forum['fid'], $unviewableforums)))

			if($forum['linkto'] || (is_array($unviewableforums) && in_array($forum['fid'], $unviewableforums)))

			{
continue;
}

			{
continue;
}

Zeile 82Zeile 82
			if($forum['active'] == 0 || !is_moderator($forum['fid'], "canmanageannouncements"))
{
// Check if this forum is a parent of a moderated forum

			if($forum['active'] == 0 || !is_moderator($forum['fid'], "canmanageannouncements"))
{
// Check if this forum is a parent of a moderated forum

				if(in_array($forum['fid'], $parent_forums))

				if(is_array($parent_forums) && in_array($forum['fid'], $parent_forums))

				{
// A child is moderated, so print out this forum's title. RECURSE!
$trow = alt_trow();

				{
// A child is moderated, so print out this forum's title. RECURSE!
$trow = alt_trow();

Zeile 144Zeile 144
{
global $db, $lang, $forum, $mybb, $post, $thread;


{
global $db, $lang, $forum, $mybb, $post, $thread;


	$query = $db->query("
SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."moderators m
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.id)
WHERE m.fid IN (".$forum['parentlist'].") AND m.isgroup = '0'
");




	$nummods = false;
if(!empty($forum['parentlist']))
{
$query = $db->query("
SELECT DISTINCT u.username, u.email, u.receivepms, u.uid
FROM ".TABLE_PREFIX."moderators m
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=m.id)
WHERE m.fid IN (".$forum['parentlist'].") AND m.isgroup = '0'
");





	$nummods = $db->num_rows($query);


		$nummods = $db->num_rows($query);
}


if(!$nummods)
{


if(!$nummods)
{

Zeile 249Zeile 253
		'reports' => 1,
'dateline' => TIME_NOW,
'lastreport' => TIME_NOW,

		'reports' => 1,
'dateline' => TIME_NOW,
'lastreport' => TIME_NOW,

		'reporters' => $db->escape_string(serialize(array($report['uid'])))

		'reporters' => $db->escape_string(my_serialize(array($report['uid'])))

	);

if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")

	);

if($mybb->settings['reportmethod'] == "email" || $mybb->settings['reportmethod'] == "pms")

Zeile 276Zeile 280
	$update_array = array(
'reports' => ++$report['reports'],
'lastreport' => TIME_NOW,

	$update_array = array(
'reports' => ++$report['reports'],
'lastreport' => TIME_NOW,

		'reporters' => $db->escape_string(serialize($report['reporters']))

		'reporters' => $db->escape_string(my_serialize($report['reporters']))

	);

$db->update_query("reportedcontent", $update_array, "rid = '{$report['rid']}'");

	);

$db->update_query("reportedcontent", $update_array, "rid = '{$report['rid']}'");