コード例 #1
0
 function prepare($args)
 {
     parent::prepare($args);
     $this->oauth_token = $this->arg('oauth_token');
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     return true;
 }
コード例 #2
0
 /**
  * For initializing members of the class.
  *
  * @param array $argarray misc. arguments
  *
  * @return boolean true
  */
 function prepare($argarray)
 {
     if (!common_config('oldschool', 'enabled')) {
         throw new ClientException("Old-school settings not enabled.");
     }
     parent::prepare($argarray);
     return true;
 }
コード例 #3
0
 /**
  * For initializing members of the class.
  *
  * @param array $argarray misc. arguments
  *
  * @return boolean true
  */
 function prepare($args)
 {
     parent::prepare($args);
     $this->facebook = new Facebook(array('appId' => common_config('facebook', 'appid'), 'secret' => common_config('facebook', 'secret'), 'cookie' => true));
     $this->user = common_current_user();
     $this->flink = Foreign_link::getByUserID($this->user->id, FACEBOOK_SERVICE);
     return true;
 }
コード例 #4
0
 function prepare($args)
 {
     parent::prepare($args);
     // TODO: Instantiating a new object here causes interface issues.
     //       Find out how I can access variables from the other class
     //       when this action runs. For now, deal with the UI issue.
     $this->flbp = new FetLifeBridgePluginHelper();
     $this->flbp->initialize();
     return true;
 }
コード例 #5
0
ファイル: oauthappssettings.php プロジェクト: himmelex/NTW
 function prepare($args)
 {
     parent::prepare($args);
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     if (!common_logged_in()) {
         $this->clientError(_('You must be logged in to list your applications.'));
         return false;
     }
     return true;
 }
コード例 #6
0
 function prepare($args)
 {
     parent::prepare($args);
     $this->page = $this->arg('page') ? $this->arg('page') + 0 : 1;
     if (!common_logged_in()) {
         // TRANS: Message displayed to an anonymous user trying to view OAuth application list.
         $this->clientError(_('You must be logged in to list your applications.'));
     }
     return true;
 }
コード例 #7
0
ファイル: openidsettings.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('openid_url');
 }
コード例 #8
0
ファイル: smssettings.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('sms');
 }
コード例 #9
0
ファイル: profilesettings.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('nickname');
 }
コード例 #10
0
ファイル: passwordsettings.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('oldpassword');
 }
コード例 #11
0
ファイル: avatarsettings.php プロジェクト: Grasia/bolotweet
 /**
  * Add the jCrop scripts
  *
  * @return void
  */
 function showScripts()
 {
     parent::showScripts();
     if ($this->mode == 'crop') {
         $this->script('jcrop/jquery.Jcrop.min.js');
         $this->script('jcrop/jquery.Jcrop.go.js');
     }
     $this->autofocus('avatarfile');
 }
コード例 #12
0
ファイル: urlsettings.php プロジェクト: phpsource/gnu-social
 function showScripts()
 {
     parent::showScripts();
     $this->autofocus('urlshorteningservice');
 }
コード例 #13
0
 function showStylesheets()
 {
     parent::showStylesheets();
     $this->cssLink('plugins/SubMirror/css/mirrorsettings.css');
 }
コード例 #14
0
ファイル: emailsettings.php プロジェクト: Grasia/bolotweet
 function showScripts()
 {
     parent::showScripts();
     $this->script('emailsettings.js');
     $this->autofocus('email');
 }