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 2449 2006-11-27 22:57:17Z CraKteR $
| * $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 266 | 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']}'"); }
|