mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
- implemented Memcached (untested though (tough luck trying to get it to run using win)) - added config value to select caching method (default: filecache; setting debug to 1 will still disable caching) - implemented url-param 'refresh' to clear cache for this page
45 lines
996 B
PHP
45 lines
996 B
PHP
<?php
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
|
|
// tabId 1: Tools g_initHeader()
|
|
class MapsPage extends GenericPage
|
|
{
|
|
protected $tpl = 'maps';
|
|
protected $tabId = 1;
|
|
protected $path = [1, 1];
|
|
protected $mode = CACHE_TYPE_NONE;
|
|
protected $js = array(
|
|
'maps.js',
|
|
'Mapper.js'
|
|
);
|
|
protected $css = array(
|
|
['string' => 'zone-picker { margin-left: 4px }'],
|
|
['path' => 'Mapper.css']
|
|
);
|
|
|
|
public function __construct($pageCall, $__)
|
|
{
|
|
parent::__construct($pageCall, $__);
|
|
|
|
$this->name = Lang::$maps['maps'];
|
|
}
|
|
|
|
protected function generateContent()
|
|
{
|
|
// add conditional js
|
|
$this->addJS('?data=zones&locale=' . User::$localeId . '&t=' . $_SESSION['dataKey']);
|
|
}
|
|
|
|
protected function generateTitle()
|
|
{
|
|
array_unshift($this->title, $this->name);
|
|
}
|
|
|
|
protected function generatePath() {}
|
|
}
|
|
|
|
?>
|