* moved duplicate utility/dom-functions from global.js to basic.js

- consequentially prepended $WH to those functions (since i do have issues with regEx, some errors may occur)
* simplified including required JS and CSS files per page
* replaced old Menu-class with (almost) current version. Since it relies heavily on jQuery it is also loaded.
This commit is contained in:
Sarjuuk
2013-08-02 15:57:27 +02:00
parent b47be3c14a
commit e834f1aee3
70 changed files with 6122 additions and 5917 deletions

View File

@@ -39,27 +39,27 @@ function signin()
$remember = $_POST['remember_me'] == 'yes';
// handle login try limitation
$ipBan = DB::Auth()->selectRow('SELECT ip, count, UNIX_TIMESTAMP(unbanDate) as unbanDate FROM ?_account_bannedIPs WHERE type = 0 AND ip = ?s',
$ipBan = DB::Aowow()->selectRow('SELECT ip, count, UNIX_TIMESTAMP(unbanDate) as unbanDate FROM ?_account_bannedIPs WHERE type = 0 AND ip = ?s',
$_SERVER['REMOTE_ADDR']
);
if (!$ipBan) // no entry exists; set count to 1
DB::Auth()->query('INSERT INTO ?_account_bannedIPs VALUES (?s, 0, 1, FROM_UNIXTIME(?))',
DB::Aowow()->query('INSERT INTO ?_account_bannedIPs VALUES (?s, 0, 1, FROM_UNIXTIME(?))',
$_SERVER['REMOTE_ADDR'],
time() + $GLOBALS['AoWoWconf']['loginFailTime']
);
else if ($ipBan['unbanDate'] < time()) // ip has accumulated counts but time expired; reset count to 1
DB::Auth()->query('INSERT IGNORE INTO ?_account_bannedIPs VALUES (?s, 0, 1, ?)',
DB::Aowow()->query('INSERT IGNORE INTO ?_account_bannedIPs VALUES (?s, 0, 1, ?)',
$_SERVER['REMOTE_ADDR'],
time() + $GLOBALS['AoWoWconf']['loginFailTime']
);
else // entry already exists; increment count
DB::Auth()->query('UPDATE ?_account_bannedIPs SET count = count + 1, unbanDate = FROM_UNIXTIME(?) WHERE ip = ?s',
DB::Aowow()->query('UPDATE ?_account_bannedIPs SET count = count + 1, unbanDate = FROM_UNIXTIME(?) WHERE ip = ?s',
time() + $GLOBALS['AoWoWconf']['loginFailTime'],
$_SERVER['REMOTE_ADDR']
);
$id = DB::Auth()->SelectCell('SELECT id FROM ?_account WHERE user = ?',
$id = DB::Aowow()->SelectCell('SELECT id FROM ?_account WHERE user = ?',
Util::sqlEscape($username)
);
@@ -71,10 +71,10 @@ function signin()
switch (User::Auth($password))
{
case AUTH_OK:
DB::Auth()->query('DELETE FROM ?_account_bannedIPs WHERE type = 0 AND ip = ?s',
DB::Aowow()->query('DELETE FROM ?_account_bannedIPs WHERE type = 0 AND ip = ?s',
$_SERVER['REMOTE_ADDR']
);
DB::Auth()->query('UPDATE ?_account SET lastLogin = FROM_UNIXTIME(?), timeout = FROM_UNIXTIME(?) WHERE id = ?',
DB::Aowow()->query('UPDATE ?_account SET lastLogin = FROM_UNIXTIME(?), timeout = FROM_UNIXTIME(?) WHERE id = ?',
time(),
$remember ? 0 : time() + $GLOBALS['AoWoWconf']['sessionTimeout'],
$id
@@ -247,16 +247,15 @@ function recoverUser()
{
}
$page = array(
$smarty->updatePageVars(array(
'reqCSS' => array(
array('path' => 'template/css/Profiler.css', 'condition' => false),
['path' => 'template/css/Profiler.css'],
),
'reqJS' => array(
array('path' => 'template/js/user.js'),
array('path' => 'template/js/profile.js'),
'reqJS' => array(
'template/js/user.js',
'template/js/profile.js',
),
);
$smarty->updatePageVars($page);
));
$smarty->assign('lang', array_merge(Lang::$main, Lang::$account));

View File

@@ -387,6 +387,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 9: Achievement g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
@@ -396,7 +397,6 @@ $smarty->updatePageVars(array(
'type' => TYPE_ACHIEVEMENT,
'typeId' => $id
));
$smarty->assign('community', CommunityContent::getAll(TYPE_ACHIEVEMENT, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$achievement));
$smarty->assign('lvData', $pageData);

View File

@@ -101,23 +101,26 @@ if (!$smarty->loadCache($cacheKey, $pageData, $filter))
$smarty->saveCache($cacheKey, $pageData, $filter);
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
'subCat' => $pageParam ? '='.$pageParam : '',
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]",
'reqJS' => array(
array('path' => 'template/js/filters.js', 'conditional' => false),
),
);
// sort for dropdown-menus
asort(Lang::$game['si']);
$smarty->updatePageVars($page);
// menuId 9: Achievement g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]",
'tab' => 0,
'subCat' => $pageParam ? '='.$pageParam : '',
'reqJS' => array(
'template/js/filters.js'
)
));
$smarty->assign('filter', $filter);
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$achievement));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('achievements.tpl');
?>

View File

@@ -20,15 +20,17 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 12: Class g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => Util::ucFirst(Lang::$game['classes']),
'path' => "[0, 12]",
);
$smarty->updatePageVars($page);
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -53,23 +53,26 @@ if ($compareString)
}
// tabId 1: Tools g_initHeader()
$smarty->updatePageVars(array(
'title' => Lang::$compare['compare'],
'tab' => 1,
'reqCSS' => array(
array('path' => 'template/css/Summary.css', 'condition' => false),
array('path' => 'template/css/Summary_ie6.css', 'condition' => 'lte IE 6'),
['path' => 'template/css/Summary.css'],
['path' => 'template/css/Summary_ie6.css', 'ieCond' => 'lte IE 6'],
),
'reqJS' => array(
array('path' => 'template/js/Draggable.js'),
array('path' => 'template/js/filters.js'),
array('path' => 'template/js/Summary.js'),
array('path' => 'template/js/swfobject.js'),
array('path' => '?data=weight-presets.gems.enchants.itemsets'),
'template/js/Draggable.js',
'template/js/filters.js',
'template/js/Summary.js',
'template/js/swfobject.js',
'?data=weight-presets.gems.enchants.itemsets'
),
));
$smarty->assign('lvData', $pageData);
$smarty->assign('lang', array_merge(Lang::$main, Lang::$compare));
// load the page
$smarty->display('compare.tpl');
?>

View File

@@ -35,15 +35,17 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 15: Currency g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'tab' => 0,
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]"
);
$smarty->updatePageVars($page);
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -78,15 +78,17 @@ foreach ($pageData['data'] as &$data)
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 11: Event g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]"
);
$smarty->updatePageVars($page);
'path' => "[".implode(", ", $path)."]",
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -809,6 +809,7 @@ if (!$smarty->loadCache($cacheKeyPage, $item))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 0: Item g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
@@ -819,7 +820,6 @@ $smarty->updatePageVars(array(
'type' => TYPE_ITEM,
'typeid' => $id
));
$smarty->assign('community', CommunityContent::getAll(TYPE_ITEM, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$item, ['colon' => Lang::$colon]));
$smarty->assign('lvData', $pageData);

