Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: maintenance.php 2278 2006-09-27 10:29:17Z chris $
| * $Id: maintenance.php 3030 2007-04-26 00:19:47Z Tikitiki $
|
*/
define("IN_MYBB", 1);
require_once "./global.php";
|
*/
define("IN_MYBB", 1);
require_once "./global.php";
|
| require_once MYBB_ROOT."/inc/functions_rebuild.php";
|
// Load language packs for this section global $lang;
| // Load language packs for this section global $lang;
|
Zeile 157 | Zeile 158 |
---|
{ $update['parentlist'] = makeparentlist($forum['fid']); $db->update_query(TABLE_PREFIX."forums", $update, "fid='{$forum['fid']}'");
|
{ $update['parentlist'] = makeparentlist($forum['fid']); $db->update_query(TABLE_PREFIX."forums", $update, "fid='{$forum['fid']}'");
|
update_forum_count($forum['fid']);
| rebuild_forum_counters($forum['fid']);
|
}
if($end >= $num_forums)
| }
if($end >= $num_forums)
|
Zeile 202 | Zeile 203 |
---|
$query = $db->simple_select(TABLE_PREFIX."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(TABLE_PREFIX."threads", "tid", '', array('order_by' => 'tid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($thread = $db->fetch_array($query)) {
|
update_thread_count($thread['tid']);
| rebuild_thread_counters($thread['tid']);
|
}
if($end >= $num_threads)
| }
if($end >= $num_threads)
|
Zeile 249 | Zeile 250 |
---|
{ $fids[] = $forum['fid']; }
|
{ $fids[] = $forum['fid']; }
|
$fids = implode(',', $fids);
| if(is_array($fids)) { $fids = implode(',', $fids); }
|
if($fids) { $fids = " AND FID NOT IN($fids)";
| if($fids) { $fids = " AND FID NOT IN($fids)";
|
Zeile 263 | Zeile 267 |
---|
while($user = $db->fetch_array($query)) {
|
while($user = $db->fetch_array($query)) {
|
$query2 = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS post_count", "uid='{$user['uid']}' AND visible>0");
| $query2 = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS post_count", "uid='{$user['uid']}' AND visible>0{$fids}");
|
$num_posts = $db->fetch_field($query2, "post_count"); $db->update_query(TABLE_PREFIX."users", array("postnum" => intval($num_posts)), "uid='{$user['uid']}'"); }
| $num_posts = $db->fetch_field($query2, "post_count"); $db->update_query(TABLE_PREFIX."users", array("postnum" => intval($num_posts)), "uid='{$user['uid']}'"); }
|
Zeile 307 | Zeile 311 |
---|
$start = ($page-1) * $per_page; $end = $start + $per_page;
|
$start = ($page-1) * $per_page; $end = $start + $per_page;
|
require_once MYBB_ROOT."/inc/functions_image.php";
| require_once MYBB_ROOT."inc/functions_image.php";
|
$query = $db->simple_select(TABLE_PREFIX."attachments", "*", '', array('order_by' => 'aid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($attachment = $db->fetch_array($query))
| $query = $db->simple_select(TABLE_PREFIX."attachments", "*", '', array('order_by' => 'aid', 'order_dir' => 'asc', 'limit_start' => $start, 'limit' => $per_page)); while($attachment = $db->fetch_array($query))
|