Vergleich inc/class_moderation.php - 1.4.1 - 1.4.4

  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 4119 2008-08-16 01:00:23Z 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 1060Zeile 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 1304Zeile 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 1420Zeile 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 1526Zeile 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 1641Zeile 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 1702Zeile 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 1740Zeile 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 1778Zeile 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 1823Zeile 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);