<?php
/**
*
* @package phpBB Statistics
* @version $Id: stats_addons.php 45 2009-06-12 15:08:48Z marc1706 $
* @copyright (c) 2009 Marc Alexander(marc1706) www.m-a-styles.de, (c) TheUniqueTiger - Nayan Ghosh
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @based on: Forum Statistics by TheUniqueTiger - Nayan Ghosh
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* stats_addons
* Add-on frontend
* Add the MOD stats in this file(see the Add-on's install.xml)
*/
class stats_addons
{
var $u_action;
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $phpbb_root_path, $phpEx, $cache;
$stats_config = obtain_stats_config();
switch ($mode)
{
case 'miscellaneous':
break;
default:
}
$template->assign_vars(array(
'L_TITLE' => $user->lang['STATS_ADDONS_' . strtoupper($mode)],
'S_STATS_ACTION' => $this->u_action,
'AS_ON' => sprintf($user->lang['AS_ON'], $user->format_date(time())),
));
$this->tpl_name = 'stats/addons/addon_' . $mode;
$this->lang_name = 'stats_addons_' . $mode;
$this->page_title = $user->lang['STATISTICS'] . ' • ' . $user->lang[strtoupper($this->lang_name)];
}
}
?>