. * * @category Action * @package StatusNet * @author Zach Copley * @copyright 2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } require_once INSTALLDIR . '/lib/info.php'; /** * Class for displaying an OAuth verifier pin * * @category Action * @package StatusNet * @author Zach Copley * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class ApiOauthPinAction extends InfoAction { function __construct($verifier) { $this->verifier = $verifier; $title = _('Authorization succeeded.'); parent::__construct($title, $title); } // TODO: Check for logged in state! /** * Display content. * * @return nothing */ function showContent() { // XXX: make this much nicer $this->element('div', array('class' => 'info'), $this->verifier); } }