View File

@@ -237,22 +237,25 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 2: Itemset g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => $pageData['title']." - ".Util::ucfirst(Lang::$game['itemset']),
'path' => json_encode($pageData['path'], JSON_NUMERIC_CHECK),
'tab' => 0, // for g_initHeader($tab)
'type' => TYPE_ITEMSET, // 4:Itemset
'tab' => 0,
'type' => TYPE_ITEMSET,
'typeId' => $id,
'reqJS' => array(
array('path' => 'template/js/Summary.js', 'conditional' => false),
array('path' => 'template/js/swfobject.js', 'conditional' => false)
'template/js/Summary.js',
'template/js/swfobject.js'
)
));
$smarty->assign('community', CommunityContent::getAll(TYPE_ITEMSET, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$itemset));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('itemset.tpl');
?>

View File

@@ -44,25 +44,27 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
'subCat' => $pageParam ? '='.$pageParam : '',
'title' => Util::ucFirst(Lang::$game['itemsets']),
'path' => json_encode($path, JSON_NUMERIC_CHECK),
'reqJS' => array(
array('path' => 'template/js/filters.js', 'conditional' => false),
array('path' => '?data=weight-presets', 'conditional' => false),
)
);
// sort for dropdown-menus
asort(Lang::$itemset['notes'], SORT_NATURAL);
asort(Lang::$game['cl']);
$smarty->updatePageVars($page);
// menuId 2: Itemset g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => Util::ucFirst(Lang::$game['itemsets']),
'path' => json_encode($path, JSON_NUMERIC_CHECK),
'tab' => 0,
'subCat' => $pageParam ? '='.$pageParam : '',
'reqJS' => array(
'template/js/filters.js',
'?data=weight-presets'
)
));
$smarty->assign('filter', $filter);
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$itemset, Lang::$item));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('itemsets.tpl');
?>

View File

