Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010 include "lib/PDOOAuth2.inc";
00011
00012 if ($_POST && isset($_POST["client_id"]) && isset($_POST["client_secret"]) && isset($_POST["redirect_uri"])) {
00013 $oauth = new PDOOAuth2();
00014 $oauth->addClient($_POST["client_id"], $_POST["client_secret"], $_POST["redirect_uri"]);
00015 }
00016
00017 ?>
00018
00019 <html>
00020 <head>Add Client</head>
00021 <body>
00022 <form method="post" action="addclient.php">
00023 <p>
00024 <label for="client_id">Client ID:</label>
00025 <input type="text" name="client_id" id="client_id" />
00026 </p>
00027 <p>
00028 <label for="client_secret">Client Secret (password/key):</label>
00029 <input type="text" name="client_secret" id="client_secret" />
00030 </p>
00031 <p>
00032 <label for="redirect_uri">Redirect URI:</label>
00033 <input type="text" name="redirect_uri" id="redirect_uri" />
00034 </p>
00035 <input type="submit" value="Submit" />
00036 </form>
00037 </body>
00038 </html>