blob: c5785c2c8868337bc941035d0d8657514d59867a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?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');
?>
|