Vergleich report.php - 1.8.8 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 55Zeile 55

if(!$post)
{


if(!$post)
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
else
{
$id = $post['pid'];
$id2 = $post['tid'];
$report_type_db = "(type = 'post' OR type = '')";

	}
else
{
$id = $post['pid'];
$id2 = $post['tid'];
$report_type_db = "(type = 'post' OR type = '')";

 
		$checkid = $post['uid'];


// Check for a valid forum
$forum = get_forum($post['fid']);

if(!isset($forum['fid']))
{


// Check for a valid forum
$forum = get_forum($post['fid']);

if(!isset($forum['fid']))
{

			$error = $lang->error_invalid_report;

			$error = $lang->sprintf($lang->error_invalid_report, $report_type);

		}
else
{
$verified = true;

		}
else
{
$verified = true;

 
			$button = '#post_'.$id.' .postbit_report';

		}

		}

 

$id3 = $forum['fid'];


// Password protected forums ......... yhummmmy!


// Password protected forums ......... yhummmmy!

		$id3 = $forum['fid'];
check_forum_password($forum['parentlist']);
}
}

		check_forum_password($forum['fid']);
}
}


else if($report_type == 'profile')
{
$user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));

if(!isset($user['uid']))

else if($report_type == 'profile')
{
$user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));

if(!isset($user['uid']))

	{
$error = $lang->error_invalid_report;
}
else
{



	{
$error = $lang->sprintf($lang->error_invalid_report, $report_type);
}
else
{
$verified = true;
$report_type_db = "type = 'profile'";

		$id2 = $id3 = 0; // We don't use these on the profile

		$id2 = $id3 = 0; // We don't use these on the profile

		$id = $user['uid']; // id is the profile user
$permissions = user_permissions($user['uid']);

if(empty($permissions['canbereported']))
{
$error = $lang->error_invalid_report;
}
else
{
$verified = true;
$report_type_db = "type = 'profile'";
}

		$id = $checkid = $user['uid']; // id is the profile user
$button = '.report_user_button';











	}
}
else if($report_type == 'reputation')

	}
}
else if($report_type == 'reputation')

Zeile 111Zeile 106
	$query = $db->simple_select("reputation", "*", "rid = '".$mybb->get_input('pid', MyBB::INPUT_INT)."'");

if(!$db->num_rows($query))

	$query = $db->simple_select("reputation", "*", "rid = '".$mybb->get_input('pid', MyBB::INPUT_INT)."'");

if(!$db->num_rows($query))

	{
$error = $lang->error_invalid_report;

	{
$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
else
{
$verified = true;
$reputation = $db->fetch_array($query);

	}
else
{
$verified = true;
$reputation = $db->fetch_array($query);



 
		$id = $reputation['rid']; // id is the reputation id

		$id = $reputation['rid']; // id is the reputation id

		$id2 = $reputation['adduid']; // id2 is the user who gave the comment

		$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment

		$id3 = $reputation['uid']; // id3 is the user who received the comment

		$id3 = $reputation['uid']; // id3 is the user who received the comment



 
		$report_type_db = "type = 'reputation'";

		$report_type_db = "type = 'reputation'";

 
		$button = '#rid'.$id.' .postbit_report';

	}
}

$plugins->run_hooks("report_type");

	}
}

$plugins->run_hooks("report_type");

 

$permissions = user_permissions($checkid);
if(empty($permissions['canbereported']))
{
$error = $lang->sprintf($lang->error_invalid_report, $report_type);
}


// Check for an existing report
if(!empty($report_type_db))


// Check for an existing report
if(!empty($report_type_db))

Zeile 166Zeile 166

eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;


eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;

 
		echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);

		exit;
}
else

		exit;
}
else

Zeile 184Zeile 185

if(!$db->num_rows($query))
{


if(!$db->num_rows($query))
{

			$error = $lang->error_invalid_report_reason;

			$error = $lang->sprintf($lang->error_invalid_report, $report_type);

			$verified = false;
}
else

			$verified = false;
}
else

Zeile 192Zeile 193
			$reason = $db->fetch_array($query);

$new_report['reasonid'] = $reason['rid'];

			$reason = $db->fetch_array($query);

$new_report['reasonid'] = $reason['rid'];

 
			$new_report['reason'] = '';


if($reason['extra'])
{


if($reason['extra'])
{

Zeile 224Zeile 226

eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;


eval("\$report_thanks = \"".$templates->get("report_thanks")."\";");
echo $report_thanks;

 
			echo sprintf("<script type='text/javascript'>$('%s').remove();</script>", $button);

			exit;
}
}

			exit;
}
}

Zeile 235Zeile 238

if($verified == false && empty($error))
{


if($verified == false && empty($error))
{

		$error = $lang->error_invalid_report;

		$error = $lang->sprintf($lang->error_invalid_report, $report_type);

	}
}


	}
}


Zeile 272Zeile 275
		}
}


		}
}


	if($mybb->input['no_modal'])

	if($mybb->get_input('no_modal'))

	{
echo $report_reasons;
exit;

	{
echo $report_reasons;
exit;