Files
aowow/pages/classes.php
2013-05-21 23:01:38 +02:00

36 lines
814 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
$cacheKey = implode('_', [CACHETYPE_PAGE, TYPE_CLASS, -1, -1, User::$localeId]);
if (!$smarty->loadCache($cacheKey, $pageData))
{
$classes = new CharClassList();
$pageData = array(
'file' => 'class',
'data' => $classes->getListviewData(),
'params' => []
);
$smarty->saveCache($cacheKey, $pageData);
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
'title' => Util::ucFirst(Lang::$game['classes']),
'path' => "[0, 12]",
);
$smarty->updatePageVars($page);
$smarty->assign('lang', Lang::$main);
$smarty->assign('mysql', DB::Aowow()->getStatistics());
$smarty->assign('lvData', $pageData);
$smarty->display('generic-no-filter.tpl');
?>