コード例 #1
0
 function display()
 {
     $model = $this->getModel('socialNetorking');
     require_once JPATH_COMPONENT . DS . 'views' . DS . 'socialNetworking' . DS . 'view.html.php';
     $view = new socialNetworkingViewSocialNetworking();
     $view->display();
     return true;
 }
コード例 #2
0
 function display()
 {
     $sess =& JFactory::getSession();
     $clientIP = sha1($_SERVER['REMOTE_ADDR']);
     if ($sess->get('access', '', 'sn') && $sess->get('userid', '', 'sn') && $sess->get('clientip', '', 'sn') == $clientIP) {
         $this->login();
         return false;
     }
     $model = $this->getModel('socialNetorking');
     require_once JPATH_COMPONENT . DS . 'views' . DS . 'socialNetworking' . DS . 'view.html.php';
     $view = new socialNetworkingViewSocialNetworking();
     $view->display();
     return true;
 }