Zeile 18 | Zeile 18 |
---|
$plugins->run_hooks("admin_tools_recount_rebuild");
|
$plugins->run_hooks("admin_tools_recount_rebuild");
|
| /** * Rebuild forum counters */
|
function acp_rebuild_forum_counters() { global $db, $mybb, $lang;
| function acp_rebuild_forum_counters() { global $db, $mybb, $lang;
|
Zeile 27 | Zeile 30 |
---|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('forumcounters', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('forumcounters', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 50; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
$query = $db->simple_select("forums", "fid", '', array('order_by' => 'fid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($forum = $db->fetch_array($query))
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
$query = $db->simple_select("forums", "fid", '', array('order_by' => 'fid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($forum = $db->fetch_array($query))
|
{
| {
|
$update['parentlist'] = make_parent_list($forum['fid']); $db->update_query("forums", $update, "fid='{$forum['fid']}'"); rebuild_forum_counters($forum['fid']); }
check_proceed($num_forums, $end, ++$page, $per_page, "forumcounters", "do_rebuildforumcounters", $lang->success_rebuilt_forum_counters);
|
$update['parentlist'] = make_parent_list($forum['fid']); $db->update_query("forums", $update, "fid='{$forum['fid']}'"); rebuild_forum_counters($forum['fid']); }
check_proceed($num_forums, $end, ++$page, $per_page, "forumcounters", "do_rebuildforumcounters", $lang->success_rebuilt_forum_counters);
|
}
| }
/** * Rebuild thread counters */
|
function acp_rebuild_thread_counters() { global $db, $mybb, $lang;
$query = $db->simple_select("threads", "COUNT(*) as num_threads");
|
function acp_rebuild_thread_counters() { global $db, $mybb, $lang;
$query = $db->simple_select("threads", "COUNT(*) as num_threads");
|
$num_threads = $db->fetch_field($query, 'num_threads');
| $num_threads = $db->fetch_field($query, 'num_threads');
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('threadcounters', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('threadcounters', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; } $start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
$query = $db->simple_select("threads", "tid", '', array('order_by' => 'tid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($thread = $db->fetch_array($query)) {
| $query = $db->simple_select("threads", "tid", '', array('order_by' => 'tid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($thread = $db->fetch_array($query)) {
|
Zeile 70 | Zeile 70 |
---|
check_proceed($num_threads, $end, ++$page, $per_page, "threadcounters", "do_rebuildthreadcounters", $lang->success_rebuilt_thread_counters); }
|
check_proceed($num_threads, $end, ++$page, $per_page, "threadcounters", "do_rebuildthreadcounters", $lang->success_rebuilt_thread_counters); }
|
| /** * Rebuild poll counters */
|
function acp_rebuild_poll_counters() { global $db, $mybb, $lang;
| function acp_rebuild_poll_counters() { global $db, $mybb, $lang;
|
Zeile 79 | Zeile 82 |
---|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('pollcounters', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('pollcounters', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
Zeile 90 | Zeile 90 |
---|
while($poll = $db->fetch_array($query)) { rebuild_poll_counters($poll['pid']);
|
while($poll = $db->fetch_array($query)) { rebuild_poll_counters($poll['pid']);
|
}
| }
|
check_proceed($num_polls, $end, ++$page, $per_page, "pollcounters", "do_rebuildpollcounters", $lang->success_rebuilt_poll_counters); }
|
check_proceed($num_polls, $end, ++$page, $per_page, "pollcounters", "do_rebuildpollcounters", $lang->success_rebuilt_poll_counters); }
|
| /** * Recount user posts */
|
function acp_recount_user_posts() { global $db, $mybb, $lang;
| function acp_recount_user_posts() { global $db, $mybb, $lang;
|
Zeile 104 | Zeile 107 |
---|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('userposts', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('userposts', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
Zeile 127 | Zeile 127 |
---|
else { $fids = "";
|
else { $fids = "";
|
}
| }
|
$query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query))
| $query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query))
|
Zeile 146 | Zeile 146 |
---|
check_proceed($num_users, $end, ++$page, $per_page, "userposts", "do_recountuserposts", $lang->success_rebuilt_user_post_counters); }
|
check_proceed($num_users, $end, ++$page, $per_page, "userposts", "do_recountuserposts", $lang->success_rebuilt_user_post_counters); }
|
| /** * Recount user threads */
|
function acp_recount_user_threads()
|
function acp_recount_user_threads()
|
{
| {
|
global $db, $mybb, $lang;
|
global $db, $mybb, $lang;
|
|
|
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('userthreads', MyBB::INPUT_INT);
|
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('userthreads', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
Zeile 196 | Zeile 196 |
---|
check_proceed($num_users, $end, ++$page, $per_page, "userthreads", "do_recountuserthreads", $lang->success_rebuilt_user_thread_counters); }
|
check_proceed($num_users, $end, ++$page, $per_page, "userthreads", "do_recountuserthreads", $lang->success_rebuilt_user_thread_counters); }
|
| /** * Recount reputation values */
|
function acp_recount_reputation() { global $db, $mybb, $lang;
| function acp_recount_reputation() { global $db, $mybb, $lang;
|
Zeile 205 | Zeile 208 |
---|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('reputation', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('reputation', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; } $start = ($page-1) * $per_page; $end = $start + $per_page;
$query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query))
| $start = ($page-1) * $per_page; $end = $start + $per_page;
$query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query))
|
{ $query2 = $db->query(" SELECT SUM(reputation) as total_rep FROM ".TABLE_PREFIX."reputation
|
{ $query2 = $db->query(" SELECT SUM(reputation) as total_rep FROM ".TABLE_PREFIX."reputation
|
WHERE `uid`='{$user['uid']}'
| WHERE uid='{$user['uid']}'
|
"); $total_rep = $db->fetch_field($query2, "total_rep");
| "); $total_rep = $db->fetch_field($query2, "total_rep");
|
Zeile 226 | Zeile 226 |
---|
}
check_proceed($num_users, $end, ++$page, $per_page, "reputation", "do_recountreputation", $lang->success_rebuilt_reputation);
|
}
check_proceed($num_users, $end, ++$page, $per_page, "reputation", "do_recountreputation", $lang->success_rebuilt_reputation);
|
}
| }
/** * Recount warnings for users */
|
function acp_recount_warning()
|
function acp_recount_warning()
|
{ global $db, $mybb, $lang;
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
| { global $db, $mybb, $lang;
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('warning', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('warning', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
Zeile 260 | Zeile 260 |
---|
check_proceed($num_users, $end, ++$page, $per_page, "warning", "do_recountwarning", $lang->success_rebuilt_warning); }
|
check_proceed($num_users, $end, ++$page, $per_page, "warning", "do_recountwarning", $lang->success_rebuilt_warning); }
|
| /** * Recount private messages (total and unread) for users */
|
function acp_recount_private_messages()
|
function acp_recount_private_messages()
|
{ global $db, $mybb, $lang;
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
| { global $db, $mybb, $lang;
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('privatemessages', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('privatemessages', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; } $start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
require_once MYBB_ROOT."inc/functions_user.php";
$query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query)) { update_pm_count($user['uid']);
|
require_once MYBB_ROOT."inc/functions_user.php";
$query = $db->simple_select("users", "uid", '', array('order_by' => 'uid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($user = $db->fetch_array($query)) { update_pm_count($user['uid']);
|
}
| }
|
check_proceed($num_users, $end, ++$page, $per_page, "privatemessages", "do_recountprivatemessages", $lang->success_rebuilt_private_messages); }
|
check_proceed($num_users, $end, ++$page, $per_page, "privatemessages", "do_recountprivatemessages", $lang->success_rebuilt_private_messages); }
|
| /** * Recount referrals for users */
|
function acp_recount_referrals()
|
function acp_recount_referrals()
|
{ global $db, $mybb, $lang;
| { global $db, $mybb, $lang;
|
$query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
| $query = $db->simple_select("users", "COUNT(uid) as num_users"); $num_users = $db->fetch_field($query, 'num_users');
|
Zeile 315 | Zeile 318 |
---|
check_proceed($num_users, $end, ++$page, $per_page, "referral", "do_recountreferral", $lang->success_rebuilt_referral); }
|
check_proceed($num_users, $end, ++$page, $per_page, "referral", "do_recountreferral", $lang->success_rebuilt_referral); }
|
| /** * Recount thread ratings */
|
function acp_recount_thread_ratings() { global $db, $mybb, $lang;
$query = $db->simple_select("threads", "COUNT(*) as num_threads"); $num_threads = $db->fetch_field($query, 'num_threads');
|
function acp_recount_thread_ratings() { global $db, $mybb, $lang;
$query = $db->simple_select("threads", "COUNT(*) as num_threads"); $num_threads = $db->fetch_field($query, 'num_threads');
|
$page = $mybb->get_input('page', MyBB::INPUT_INT);
| $page = $mybb->get_input('page', MyBB::INPUT_INT);
|
$per_page = $mybb->get_input('threadrating', MyBB::INPUT_INT);
|
$per_page = $mybb->get_input('threadrating', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 500; } $start = ($page-1) * $per_page; $end = $start + $per_page;
| $start = ($page-1) * $per_page; $end = $start + $per_page;
|
$query = $db->simple_select("threads", "tid", '', array('order_by' => 'tid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($thread = $db->fetch_array($query))
| $query = $db->simple_select("threads", "tid", '', array('order_by' => 'tid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($thread = $db->fetch_array($query))
|
Zeile 342 | Zeile 345 |
---|
$recount = $db->fetch_array($query2);
$db->update_query("threads", array("numratings" => (int)$recount['num_ratings'], "totalratings" => (int)$recount['total_rating']), "tid='{$thread['tid']}'");
|
$recount = $db->fetch_array($query2);
$db->update_query("threads", array("numratings" => (int)$recount['num_ratings'], "totalratings" => (int)$recount['total_rating']), "tid='{$thread['tid']}'");
|
}
| }
|
check_proceed($num_threads, $end, ++$page, $per_page, "threadrating", "do_recountthreadrating", $lang->success_rebuilt_thread_ratings); }
|
check_proceed($num_threads, $end, ++$page, $per_page, "threadrating", "do_recountthreadrating", $lang->success_rebuilt_thread_ratings); }
|
| /** * Rebuild thumbnails for attachments */
|
function acp_rebuild_attachment_thumbnails() { global $db, $mybb, $lang;
| function acp_rebuild_attachment_thumbnails() { global $db, $mybb, $lang;
|
Zeile 356 | Zeile 362 |
---|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('attachmentthumbs', MyBB::INPUT_INT);
|
$page = $mybb->get_input('page', MyBB::INPUT_INT); $per_page = $mybb->get_input('attachmentthumbs', MyBB::INPUT_INT);
|
if($per_page <= 0) { $per_page = 20; }
|
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
|
| $uploadspath = $mybb->settings['uploadspath']; if(my_substr($uploadspath, 0, 1) == '.') { $uploadspath = MYBB_ROOT . $mybb->settings['uploadspath']; }
|
require_once MYBB_ROOT."inc/functions_image.php";
| require_once MYBB_ROOT."inc/functions_image.php";
|
Zeile 372 | Zeile 381 |
---|
if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe") { $thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);
|
if($ext == "gif" || $ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "jpe") { $thumbname = str_replace(".attach", "_thumb.$ext", $attachment['attachname']);
|
$thumbnail = generate_thumbnail(MYBB_ROOT."uploads/".$attachment['attachname'], MYBB_ROOT."uploads/", $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);
| $thumbnail = generate_thumbnail($uploadspath."/".$attachment['attachname'], $uploadspath, $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);
|
if($thumbnail['code'] == 4) { $thumbnail['filename'] = "SMALL"; } $db->update_query("attachments", array("thumbnail" => $thumbnail['filename']), "aid='{$attachment['aid']}'");
|
if($thumbnail['code'] == 4) { $thumbnail['filename'] = "SMALL"; } $db->update_query("attachments", array("thumbnail" => $thumbnail['filename']), "aid='{$attachment['aid']}'");
|
} }
| } }
|
check_proceed($num_attachments, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails); }
|
check_proceed($num_attachments, $end, ++$page, $per_page, "attachmentthumbs", "do_rebuildattachmentthumbs", $lang->success_rebuilt_attachment_thumbnails); }
|
| /** * @param int $current * @param int $finish * @param int $next_page * @param int $per_page * @param string $name * @param string $name2 * @param string $message */
|
function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message) {
|
function check_proceed($current, $finish, $next_page, $per_page, $name, $name2, $message) {
|
global $page, $lang, $plugins;
| global $page, $lang;
|
if($finish >= $current) { flash_message($message, 'success'); admin_redirect("index.php?module=tools-recount_rebuild");
|
if($finish >= $current) { flash_message($message, 'success'); admin_redirect("index.php?module=tools-recount_rebuild");
|
}
| }
|
else { $page->output_header();
| else { $page->output_header();
|
Zeile 405 | Zeile 423 |
---|
echo "<div class=\"confirm_action\">\n"; echo "<p>{$lang->confirm_proceed_rebuild}</p>\n"; echo "<br />\n";
|
echo "<div class=\"confirm_action\">\n"; echo "<p>{$lang->confirm_proceed_rebuild}</p>\n"; echo "<br />\n";
|
echo "<script type=\"text/javascript\">$(function() { var button = $(\"#proceed_button\"); if(button.length > 0) { button.val(\"{$lang->automatically_redirecting}\"); button.attr(\"disabled\", true); button.css(\"color\", \"#aaa\"); button.css(\"borderColor\", \"#aaa\"); document.forms[0].submit(); }})</script>";
| echo "<script type=\"text/javascript\"> $(function() { var button = $(\"#proceed_button\"); if(button.length > 0) { button.val(\"{$lang->automatically_redirecting}\"); button.attr(\"disabled\", true); button.css(\"color\", \"#aaa\"); button.css(\"borderColor\", \"#aaa\"); var parent_form = button.closest('form');
if (parent_form.length > 0) { parent_form.submit(); } } }); </script>";
|
echo "<p class=\"buttons\">\n"; echo $form->generate_submit_button($lang->proceed, array('class' => 'button_yes', 'id' => 'proceed_button')); echo "</p>\n";
| echo "<p class=\"buttons\">\n"; echo $form->generate_submit_button($lang->proceed, array('class' => 'button_yes', 'id' => 'proceed_button')); echo "</p>\n";
|
Zeile 427 | Zeile 461 |
---|
require_once MYBB_ROOT."inc/functions_rebuild.php";
if(!isset($mybb->input['page']) || $mybb->get_input('page', MyBB::INPUT_INT) < 1)
|
require_once MYBB_ROOT."inc/functions_rebuild.php";
if(!isset($mybb->input['page']) || $mybb->get_input('page', MyBB::INPUT_INT) < 1)
|
{
| {
|
$mybb->input['page'] = 1; }
|
$mybb->input['page'] = 1; }
|
| $plugins->run_hooks("admin_tools_do_recount_rebuild");
|
if(isset($mybb->input['do_rebuildforumcounters'])) { $plugins->run_hooks("admin_tools_recount_rebuild_forum_counters");
|
if(isset($mybb->input['do_rebuildforumcounters'])) { $plugins->run_hooks("admin_tools_recount_rebuild_forum_counters");
|
|
|
if($mybb->input['page'] == 1)
|
if($mybb->input['page'] == 1)
|
{
| {
|
// Log admin action log_admin_action("forum");
|
// Log admin action log_admin_action("forum");
|
} if(!$mybb->get_input('forumcounters', MyBB::INPUT_INT)) {
| }
$per_page = $mybb->get_input('forumcounters', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0) {
|
$mybb->input['forumcounters'] = 50; }
| $mybb->input['forumcounters'] = 50; }
|
Zeile 456 | Zeile 494 |
---|
// Log admin action log_admin_action("thread"); }
|
// Log admin action log_admin_action("thread"); }
|
if(!$mybb->get_input('threadcounters', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('threadcounters', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['threadcounters'] = 500; }
| { $mybb->input['threadcounters'] = 500; }
|
Zeile 464 | Zeile 504 |
---|
acp_rebuild_thread_counters(); } elseif(isset($mybb->input['do_recountuserposts']))
|
acp_rebuild_thread_counters(); } elseif(isset($mybb->input['do_recountuserposts']))
|
{ $plugins->run_hooks("admin_tools_recount_rebuild_user_posts");
if($mybb->input['page'] == 1)
| { $plugins->run_hooks("admin_tools_recount_rebuild_user_posts");
if($mybb->input['page'] == 1)
|
{ // Log admin action log_admin_action("userposts"); }
|
{ // Log admin action log_admin_action("userposts"); }
|
if(!$mybb->get_input('userposts', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('userposts', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['userposts'] = 500; }
| { $mybb->input['userposts'] = 500; }
|
Zeile 488 | Zeile 530 |
---|
// Log admin action log_admin_action("userthreads"); }
|
// Log admin action log_admin_action("userthreads"); }
|
if(!$mybb->get_input('userthreads', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('userthreads', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['userthreads'] = 500; }
| { $mybb->input['userthreads'] = 500; }
|
Zeile 505 | Zeile 549 |
---|
log_admin_action("attachmentthumbs"); }
|
log_admin_action("attachmentthumbs"); }
|
if(!$mybb->get_input('attachmentthumbs', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('attachmentthumbs', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['attachmentthumbs'] = 500; }
| { $mybb->input['attachmentthumbs'] = 500; }
|
Zeile 522 | Zeile 567 |
---|
log_admin_action("reputation"); }
|
log_admin_action("reputation"); }
|
if(!$mybb->get_input('reputation', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('reputation', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['reputation'] = 500; }
| { $mybb->input['reputation'] = 500; }
|
Zeile 539 | Zeile 585 |
---|
log_admin_action("warning"); }
|
log_admin_action("warning"); }
|
if(!$mybb->get_input('warning', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('warning', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['warning'] = 500; }
| { $mybb->input['warning'] = 500; }
|
Zeile 556 | Zeile 603 |
---|
log_admin_action("privatemessages"); }
|
log_admin_action("privatemessages"); }
|
if(!$mybb->get_input('privatemessages', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('privatemessages', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['privatemessages'] = 500; }
| { $mybb->input['privatemessages'] = 500; }
|
Zeile 573 | Zeile 621 |
---|
log_admin_action("referral"); }
|
log_admin_action("referral"); }
|
if(!$mybb->get_input('referral', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('referral', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['referral'] = 500; }
| { $mybb->input['referral'] = 500; }
|
Zeile 590 | Zeile 639 |
---|
log_admin_action("threadrating"); }
|
log_admin_action("threadrating"); }
|
if(!$mybb->get_input('threadrating', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('threadrating', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['threadrating'] = 500; }
| { $mybb->input['threadrating'] = 500; }
|
Zeile 607 | Zeile 657 |
---|
log_admin_action("poll"); }
|
log_admin_action("poll"); }
|
if(!$mybb->get_input('pollcounters', MyBB::INPUT_INT))
| $per_page = $mybb->get_input('pollcounters', MyBB::INPUT_INT); if(!$per_page || $per_page <= 0)
|
{ $mybb->input['pollcounters'] = 500; }
| { $mybb->input['pollcounters'] = 500; }
|