Vergleich inc/class_custommoderation.php - 1.8.6 - 1.8.26

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 32Zeile 32
		global $db;

// Get tool info

		global $db;

// Get tool info

		$query = $db->simple_select("modtools", "*", 'tid="'.(int)$tool_id.'"');

		$query = $db->simple_select("modtools", "*", 'tid='.(int)$tool_id);

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

Zeile 57Zeile 57
		global $db;

// Get tool info

		global $db;

// Get tool info

		$query = $db->simple_select("modtools", '*', 'tid="'.(int)$tool_id.'"');

		$query = $db->simple_select("modtools", '*', 'tid='.(int)$tool_id);

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

		$tool = $db->fetch_array($query);
if(!$tool['tid'])
{

Zeile 103Zeile 103
	 * @param array|int $tid Thread IDs (in order of dateline ascending). Only the first one will be used
* @return boolean true
*/

	 * @param array|int $tid Thread IDs (in order of dateline ascending). Only the first one will be used
* @return boolean true
*/

	function execute_post_moderation($post_options, $pids, $tid)

	function execute_post_moderation($post_options=array(), $pids=array(), $tid)

	{
global $db, $mybb, $lang;


	{
global $db, $mybb, $lang;


Zeile 137Zeile 137
				foreach($delete_tids as $delete_tid)
{
$this->delete_thread($delete_tid);

				foreach($delete_tids as $delete_tid)
{
$this->delete_thread($delete_tid);

					mark_reports($delete_tid, "thread");

 
				}
// return true here so the code in execute() above knows to redirect to the forum
return true;

				}
// return true here so the code in execute() above knows to redirect to the forum
return true;

Zeile 241Zeile 240
						"uid" => $mybb->user['uid'],
"username" => $mybb->user['username'],
"message" => $post_options['splitpostsaddreply'],

						"uid" => $mybb->user['uid'],
"username" => $mybb->user['username'],
"message" => $post_options['splitpostsaddreply'],

						"ipaddress" => $db->escape_binary(my_inet_pton(get_ip())),

						"ipaddress" => my_inet_pton(get_ip()),

					);
// Set up the post options from the input.
$post['options'] = array(

					);
// Set up the post options from the input.
$post['options'] = array(

Zeile 269Zeile 268
	 * @param array Thread IDs. Only the first one will be used, but it needs to be an array
* @return boolean true
*/

	 * @param array Thread IDs. Only the first one will be used, but it needs to be an array
* @return boolean true
*/

	function execute_thread_moderation($thread_options, $tids)

	function execute_thread_moderation($thread_options=array(), $tids=array())

	{
global $db, $mybb;


	{
global $db, $mybb;


Zeile 413Zeile 412
						"uid" => $mybb->user['uid'],
"username" => $mybb->user['username'],
"message" => $thread_options['addreply'],

						"uid" => $mybb->user['uid'],
"username" => $mybb->user['username'],
"message" => $thread_options['addreply'],

						"ipaddress" => $db->escape_binary(my_inet_pton(get_ip())),

						"ipaddress" => my_inet_pton(get_ip()),

					);

// Set up the post options from the input.

					);

// Set up the post options from the input.