Vergleich admin/maintenance.php - 1.2.1 - 1.2.3

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: maintenance.php 2278 2006-09-27 10:29:17Z chris $

 * $Id: maintenance.php 2564 2006-12-24 07:12:11Z dennis $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 249Zeile 249
	{
$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 263Zeile 266
	
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 307Zeile 310
	$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))