コード例 #1
0
 protected function handle()
 {
     // Post from the tag dropdown; redirect to a GET
     if ($this->isPost()) {
         common_redirect($this->selfUrl(), 303);
     }
     parent::handle();
 }
コード例 #2
0
ファイル: all.php プロジェクト: ronhuang/statusnet
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('No such user.'));
         return;
     }
     $this->showPage();
 }
コード例 #3
0
ファイル: portfoliolist.php プロジェクト: himmelex/NTW
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('用户不存在'), 404);
         return;
     }
     $this->showPage();
 }
コード例 #4
0
ファイル: all.php プロジェクト: jianoll/SpeakEnglish_Server
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         // TRANS: Client error when user not found for an action.
         $this->clientError(_('No such user.'));
         return;
     }
     $this->showPage();
 }
コード例 #5
0
ファイル: galleryaction.php プロジェクト: Grasia/bolotweet
 function handle($args)
 {
     parent::handle($args);
     // Post from the tag dropdown; redirect to a GET
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         common_redirect($this->selfUrl(), 303);
         return;
     }
     $this->showPage();
 }
コード例 #6
0
ファイル: userhome.php プロジェクト: himmelex/NTW
 function handle($args)
 {
     parent::handle($args);
     if (!$this->user) {
         $this->clientError(_('用户不存在'));
         return;
     }
     $cur = common_current_user();
     if (empty($cur) || $cur->id != $this->user->id) {
         $this->clientError(_('无法访问此用户的个人页面'));
         return;
     }
     $this->showPage();
 }
コード例 #7
0
 function handle($args)
 {
     parent::handle($args);
     $this->showPage();
 }