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; }
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; }