aboutsummaryrefslogtreecommitdiff
path: root/mod/oauth_api/vendors/oauth/example/server/www/register.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-04-16 15:59:54 -0700
committerCash Costello <cash.costello@gmail.com>2013-04-16 15:59:54 -0700
commitc054b938e972b6f31c1f95a469b1220a6c25628e (patch)
tree87aa97a77f3ef4c47e09cd06ac376f8e069c38fb /mod/oauth_api/vendors/oauth/example/server/www/register.php
parent9dc21d3970b9f6e56438ae2f8875b1c8bec40e03 (diff)
parent9c3d423d87fe5f287a48158df105364b6eb36de0 (diff)
downloadelgg-c054b938e972b6f31c1f95a469b1220a6c25628e.tar.gz
elgg-c054b938e972b6f31c1f95a469b1220a6c25628e.tar.bz2
Merge pull request #5360 from cash/twitter1.1
Twitter API 1.1 update
Diffstat (limited to 'mod/oauth_api/vendors/oauth/example/server/www/register.php')
-rw-r--r--mod/oauth_api/vendors/oauth/example/server/www/register.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/mod/oauth_api/vendors/oauth/example/server/www/register.php b/mod/oauth_api/vendors/oauth/example/server/www/register.php
deleted file mode 100644
index c5785c2c8..000000000
--- a/mod/oauth_api/vendors/oauth/example/server/www/register.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-require_once '../core/init.php';
-
-assert_logged_in();
-
-if ($_SERVER['REQUEST_METHOD'] == 'POST')
-{
- try
- {
- $store = OAuthStore::instance();
- $key = $store->updateConsumer($_POST, 1, true);
-
- $c = $store->getConsumer($key);
- echo 'Your consumer key is: <strong>' . $c['consumer_key'] . '</strong><br />';
- echo 'Your consumer secret is: <strong>' . $c['consumer_secret'] . '</strong><br />';
- }
- catch (OAuthException $e)
- {
- echo '<strong>Error: ' . $e->getMessage() . '</strong><br />';
- }
-}
-
-
-$smarty = session_smarty();
-$smarty->display('register.tpl');
-
-?> \ No newline at end of file