@@ -19,6 +19,8 @@ foreach ($rows as $i => $row)
$smarty->assign('news', isset($rows) ? $rows : NULL);
$smarty->assign('lang', Lang::$main);
// load the page
$smarty->display('main.tpl');
?>

View File

@@ -4,24 +4,24 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
$page = array(
// tabId 1: Tools g_initHeader()
$smarty->updatePageVars(array(
'title' => Lang::$maps['maps'],
'tab' => 1,
'reqCSS' => array(
array('string' => 'zone-picker { margin-left: 4px }'),
array('path' => 'template/css/Mapper.css', 'condition' => false),
array('path' => 'template/css/Mapper_ie6.css', 'condition' => 'lte IE 6'),
['string' => 'zone-picker { margin-left: 4px }'],
['path' => 'template/css/Mapper.css'],
['path' => 'template/css/Mapper_ie6.css', 'ieCond' => 'lte IE 6']
),
'reqJS' => array(
array('path' => 'template/js/maps.js'),
array('path' => 'template/js/Mapper.js'),
array('path' => '?data=zones'),
),
'title' => Lang::$maps['maps'],
'tab' => 1
);
$smarty->updatePageVars($page);
'template/js/maps.js',
'template/js/Mapper.js',
'?data=zones'
)
));
$smarty->assign('lang', array_merge(Lang::$main, Lang::$maps));
// load the page
$smarty->display('maps.tpl');
?>

View File

@@ -467,7 +467,8 @@ $rows_qe = $DB->select('
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 4: Npc g_initPath()
// menuId 4: NPC g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'mapper' => true,
@@ -477,7 +478,6 @@ $smarty->updatePageVars(array(
'type' => TYPE_NPC,
'typeId' => $id
));
$smarty->assign('community', CommunityContent::getAll(TYPE_NPC, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$npc, ['colon' => Lang::$colon]));
$smarty->assign('lvData', $pageData);

View File

@@ -6,9 +6,7 @@ if (!defined('AOWOW_REVISION'))
require 'includes/class.community.php';
$id = intVal($pageParam);
$petCalc = '0zMcmVokRsaqbdrfwihuGINALpTjnyxtgevElBCDFHJKOPQSUWXYZ123456789';
$id = intVal($pageParam);
$cacheKeyPage = implode('_', [CACHETYPE_PAGE, TYPE_PET, $id, -1, User::$localeId]);
@@ -34,7 +32,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
'title' => $pet->getField('name', true),
'path' => '[0, 8, '.$pet->getField('type').']',
'page' => array(
'petCalc' => $petCalc[(int)($id / 10)] . $petCalc[(2 * ($id % 10) + ($pet->getField('exotic') ? 1 : 0))],
'petCalc' => Util::$tcEncoding[(int)($id / 10)] . Util::$tcEncoding[(2 * ($id % 10) + ($pet->getField('exotic') ? 1 : 0))],
'name' => $pet->getField('name', true),
'id' => $id,
'icon' => $pet->getField('iconString'),
@@ -165,21 +163,24 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 8: Pets g_initPath()
// tabid 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => $pageData['title']." - ".Util::ucfirst(Lang::$game['pet']),
'path' => $pageData['path'],
'tab' => 0, // for g_initHeader($tab)
'type' => TYPE_PET, // 9:Pets
'tab' => 0,
'type' => TYPE_PET,
'typeId' => $id,
'reqJS' => array(
array('path' => 'template/js/swfobject.js')
'template/js/swfobject.js'
)
));
$smarty->assign('community', CommunityContent::getAll(TYPE_PET, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('pet.tpl');
?>

View File

@@ -40,15 +40,17 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 8: Pets g_initPath()
// tabid 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]"
);
$smarty->updatePageVars($page);
'path' => "[".implode(", ", $path)."]",
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -599,6 +599,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 3: Quest g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(

View File

@@ -20,15 +20,17 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 13: Race g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => Util::ucFirst(Lang::$game['races']),
'path' => "[0, 13]",
);
$smarty->updatePageVars($page);
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -921,6 +921,7 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 1: Spell g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
@@ -929,11 +930,10 @@ $smarty->updatePageVars(array(
'tab' => 0,
'type' => TYPE_SPELL,
'typeId' => $id,
'reqJS' => array (
array('path' => 'template/js/swfobject.js')
'reqJS' => array(
'template/js/swfobject.js'
)
));
$smarty->assign('community', CommunityContent::getAll(TYPE_SPELL, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$spell, ['colon' => Lang::$colon]));
$smarty->assign('lvData', $pageData);

View File

@@ -424,15 +424,6 @@ if (isset($filter['gl']) && !is_array($filter['gl']))
$path[] = $filter['gl'];
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
'subCat' => $pageParam !== null ? '='.$pageParam : '',
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]",
'reqJS' => array(
array('path' => 'template/js/filters.js', 'conditional' => false),
),
);
// sort for dropdown-menus
asort(Lang::$game['ra']);
@@ -441,10 +432,22 @@ asort(Lang::$game['sc']);
asort(Lang::$game['me']);
Lang::$game['race'] = Util::ucFirst(Lang::$game['race']);
$smarty->updatePageVars($page);
// menuId 1: Spell g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]",
'tab' => 0,
'subCat' => $pageParam !== null ? '='.$pageParam : '',
'reqJS' => array(
'template/js/filters.js'
)
));
$smarty->assign('filter', $filter);
$smarty->assign('lang', array_merge(Lang::$main, Lang::$game, Lang::$achievement));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('spells.tpl');
?>

