function get() { global $config; $this->cache304('stats', 120); $this->setData('view', 'views/stats.tpl'); $_hostDb = new \Un1c0rn\ElasticDb('pwn', 'hosts', $config['elasticsearch']['ip']); $this->setData('page_title', 'Global leak statistics'); $this->setData('statsByTags', $_hostDb->getFacets('tags')); $this->setData('statsByPorts', $_hostDb->getFacets('ports')); $this->render(); }