summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitteradminpanel.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-03 01:49:14 +0000
committerZach Copley <zach@status.net>2010-03-03 01:49:14 +0000
commit32c08f53de83cbc512b0e69fc0994601f67d9582 (patch)
treec9ded69b77d8530770a4ec1be31a03f2fc0fd7c0 /plugins/TwitterBridge/twitteradminpanel.php
parent097e3f89b630b7a28f27c96f5e9a036df3ed7710 (diff)
Show global key and secret, if defined, in Twitter bridge admin panel
Diffstat (limited to 'plugins/TwitterBridge/twitteradminpanel.php')
-rw-r--r--plugins/TwitterBridge/twitteradminpanel.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/plugins/TwitterBridge/twitteradminpanel.php b/plugins/TwitterBridge/twitteradminpanel.php
index b22e6d99f..0ed53bc05 100644
--- a/plugins/TwitterBridge/twitteradminpanel.php
+++ b/plugins/TwitterBridge/twitteradminpanel.php
@@ -225,6 +225,49 @@ class TwitterAdminPanelForm extends AdminForm
);
$this->unli();
+ $globalConsumerKey = common_config('twitter', 'global_consumer_key');
+ $globalConsumerSec = common_config('twitter', 'global_consumer_secret');
+
+ if (!empty($globalConsumerKey)) {
+ $this->li();
+ $this->out->element(
+ 'label',
+ array('for' => 'global_consumer_key'),
+ ''
+ );
+ $this->out->element(
+ 'input',
+ array(
+ 'name' => 'global_consumer_key',
+ 'type' => 'text',
+ 'id' => 'global_consumer_key',
+ 'value' => $globalConsumerKey,
+ 'disabled' => 'true'
+ )
+ );
+ $this->out->element('p', 'form_guide', _('Global consumer key'));
+ $this->unli();
+
+ $this->li();
+ $this->out->element(
+ 'label',
+ array('for' => 'global_consumer_secret'),
+ ''
+ );
+ $this->out->element(
+ 'input',
+ array(
+ 'name' => 'global_consumer_secret',
+ 'type' => 'text',
+ 'id' => 'global_consumer_secret',
+ 'value' => $globalConsumerSec,
+ 'disabled' => 'true'
+ )
+ );
+ $this->out->element('p', 'form_guide', _('Global consumer secret'));
+ $this->unli();
+ }
+
$this->li();
$this->input(
'source',