Zeile 6 | Zeile 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 27 | Zeile 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 58 | Zeile 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 88 | Zeile 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 118 | Zeile 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 311 | Zeile 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 385 | Zeile 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 474 | Zeile 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 514 | Zeile 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 1005 | Zeile 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 1059 | Zeile 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 1303 | Zeile 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 1419 | Zeile 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 1525 | Zeile 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 1640 | Zeile 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 1701 | Zeile 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 1739 | Zeile 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 1777 | Zeile 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 1822 | Zeile 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);
|