コード例 #1
0
ファイル: request.php プロジェクト: just-paja/fudjan
 /** Get current active user
  * @return System\User
  */
 public function relogin()
 {
     $cookie = \System\User::COOKIE_USER;
     if ($this->user) {
         return $this->user;
     }
     if ($this->sess($cookie)) {
         $this->user = \System\User::find($this->sess($cookie));
     }
     if (!$this->user) {
         $this->user = \System\User::guest();
     }
     $this->user->get_rights();
 }