View File

@@ -4,37 +4,31 @@ if (!defined('AOWOW_REVISION'))
die('illegal access');
$petCalc = $pageCall == 'petcalc';
if (!isset($petCalc))
$petCalc = false;
$page = array(
// tabId 1: Tools g_initHeader()
$smarty->updatePageVars(array(
'title' => $petCalc ? Lang::$talent['petCalc'] : Lang::$talent['talentCalc'],
'tab' => 1,
'reqCSS' => array(
array('path' => 'template/css/TalentCalc.css', 'condition' => false),
array('path' => 'template/css/talent.css', 'condition' => false),
array('path' => 'template/css/TalentCalc_ie6.css', 'condition' => 'lte IE 6'),
array('path' => 'template/css/TalentCalc_ie67.css', 'condition' => 'lte IE 7')
['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(
array('path' => '?data=glyphs'),
array('path' => 'template/js/talent.js'),
array('path' => 'template/js/TalentCalc.js')
),
'title' => Lang::$talent['talentCalc'],
'tab' => 1,
);
if ($petCalc)
{
$page['reqCSS'][] = array('path' => 'template/css/petcalc.css', 'condition' => false);
$page['reqJS'][0] = array('path' => '?data=pet-talents.pets');
$page['reqJS'][1] = array('path' => 'template/js/petcalc.js');
$page['reqJS'][] = array('path' => 'template/js/swfobject.js');
$page['title'] = Lang::$talent['petCalc'];
}
$smarty->updatePageVars($page);
'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, Lang::$talent));
// load the page
$smarty->display('talent.tpl');
?>

View File

@@ -83,18 +83,21 @@ if (!$smarty->loadCache($cacheKeyPage, $pageData))
$smarty->saveCache($cacheKeyPage, $pageData);
}
// menuId 10: Title g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => $pageData['title']." - ".Util::ucfirst(Lang::$game['title']),
'path' => $pageData['path'],
'tab' => 0, // for g_initHeader($tab)
'type' => TYPE_TITLE, // 11:Titles
'tab' => 0,
'type' => TYPE_TITLE,
'typeId' => $id
));
$smarty->assign('community', CommunityContent::getAll(TYPE_TITLE, $id)); // comments, screenshots, videos
$smarty->assign('lang', array_merge(Lang::$main));
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('title.tpl');
?>

View File

@@ -38,15 +38,17 @@ if (!$smarty->loadCache($cacheKey, $pageData))
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 10: Title g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(" - ", $title),
'path' => "[".implode(", ", $path)."]"
);
$smarty->updatePageVars($page);
'path' => "[".implode(", ", $path)."]",
'tab' => 0
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>

View File

@@ -122,23 +122,26 @@ if (!$smarty->loadCache($cacheKey, $pageData))
$smarty->saveCache($cacheKey, $pageData);
}
$page = array(
'tab' => 0, // for g_initHeader($tab)
// menuId 6: Zone g_initPath()
// tabId 0: Database g_initHeader()
$smarty->updatePageVars(array(
'title' => implode(' - ', $title),
'path' => json_encode($path, JSON_NUMERIC_CHECK),
'reqJS' => array(
array('path' => 'template/js/Mapper.js', 'conditional' => false),
array('path' => 'template/js/ShowOnMap.js', 'conditional' => false),
),
'tab' => 0,
'reqCSS' => array(
array('path' => 'template/css/Mapper.css', 'condition' => false),
array('path' => 'template/css/Mapper_ie6.css', 'condition' => 'lte IE 6'),
['path' => 'template/css/Mapper.css'],
['path' => 'template/css/Mapper_ie6.css', 'ieCond' => 'lte IE 6']
),
);
$smarty->updatePageVars($page);
'reqJS' => array(
'template/js/Mapper.js',
'template/js/ShowOnMap.js'
)
));
$smarty->assign('lang', Lang::$main);
$smarty->assign('lvData', $pageData);
// load the page
$smarty->display('generic-no-filter.tpl');
?>