Exemplo n.º 1
0
 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.');
     }
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct($this->getClass());
     parent::setTitle('XLRstats');
     parent::setVersion(1.0);
 }