Vergleich stats.php - 1.8.4 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'stats.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'stats.php');


$templatelist = "stats,stats_thread";


$templatelist = "stats,stats_thread,stats_topforum";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/class_parser.php";

require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/class_parser.php";

Zeile 68Zeile 69
{
$fidnot .= "AND fid NOT IN ($inactiveforums)";
$inactivefids = explode(',', $inactiveforums);

{
$fidnot .= "AND fid NOT IN ($inactiveforums)";
$inactivefids = explode(',', $inactiveforums);

}


}


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

// Most replied-to threads

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

// Most replied-to threads

Zeile 98Zeile 99
}

// Most viewed threads

}

// Most viewed threads

$most_viewed = $cache->read("most_viewed_threads");

$most_viewed = $cache->read("most_viewed_threads");


if(!$most_viewed)
{


if(!$most_viewed)
{

Zeile 124Zeile 125

$statistics = $cache->read('statistics');
$mybb->settings['statscachetime'] = (int)$mybb->settings['statscachetime'];


$statistics = $cache->read('statistics');
$mybb->settings['statscachetime'] = (int)$mybb->settings['statscachetime'];

 


if($mybb->settings['statscachetime'] < 1)
{
$mybb->settings['statscachetime'] = 0;
}

if($mybb->settings['statscachetime'] < 1)
{
$mybb->settings['statscachetime'] = 0;
}

$interval = (int)$mybb->settings['statscachetime']*60860;

 




if(!$statistics || TIME_NOW-$interval > $statistics['time'] || $mybb->settings['statscachetime'] == 0)



$interval = $mybb->settings['statscachetime']*3600;

if(!$statistics || $interval == 0 || TIME_NOW - $interval > $statistics['time'])

{
$cache->update_statistics();
$statistics = $cache->read('statistics');

{
$cache->update_statistics();
$statistics = $cache->read('statistics');

Zeile 149Zeile 152
else
{
$forum['name'] = htmlspecialchars_uni(strip_tags($forum['name']));

else
{
$forum['name'] = htmlspecialchars_uni(strip_tags($forum['name']));

	$topforum = '<a href="'.get_forum_link($forum['fid'])."\">{$forum['name']}</a>";


	$forum['link'] = get_forum_link($forum['fid']);
eval("\$topforum = \"".$templates->get("stats_topforum")."\";");

	$topforumposts = $forum['posts'];
$topforumthreads = $forum['threads'];
}

	$topforumposts = $forum['posts'];
$topforumthreads = $forum['threads'];
}

Zeile 161Zeile 165
	// Only show this if we have anything more the 0 referrals
if($statistics['top_referrer']['referrals'] > 0)
{

	// Only show this if we have anything more the 0 referrals
if($statistics['top_referrer']['referrals'] > 0)
{

		$toprefuser = build_profile_link($statistics['top_referrer']['username'], $statistics['top_referrer']['uid']);

		$toprefuser = build_profile_link(htmlspecialchars_uni($statistics['top_referrer']['username']), $statistics['top_referrer']['uid']);

		$top_referrer = $lang->sprintf($lang->top_referrer, $toprefuser, my_number_format($statistics['top_referrer']['referrals']));
}
}

		$top_referrer = $lang->sprintf($lang->top_referrer, $toprefuser, my_number_format($statistics['top_referrer']['referrals']));
}
}

Zeile 180Zeile 184
	}
else
{

	}
else
{

		$topposter = build_profile_link($statistics['top_poster']['username'], $statistics['top_poster']['uid']);

		$topposter = build_profile_link(htmlspecialchars_uni($statistics['top_poster']['username']), $statistics['top_poster']['uid']);

	}

$topposterposts = $statistics['top_poster']['poststoday'];

	}

$topposterposts = $statistics['top_poster']['poststoday'];