aboutsummaryrefslogtreecommitdiff
path: root/vendor/oauth-php/example/server/www/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/oauth-php/example/server/www/register.php')
-rw-r--r--vendor/oauth-php/example/server/www/register.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/oauth-php/example/server/www/register.php b/vendor/oauth-php/example/server/www/register.php
deleted file mode 100644
index 0a74297..0000000
--- a/vendor/oauth-php/example/server/www/register.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-
-require_once '../core/init.php';
-
-assert_logged_in();
-
-if ($_SERVER['REQUEST_METHOD'] == 'POST')
-{
- try
- {
- $store = OAuthStore::instance();
- $user_id = 1; // this should not be hardcoded, of course
- $key = $store->updateConsumer($_POST, $user_id, true);
-
- $c = $store->getConsumer($key, $user_id);
- echo 'Your consumer key is: <strong>' . $c['consumer_key'] . '</strong><br />';
- echo 'Your consumer secret is: <strong>' . $c['consumer_secret'] . '</strong><br />';
- }
- catch (OAuthException2 $e)
- {
- echo '<strong>Error: ' . $e->getMessage() . '</strong><br />';
- }
-}
-
-
-$smarty = session_smarty();
-$smarty->display('register.tpl');
-
-?> \ No newline at end of file