Vergleich report.php - 1.8.20 - 1.8.24

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 74Zeile 74
		else
{
$verified = true;

		else
{
$verified = true;

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

		}


		}


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

 
		$id3 = $forum['fid'];

		$id3 = $forum['fid'];

		check_forum_password($forum['parentlist']);




// Password protected forums ......... yhummmmy!
check_forum_password($forum['fid']);

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

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

{

{

	$user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));

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

	$user = get_user($mybb->get_input('pid', MyBB::INPUT_INT));

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

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

	{
$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
$id = $checkid = $user['uid']; // id is the profile user

	else
{
$verified = true;
$report_type_db = "type = 'profile'";
$id2 = $id3 = 0; // We don't use these on the 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 114Zeile 117
		$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment
$id3 = $reputation['uid']; // id3 is the user who received the comment
$report_type_db = "type = 'reputation'";

		$id2 = $checkid = $reputation['adduid']; // id2 is the user who gave the comment
$id3 = $reputation['uid']; // id3 is the user who received the comment
$report_type_db = "type = 'reputation'";

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

	}
}

	}
}

 

$plugins->run_hooks("report_type");


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


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


$plugins->run_hooks("report_type");

 

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


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

Zeile 162Zeile 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 220Zeile 225

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