Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct(PROTOCOL . HTTP_HOST);
     if (!$this->mode) {
         if (isset($_REQUEST['openid_identifier'])) {
             $this->identity = $_REQUEST['openid_identifier'];
             $this->required = array('contact/email');
             $this->optional = array('namePerson', 'namePerson/friendly');
             header('Location: ' . $this->authUrl());
             exit;
         } else {
             HTTP::redirectTo('index.php?code=4');
         }
     }
 }
Exemplo n.º 2
0
 /**
  * 建構函式,呼叫父類別的建構函式,傳入host參數
  */
 public function __construct()
 {
     parent::__construct(app('request')->getHttpHost());
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
 }