コード例 #1
0
ファイル: page.php プロジェクト: 4otaku/mburb
 public function __construct($url)
 {
     parent::__construct($url);
     if (empty($url[2]) || !is_numeric($url[2])) {
         $this->id = false;
     } else {
         $this->id = $url[2];
     }
 }
コード例 #2
0
ファイル: abstract_authorized.php プロジェクト: 4otaku/mburb
 public function __construct($url)
 {
     parent::__construct($url);
     $user = $this->get_user();
     if (empty($user)) {
         $this->create_redirect();
     } else {
         $this->user = $user;
     }
 }