Exemplo n.º 1
0
 private function onAjaxUpdate()
 {
     GWF_ChatOnline::onRequest($this->module);
     $times = $this->getAjaxTimes();
     $back = $this->module->getAjaxUpdates($times);
     self::saveAjaxTimes($times);
     return $back;
 }
Exemplo n.º 2
0
 public function execute()
 {
     GWF_ChatOnline::onRequest($this->module);
     GWF_Website::setPageTitle($this->module->lang('pt_chat'));
     GWF_Website::setMetaTags($this->module->lang('mt_chat'));
     GWF_Website::addJavascript(GWF_WEB_ROOT . 'js/module/Chat/gwf_chat.js?v=4');
     if (false !== Common::getPost('post')) {
         return $this->onPost() . $this->templatePage();
     }
     return $this->templatePage();
 }