Vergleich stats.php - 1.8.10 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 72Zeile 72
}

$unviewableforumsarray = array_merge($unviewablefids, $inactivefids);

}

$unviewableforumsarray = array_merge($unviewablefids, $inactivefids);

 

// Check group permissions if we can't view threads not started by us
$group_permissions = forum_permissions();
$onlyusfids = array();
foreach($group_permissions as $gpfid => $forum_permissions)
{
if(isset($forum_permissions['canonlyviewownthreads']) && $forum_permissions['canonlyviewownthreads'] == 1)
{
$onlyusfids[] = $gpfid;
}
}


// Most replied-to threads
$most_replied = $cache->read("most_replied_threads");


// Most replied-to threads
$most_replied = $cache->read("most_replied_threads");

Zeile 87Zeile 98
{
foreach($most_replied as $key => $thread)
{

{
foreach($most_replied as $key => $thread)
{

		if(!in_array($thread['fid'], $unviewableforumsarray))




		if(
!in_array($thread['fid'], $unviewableforumsarray) &&
(!in_array($thread['fid'], $onlyusfids) || ($mybb->user['uid'] && $thread['uid'] == $mybb->user['uid']))
)

		{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['replies']);

		{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['replies']);

Zeile 112Zeile 126
{
foreach($most_viewed as $key => $thread)
{

{
foreach($most_viewed as $key => $thread)
{

		if(!in_array($thread['fid'], $unviewableforumsarray))




		if(
!in_array($thread['fid'], $unviewableforumsarray) &&
(!in_array($thread['fid'], $onlyusfids) || ($mybb->user['uid'] && $thread['uid'] == $mybb->user['uid']))
)

		{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['views']);

		{
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$numberbit = my_number_format($thread['views']);

Zeile 143Zeile 160
$query = $db->simple_select('forums', 'fid, name, threads, posts', "type='f'$fidnot", array('order_by' => 'posts', 'order_dir' => 'DESC', 'limit' => 1));
$forum = $db->fetch_array($query);


$query = $db->simple_select('forums', 'fid, name, threads, posts', "type='f'$fidnot", array('order_by' => 'posts', 'order_dir' => 'DESC', 'limit' => 1));
$forum = $db->fetch_array($query);


if(empty($forum['fid']))

if(!$forum)

{
$topforum = $lang->none;
$topforumposts = $lang->no;

{
$topforum = $lang->none;
$topforumposts = $lang->no;