- work agains items + some random fixes .. use own item-table

- 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
This commit is contained in:
Sarjuuk
2013-09-08 21:41:49 +02:00
parent f422411cb6
commit 360f2e6878
86 changed files with 5976 additions and 3793 deletions

View File

@@ -104,9 +104,9 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
// Items
$conditions = array(
['allowableClass', 0, '>'],
['allowableClass', $_mask, '&'],
[['allowableClass', CLASS_MASK_ALL, '&'], CLASS_MASK_ALL, '!'],
['requiredClass', 0, '>'],
['requiredClass', $_mask, '&'],
[['requiredClass', CLASS_MASK_ALL, '&'], CLASS_MASK_ALL, '!'],
['itemset', 0], // hmm, do or dont..?
0
);
@@ -114,7 +114,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$items = new ItemList($conditions);
$items->addGlobalsToJscript($smarty);
if (!$items->hasDiffFields(['AllowableRace']))
if (!$items->hasDiffFields(['requiredRace']))
$hidden = "$['side']";
$pageData['relTabs'][] = array(
@@ -334,7 +334,7 @@ $smarty->updatePageVars(array(
)
));
$smarty->assign('community', CommunityContent::getAll(TYPE_CLASS, $_id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$talent));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page