Vergleich inc/class_moderation.php - 1.4.0 - 1.4.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: class_moderation.php 4041 2008-07-25 20:13:08Z Tikitiki $

 * $Id: class_moderation.php 4176 2008-09-03 13:50:09Z Tikitiki $

 */

class Moderation

 */

class Moderation

Zeile 27Zeile 27
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$plugins->run_hooks("class_moderation_close_threads", $tids);



$plugins->run_hooks("class_moderation_close_threads", $tids);


Zeile 58Zeile 58
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$plugins->run_hooks("class_moderation_open_threads", $tids);



$plugins->run_hooks("class_moderation_open_threads", $tids);


Zeile 88Zeile 88
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$plugins->run_hooks("class_moderation_stick_threads", $tids);



$plugins->run_hooks("class_moderation_stick_threads", $tids);


Zeile 118Zeile 118
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$plugins->run_hooks("class_moderation_unstick_threads", $tids);



$plugins->run_hooks("class_moderation_unstick_threads", $tids);


Zeile 311Zeile 311
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


foreach($tids as $tid)
{


foreach($tids as $tid)
{

Zeile 385Zeile 385
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$tid_list = implode(',', $tids);



$tid_list = implode(',', $tids);


Zeile 474Zeile 474
		// Update unapproved post count
if($post['visible'] == 0)
{

		// Update unapproved post count
if($post['visible'] == 0)
{

			--$num_unaproved_posts;

			++$num_unapproved_posts;

		}
else
{

		}
else
{

Zeile 514Zeile 514
		global $db, $plugins;

// Make sure we only have valid values

		global $db, $plugins;

// Make sure we only have valid values

		array_walk($pids, 'intval');

		$pids = array_map('intval', $pids);

		$tid = intval($tid);

$pidin = implode(',', $pids);

		$tid = intval($tid);

$pidin = implode(',', $pids);

Zeile 1005Zeile 1005

$updated_stats = array(
"replies" => '+'.($mergethread['replies']+1),


$updated_stats = array(
"replies" => '+'.($mergethread['replies']+1),

			"unapprovedposts" => "+{$mergethread['unapprovedposts']}"


			"unapprovedposts" => "+{$mergethread['unapprovedposts']}",
"attachmentcount" => "+{$mergethread['attachmentcount']}",

		);
update_thread_counters($tid, $updated_stats);


		);
update_thread_counters($tid, $updated_stats);


Zeile 1059Zeile 1060
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($pids, 'intval');

		$pids = array_map('intval', $pids);


$pids_list = implode(',', $pids);



$pids_list = implode(',', $pids);


Zeile 1303Zeile 1304
		global $db, $plugins;

// Make sure we only have valid values

		global $db, $plugins;

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$tid_list = implode(',', $tids);



$tid_list = implode(',', $tids);


Zeile 1419Zeile 1420
		$num_posts = 0;

// Make sure we only have valid values

		$num_posts = 0;

// Make sure we only have valid values

		array_walk($pids, 'intval');

		$pids = array_map('intval', $pids);


$pid_list = implode(',', $pids);
$pids = $threads_to_update = array();


$pid_list = implode(',', $pids);
$pids = $threads_to_update = array();

Zeile 1525Zeile 1526
		global $db, $cache;

// Make sure we only have valid values

		global $db, $cache;

// Make sure we only have valid values

		array_walk($pids, 'intval');

		$pids = array_map('intval', $pids);


$pid_list = implode(',', $pids);
$pids = $threads_to_update = array();


$pid_list = implode(',', $pids);
$pids = $threads_to_update = array();

Zeile 1640Zeile 1641


// Make sure we only have valid values



// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$tid_list = implode(',', $tids);



$tid_list = implode(',', $tids);


Zeile 1701Zeile 1702
		global $db;

// Make sure we only have valid values

		global $db;

// Make sure we only have valid values

		array_walk($pids, 'intval');

		$pids = array_map('intval', $pids);


$pid_list = implode(',', $pids);
$query = $db->simple_select("posts", 'pid, visible', "pid IN ($pid_list)");


$pid_list = implode(',', $pids);
$query = $db->simple_select("posts", 'pid, visible', "pid IN ($pid_list)");

Zeile 1739Zeile 1740
		global $db;

// Make sure we only have valid values

		global $db;

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);

		$fid = intval($fid);

$tid_list = implode(',', $tids);

		$fid = intval($fid);

$tid_list = implode(',', $tids);

Zeile 1777Zeile 1778
		global $db;

// Make sure we only have valid values

		global $db;

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);


$tid_list = implode(',', $tids);
$query = $db->simple_select("threads", 'tid, closed', "tid IN ($tid_list)");


$tid_list = implode(',', $tids);
$query = $db->simple_select("threads", 'tid, closed', "tid IN ($tid_list)");

Zeile 1822Zeile 1823
		}

// Make sure we only have valid values

		}

// Make sure we only have valid values

		array_walk($tids, 'intval');

		$tids = array_map('intval', $tids);

		$fid = intval($fid);

$tids_csv = implode(',', $tids);

		$fid = intval($fid);

$tids_csv = implode(',', $tids);