Exemple #1
0
 function display($msg = null)
 {
     require_once JPATH_COMPONENT . DS . 'views' . DS . 'blog' . DS . 'view.html.php';
     $view = new blogViewBlog();
     $view->display();
     return true;
 }
Exemple #2
0
 function minf($bFulmsg = null)
 {
     $id = trim(JRequest::getVar('di'));
     if (empty($id)) {
         $this->display("Data Not Found.");
         return false;
     }
     $model = $this->getModel('blog');
     $blogFullInfo = $model->loadBlogFullDetail($id);
     $blogComnt = $model->loadBlogComnt($id);
     if (!$blogFullInfo) {
         $this->display("Data Not Found.");
         return false;
     }
     $sess =& JFactory::getSession();
     $sess->set('captcha1', null, 'blog');
     $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('captcha1', $private_key, 'blog');
     $this->make_captcha(true, $private_key, $fpath);
     require_once JPATH_COMPONENT . DS . 'views' . DS . 'blog' . DS . 'view.html.php';
     $view = new blogViewBlog();
     $view->assign('blogFullInfo', $blogFullInfo);
     $view->assign('blogComnt', $blogComnt);
     $view->assign('fileName', $fileName);
     $view->assign('bFulmsg', $bFulmsg);
     $view->display();
     $view->display('blogFullinfo');
     return true;
 }