*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
$ptag = Profile_tag::setTag($this->user->id, $this->tagged->id,
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError(
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: application/atomsvc+xml');
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$sitename = common_config('site', 'name');
// TRANS: Message is used as a title when listing the lastest 20 groups. %s is a site name.
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$arr = array('profile_tag_id' => $this->list->id,
'profile_id' => $this->target->id);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
common_debug("In apisearchatom handle()");
$this->showAtom();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showResults();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showTrends();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
try {
if ($this->approve) {
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$cur = common_current_user();
try {
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) {
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
try {
$this->request->abort();
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) {
$this->returnToPrevious();
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) {
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost($args);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->trySave();
} else {
}
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: application/rdf+xml');
* @return nothing
*
*/
- function handle($args)
+ function handle()
{
header('Content-Type: application/json; charset=utf-8');
$location_object = array();
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) {
$this->returnToPrevious();
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->unblockProfile();
}
return false;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!common_config('invite', 'enabled')) {
// TRANS: Client error displayed when trying to sent invites while they have been disabled.
$this->clientError(_('Invites have been disabled.'));
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->makeAdmin();
}
*
* @return nothing
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user.
*
* @return boolean false if user doesn't exist
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$type = $this->trimmed('type');
$short_name = '';
if ($type == 'people') {
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
// success!
if (!common_set_user($this->user)) {
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
//common_log(LOG_DEBUG, 'Autocomplete data: ' . json_encode($this->tags));
if ($this->tags) {
}
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
# Post from the tag dropdown; redirect to a GET
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
}
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
$key = 'disable-' . $this->plugin;
Config::save('plugins', $key, $this->overrideValue());
* @return void
*/
- function handle($args)
+ function handle()
{
$this->msg = null;
*
* @return void
*/
- function handle($args)
+ function handle()
{
common_redirect($this->peopletag->homeUrl(), 303);
}
$this->elementEnd('div');
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
var $msg = null;
var $success = null;
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_logged_in()) {
// TRANS: Client error displayed trying to recover password while already logged in.
$this->clientError(_('You are already logged in!'));
*
* @return nothing
*/
- function handle($args)
+ function handle()
{
common_redirect(common_local_url($this->arg('nextAction'), $this->arg('args')));
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_config('site', 'closed')) {
// TRANS: Client error displayed when trying to register to a closed site.
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
*
* @return nothing
*/
- function handle($args)
+ function handle()
{
header('Content-Type: application/rsd+xml');
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$cur = common_current_user();
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$cur = common_current_user();
// @todo FIXME: documentation needed.
class SupAction extends Action
{
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$seconds = $this->trimmed('seconds');
*/
class UnsubscribeAction extends Action
{
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user.
$this->clientError(_('Not logged in.'));
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$cur = common_current_user();
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->checkSessionToken();
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
try {
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: application/json; charset=utf-8');
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$cur = common_current_user();
if(empty($cur)) {
function handle($argarray=null)
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$profile = AnonymousFavePlugin::getAnonProfile();
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$profile = AnonymousFavePlugin::getAnonProfile();
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showTimeline();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
class CasloginAction extends Action
{
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_is_real_login()) {
// TRANS: Client error displayed when trying to log in while already logged on.
$this->clientError(_m('Already logged in.'));
function handle($args=null)
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: text/plain');
$shortened_text = common_shorten_links($this->text);
print $shortened_text;
return true;
}
- function handle($args)
+ function handle()
{
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!$this->user) {
// TRANS: Client error displayed when trying to access a mailbox without providing a user.
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user.
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showResults();
}
*
* @param array $args is ignored since it's now passed in in prepare()
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$data = $this->facebook->getSignedRequest();
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_is_real_login()) {
class FacebookloginAction extends Action
{
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_is_real_login()) {
// TRANS: Client error displayed when trying to login while already logged in.
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError(
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($this->isPost()) {
$this->handlePost($args);
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();
}
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($this->isPost()) {
$this->handlePost($args);
*/
class OembedproxyAction extends OembedAction
{
- function handle($args)
+ function handle()
{
// Trigger short error responses; not a human-readable web page.
GNUsocial::setApi(true);
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user.
$this->clientError(_m('Not logged in.'));
var $username = null;
var $message = null;
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_is_real_login()) {
// TRANS: Client error message trying to log on with OpenID while already logged on.
$this->clientError(_m('Already logged in.'));
class OpenidloginAction extends Action
{
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (common_is_real_login()) {
// TRANS: Client error message trying to log on with OpenID while already logged on.
$this->clientError(_m('Already logged in.'));
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$request = $this->oserver->decodeRequest();
if (in_array($request->mode, array('checkid_immediate',
'checkid_setup'))) {
return true;
}
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$this->handleSubmit();
}else{
var $form_html = null;
var $form_id = null;
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if (empty($this->url)) {
// TRANS: Form validation error displayed when a URL parameter is missing.
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
// TRANS: Form validation error displayed when POST is not used.
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$strm = $this->original->repeatStream($this->cnt);
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$offset = ($this->page-1) * $this->cnt;
$limit = $this->cnt;
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
header('Content-Type: text/xml; charset=UTF-8');
$this->startXML();
*
* @return void
*/
- function handle($args)
+ function handle()
{
header('Content-Type: text/xml; charset=UTF-8');
$this->startXML();
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
*
* @return void
*/
- function handle($args)
+ function handle()
{
// Throws exception on error
*
* @return void
*/
- function handle($args)
+ function handle()
{
- parent::handle($args);
+ parent::handle();
$this->showPage();
}
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();
*
* @return void
*/
- function handle($args)
+ function handle()
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost();