コード例 #1
0
ファイル: SignupController.php プロジェクト: cloudseo/nginad
 /**
  * Display the signup index page.
  * 
  * @return \Zend\View\Model\ViewModel
  */
 public function indexAction()
 {
     $auth = $this->getServiceLocator()->get('AuthService');
     if ($auth->hasIdentity()) {
         $initialized = $this->initialize();
         if ($initialized === true) {
             return $this->redirect()->toRoute($this->dashboard_home);
         }
     }
     $http_host = @$_SERVER['HTTP_HOST'];
     if ($http_host != null) {
         $PrivateExchangeVanityDomainFactory = \_factory\PrivateExchangeVanityDomain::get_instance();
         $params = array();
         $params["VanityDomain"] = strtolower($http_host);
         $PrivateExchangeVanityDomain = $PrivateExchangeVanityDomainFactory->get_row($params);
         if ($PrivateExchangeVanityDomain != null) {
             return \util\AuthHelper::login($this);
         }
     }
     $view = new ViewModel(array('dashboard_view' => 'signup', 'vertical_map' => \util\DeliveryFilterOptions::$vertical_map));
     return $view;
 }
コード例 #2
0
ファイル: AuthController.php プロジェクト: cloudseo/nginad
 public function loginAction()
 {
     return \util\AuthHelper::login($this);
 }