function __construct() { parent::__construct(); $this->registry = registry::getInstance(); $this->addAction('index_init', 'init'); $this->addAction('index_load', 'addToolbar'); }
public function __construct() { parent::__construct(); define('VALID_URL', '/^(http|https):\\/\\/[a-z0-9]+([\\-\\.]{1}[a-z0-9]+)*\\.[a-z]{2,5}((:[0-9]{1,5})?\\/.*)?$/i'); $this->addAction('index_includes', 'replaceFeed'); $this->addAction('feed_header', 'feedRedirect'); $this->addAction('admin_init_config', 'addControlPanelOption'); $this->addAction('admin_init', 'checkConfig'); }
function __construct() { parent::__construct(); $this->registry = registry::getInstance(); if (!defined('GESHI_VERSION')) { require_once Absolute_Path . "app/plugins/geshi/GeSHi.php"; } $this->addAction('index_post_content', 'source_code_beautifier'); $this->addAction('admin_comments_content', 'comment_source_code_beautifier'); $this->addAction('index_comment_content', 'comment_source_code_beautifier'); }
public function __construct() { parent::__construct(); $this->cookie = cookie::getInstance(); if (!defined('GESHI_VERSION') and file_exists(Absolute_Path . "app/plugins/geshi/GeSHi.php")) { require_once Absolute_Path . "app/plugins/geshi/GeSHi.php"; } $this->addAction('index_comment_added', 'usersNotify'); $this->addAction('index_comment_added', 'adminNotify'); $this->addAction('comment_approbed', 'notify'); }
public function __construct() { parent::__construct($this->getClass()); // call the parent constructor (var: name) global $config; // get the site config global $game; // current game id $this->tables = explode(',', $config['cosmos']['chats_table_' . $game]); $this->tables_names = explode(',', $config['cosmos']['chats_names_' . $game]); parent::setTitle('Chatlogger'); parent::setVersion(1.0); if (count($this->tables) != count($this->tables_names)) { parent::error('In your settings, there are not the same number of tables and table names listed.'); } }
public function __construct() { parent::__construct(); $this->addAction('index_post_content', 'findPHPcode'); }
public function __construct() { parent::__construct($this->getClass()); parent::setTitle('XLRstats'); parent::setVersion(1.0); }