. * * @category AccountManager * @package StatusNet * @author Craig Andrews * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @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')) { exit(1); } /** * Implements the session status Account Management endpoint * * @category AccountManager * @package StatusNet * @author ECraig Andrews * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ class AccountManagementSessionStatusAction extends Action { /** * handle the action * * @param array $args unused. * * @return void */ function handle(array $args=array()) { parent::handle($args); $cur = common_current_user(); if(empty($cur)) { print 'none'; } else { //TODO it seems " should be escaped in the name and id, but the spec doesn't seem to indicate how to do that print 'active; name="' . $cur->nickname . '"; id="' . $cur->nickname . '"'; } return true; } function isReadOnly() { return true; } }