mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- do not display serverside events in calendar - include gems in item comparison .. also parse their stats in setup - filters use conditions and are more restrictive - changed DBSimple version so it uses mysqli (mysql is deprecated as of php 5.5) - moved each filter class to matching type; file for baseType and BaseFilter - baseType querys are somewhat modular, trying to avoid ridiculous joins that WILL occur sometimes (especially with items) as far as possible
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
if (!isset($petCalc))
|
|
$petCalc = false;
|
|
|
|
// tabId 1: Tools g_initHeader()
|
|
$smarty->updatePageVars(array(
|
|
'title' => $petCalc ? Lang::$main['petCalc'] : Lang::$main['talentCalc'],
|
|
'tab' => 1,
|
|
'reqCSS' => array(
|
|
['path' => 'template/css/TalentCalc.css'],
|
|
['path' => 'template/css/talent.css'],
|
|
['path' => 'template/css/TalentCalc_ie6.css', 'ieCond' => 'lte IE 6'],
|
|
['path' => 'template/css/TalentCalc_ie67.css', 'ieCond' => 'lte IE 7'],
|
|
$petCalc ? ['path' => 'template/css/petcalc.css'] : null
|
|
),
|
|
'reqJS' => array(
|
|
'template/js/TalentCalc.js',
|
|
$petCalc ? '?data=pet-talents.pets' : '?data=glyphs',
|
|
$petCalc ? 'template/js/petcalc.js' : 'template/js/talent.js',
|
|
$petCalc ? 'template/js/swfobject.js' : null
|
|
)
|
|
));
|
|
$smarty->assign('tcType', $petCalc ? 'pc' : 'tc');
|
|
$smarty->assign('lang', array_merge(Lang::$main, ['colon' => Lang::$colon]));
|
|
|
|
// load the page
|
|
$smarty->display('talent.tpl');
|
|
|
|
?>
|