Vergleich inc/class_custommoderation.php - 1.8.7 - 1.8.20

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