Vergleich inc/functions_rebuild.php - 1.2.9 - 1.2.12

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

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

 * $Id$

 * $Id: functions_rebuild.php 3514 2007-11-24 09:02:58Z Tikitiki $

 */

/**

 */

/**

Zeile 16Zeile 16
{
global $db;


{
global $db;


	$query = $db->simple_select(TABLE_PREFIX."threads", "COUNT(tid) AS threads", "visible='1' AND closed NOT LIKE 'moved|%'");
$stats['numthreads'] = $db->fetch_field($query, 'threads');














	$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(threads) AS numthreads");
$stats['numthreads'] = $db->fetch_field($query, 'numthreads');

if(!$stats['numthreads'])
{
$stats['numthreads'] = 0;
}

$query = $db->simple_select(TABLE_PREFIX."forums", "SUM(posts) AS numposts");
$stats['numposts'] = $db->fetch_field($query, 'numposts');

if(!$stats['numposts'])
{
$stats['numposts'] = 0;
}

	

	

	$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS posts", "visible='1'");
$stats['numposts'] = $db->fetch_field($query, 'posts');


 
	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS users");
$stats['numusers'] = $db->fetch_field($query, 'users');

	$query = $db->simple_select(TABLE_PREFIX."users", "COUNT(uid) AS users");
$stats['numusers'] = $db->fetch_field($query, 'users');

 
	
if(!$stats['numusers'])
{
$stats['numusers'] = 0;
}


update_stats($stats);
}


update_stats($stats);
}