class AvatarAction extends SettingsAction {
- function is_readonly() {
- return false;
- }
-
function get_instructions() {
return _('Upload a new "avatar" (user image) here. You can\'t edit the picture after you upload it, so make sure it\'s more or less square. It must be under the site license, also. Use a picture that belongs to you and that you want to share.');
}
class ConfirmaddressAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
$this->try_login();
}
}
-
- function is_readonly() {
- return false;
- }
function try_login() {
class FinishremotesubscribeAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
class FoafAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
class LoginAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
if (common_is_real_login()) {
require_once(INSTALLDIR.'/lib/openid.php');
class LogoutAction extends Action {
+
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
if (!defined('LACONICA')) { exit(1); }
class NewnoticeAction extends Action {
-
- function is_readonly() {
- return false;
- }
-
+
function handle($args) {
parent::handle($args);
# XXX: Ajax!
require_once(INSTALLDIR.'/lib/omb.php');
-function is_readonly() {
- return false;
-}
-
class PostnoticeAction extends Action {
function handle($args) {
parent::handle($args);
class PublicxrdsAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
class RecoverpasswordAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
if (common_logged_in()) {
class RegisterAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
require_once(INSTALLDIR.'/lib/omb.php');
class RequesttokenAction extends Action {
+
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
try {
class SubscribeAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
class Twitapidirect_messagesAction extends TwitterapiAction {
+
+ function is_readonly() {
+
+ static $write_methods = array( 'direct_messages',
+ 'sent');
+
+ $cmdtext = explode('.', $this->arg('method'));
+
+ if (in_array($cmdtext[0], $write_methods)) {
+ return false;
+ }
+
+ return true;
+ }
+
function direct_messages($args, $apidata) {
parent::handle($args);
common_server_error("API method under construction.", $code=501);
class TwitapifavoritesAction extends TwitterapiAction {
+ function is_readonly() {
+
+ static $write_methods = array('favorites');
+
+ $cmdtext = explode('.', $this->arg('method'));
+
+ if (in_array($cmdtext[0], $write_methods)) {
+ return false;
+ }
+
+ return true;
+ }
+
function favorites($args, $apidata) {
parent::handle($args);
common_server_error("API method under construction.", $code=501);
class TwitapihelpAction extends TwitterapiAction {
+ function is_readonly() {
+ return true;
+ }
+
/* Returns the string "ok" in the requested format with a 200 OK HTTP status code.
* URL:http://identi.ca/api/help/test.format
* Formats: xml, json
# This naming convention looks real sick
class TwitapinotificationsAction extends TwitterapiAction {
-
function follow($args, $apidata) {
parent::handle($args);
common_server_error("API method under construction.", $code=501);
class UnsubscribeAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
require_once(INSTALLDIR.'/lib/omb.php');
class UpdateprofileAction extends Action {
-
- function is_readonly() {
- return false;
- }
function handle($args) {
parent::handle($args);
define('TIMESTAMP_THRESHOLD', 300);
class UserauthorizationAction extends Action {
-
- function is_readonly() {
- return false;
- }
function handle($args) {
parent::handle($args);
if (!defined('LACONICA')) { exit(1); }
class UserbyidAction extends Action {
+
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
$id = $this->trimmed('id');
class XrdsAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
$nickname = $this->trimmed('nickname');
}
function is_readonly() {
- return true;
+ return false;
}
function arg($key, $def=NULL) {
class GalleryAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
$nickname = $this->arg('nickname');
# This will contain the details of each feed item's author and be used to generate SIOC data.
var $creators = array();
+
+ function is_readonly() {
+ return true;
+ }
function handle($args) {
parent::handle($args);
class SearchAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
$this->show_form();
class SettingsAction extends Action {
- function is_readonly() {
- return false;
- }
-
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
class StreamAction extends Action {
+ function is_readonly() {
+ return true;
+ }
+
function handle($args) {
parent::handle($args);
}