Files
aowow/pages/profiler.php
Sarjuuk 14658a5016 Pages/Scripts
* do not skip generic page constructor ... ever
2023-04-15 11:46:21 +02:00

41 lines
882 B
PHP

<?php
if (!defined('AOWOW_REVISION'))
die('illegal access');
class ProfilerPage extends GenericPage
{
protected $path = [1, 5];
protected $tabId = 1;
protected $tpl = 'profiler';
protected $gDataKey = true;
protected $scripts = array(
[SC_JS_FILE, 'js/profile_all.js'],
[SC_JS_FILE, 'js/profile.js'],
[SC_CSS_FILE, 'css/Profiler.css']
);
public function __construct($pageCall, $pageParam)
{
parent::__construct($pageCall, $pageParam);
if (!CFG_PROFILER_ENABLE)
$this->error();
}
protected function generateContent()
{
$this->addScript([SC_JS_FILE, '?data=realms']);
}
protected function generatePath() { }
protected function generateTitle()
{
array_unshift($this->title, Util::ucFirst(Lang::profiler('profiler')));
}
}
?>