/** * [display description] * * @param [type] $tpl [description] * * @return [type] [description] */ function display($tpl = null) { // Check if we get a vaild id $id = JRequest::getVar('id', 0); $result = BabioonAdHelper::checkIdSimple($id, 0); $hash = JRequest::getVar('h', 0); $result2 = BabioonAdHelper::checkHash($hash); if ($result === false || $result2 === false) { $this->displayError(); return; } $this->id = $id; if (BabioonAdHelper::setEmailCheckOk($id) === false) { $this->displayError(); return; } $this->setLayout('ok'); parent::display($tpl); return; }