Vergleich stats.php - 1.2.2 - 1.2.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 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: stats.php 2207 2006-09-10 01:46:13Z chris $

 * $Id: stats.php 3478 2007-11-15 04:11:36Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 56Zeile 56
}

// Most replied-to threads

}

// Most replied-to threads

$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']));
while($thread = $db->fetch_array($query))






























$mostrepliedthreads = $cache->read("most_replied_threads");

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']));
while($thread = $db->fetch_array($query))
{
$mostrepliedthreads['threads'][] = $thread;
}
$mostrepliedthreads['lastupdated'] = time();
$cache->update("most_replied_threads", $mostrepliedthreads);

reset($mostrepliedthreads);
}

if(!empty($mostrepliedthreads))
{
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")."\";");
}
}

// Most viewed threads
$mostviewedthreads = $cache->read("most_viewed_threads");

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

{

{

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







	$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']));
while($thread2 = $db->fetch_array($query))
{
$mostviewedthreads['threads'][] = $thread2;
}
$mostviewedthreads['lastupdated'] = time();
$cache->update("most_viewed_threads", $mostviewedthreads);

reset($mostviewedthreads);

}


}


// Most viewed threads
$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']));
while($thread = $db->fetch_array($query))

if(!empty($mostviewedthreads))



{

{

	$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['views']);
$numbertype = $lang->views;
eval("\$mostviews .= \"".$templates->get("stats_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")."\";");
}

}

// Top forum

}

// Top forum