* This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ require_once('../lib/base.php'); // Logic $operation = isset($_GET['operation']) ? $_GET['operation'] : ''; switch($operation){ case 'register': break; case 'request_token': break; case 'authorise'; OC_Util::checkLoggedIn(); // Example $consumer = array( 'name' => 'Firefox Bookmark Sync', 'scopes' => array('bookmarks'), ); $t = new OC_Template('settings', 'oauth', 'guest'); OC_Util::addStyle('settings', 'oauth'); $t->assign('consumer', $consumer); $t->printPage(); break; case 'access_token'; break; default: // Something went wrong header('Location: /'); break; }