function registration() { $sess =& JFactory::getSession(); $sess->set('captcha', null, 'blog'); require_once JPATH_COMPONENT . DS . 'views' . DS . 'registration' . DS . 'view.html.php'; $view = new blogViewRegistration(); $fileName = $this->random_text(5) . '.png'; $fpath = JPATH_ROOT . DS . 'components' . DS . 'com_blog' . DS . 'assets' . DS . 'captcha' . DS . $fileName; $private_key = substr(sha1($this->random_text(6)), 0, 6); $sess->set('captcha', $private_key, 'blog'); $this->make_captcha(true, $private_key, $fpath); $view->assign('fileName', $fileName); if ($this->flag) { $view->assign('msg', $this->msg); } $view->display("regfrm"); $this->msg = ''; return true; }
function frgFrm() { require_once JPATH_COMPONENT . DS . 'views' . DS . 'registration' . DS . 'view.html.php'; $view = new blogViewRegistration(); $view->assign('msg', $this->npmsg); $view->display('frgpwdform'); return true; }