Vergleich stats.php - 1.2.10 - 1.2.14

  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: stats.php 3478 2007-11-15 04:11:36Z Tikitiki $

 * $Id: stats.php 3602 2008-01-21 03:40:39Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 48Zeile 48
$membersperday = my_number_format(round(($stats['numusers'] / $days), 2));

// Get forum permissions

$membersperday = my_number_format(round(($stats['numusers'] / $days), 2));

// Get forum permissions

 
$unviewableforumsarray = array();

$unviewableforums = get_unviewable_forums();
$fidnot = '1=1';
if($unviewableforums)
{
$fidnot = "fid NOT IN ($unviewableforums)";

$unviewableforums = get_unviewable_forums();
$fidnot = '1=1';
if($unviewableforums)
{
$fidnot = "fid NOT IN ($unviewableforums)";

 
}
if($unviewableforums)
{
$fidnot = "fid NOT IN ($unviewableforums)";
$unviewableforumsarray = explode(',', $unviewableforums);

}

// Most replied-to threads

}

// Most replied-to threads

Zeile 61Zeile 67
if(!$mostrepliedthreads || $mostrepliedthreads['lastupdated'] <= time()-60*60*24)
{
$mostrepliedthreads = array();

if(!$mostrepliedthreads || $mostrepliedthreads['lastupdated'] <= time()-60*60*24)
{
$mostrepliedthreads = array();

	$query = $db->simple_select(TABLE_PREFIX."threads", "tid, subject, replies", $fidnot, array('order_by' => 'replies', 'order_dir' => 'DESC', 'limit_start' => 0, 'limit' => $mybb->settings['statslimit']));

	$query = $db->simple_select(TABLE_PREFIX."threads", "tid, subject, replies", "", array('order_by' => 'replies', 'order_dir' => 'DESC', 'limit_start' => 0, 'limit' => $mybb->settings['statslimit']));

	while($thread = $db->fetch_array($query))
{
$mostrepliedthreads['threads'][] = $thread;

	while($thread = $db->fetch_array($query))
{
$mostrepliedthreads['threads'][] = $thread;

Zeile 76Zeile 82
{
foreach($mostrepliedthreads['threads'] as $key => $thread)
{

{
foreach($mostrepliedthreads['threads'] as $key => $thread)
{

		$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['replies']);
$numbertype = $lang->replies;
eval("\$mostreplies .= \"".$templates->get("stats_thread")."\";");




		if(!in_array($thread['fid'], $unviewableforumsarray))
{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['replies']);
$numbertype = $lang->replies;
eval("\$mostreplies .= \"".$templates->get("stats_thread")."\";");
}

	}
}


	}
}


Zeile 89Zeile 98
if(!$mostviewedthreads || $mostviewedthreads['lastupdated'] <= time()-60*60*24)
{
$mostviewedthreads = array();

if(!$mostviewedthreads || $mostviewedthreads['lastupdated'] <= time()-60*60*24)
{
$mostviewedthreads = array();

	$query = $db->simple_select(TABLE_PREFIX."threads", "tid, subject, views", $fidnot, array('order_by' => 'views', 'order_dir' => 'DESC', 'limit_start' => 0, 'limit' => $mybb->settings['statslimit']));

	$query = $db->simple_select(TABLE_PREFIX."threads", "tid, subject, views", "", array('order_by' => 'views', 'order_dir' => 'DESC', 'limit_start' => 0, 'limit' => $mybb->settings['statslimit']));

	while($thread2 = $db->fetch_array($query))
{
$mostviewedthreads['threads'][] = $thread2;

	while($thread2 = $db->fetch_array($query))
{
$mostviewedthreads['threads'][] = $thread2;

Zeile 104Zeile 113
{
foreach($mostviewedthreads['threads'] as $key => $thread)
{

{
foreach($mostviewedthreads['threads'] as $key => $thread)
{

		$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['views']);
$numbertype = $lang->views;
eval("\$mostviews .= \"".$templates->get("stats_thread")."\";");




		if(!in_array($thread['fid'], $unviewableforumsarray))
{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['views']);
$numbertype = $lang->views;
eval("\$mostviews .= \"".$templates->get("stats_thread")."\";");
}

	}
}


	}
}