summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/avatar.php4
-rw-r--r--actions/confirmaddress.php4
-rw-r--r--actions/finishaddopenid.php4
-rw-r--r--actions/finishremotesubscribe.php4
-rw-r--r--actions/newnotice.php4
-rw-r--r--actions/postnotice.php4
-rw-r--r--actions/recoverpassword.php4
-rw-r--r--actions/register.php4
-rw-r--r--actions/subscribe.php5
-rw-r--r--actions/twitapiaccount.php4
-rw-r--r--actions/twitapistatuses.php4
-rw-r--r--actions/unsubscribe.php5
-rw-r--r--actions/updateprofile.php5
-rw-r--r--actions/userauthorization.php5
-rw-r--r--lib/action.php6
-rw-r--r--lib/settingsaction.php4
16 files changed, 69 insertions, 1 deletions
diff --git a/actions/avatar.php b/actions/avatar.php
index ebfbd7295..b1697f97b 100644
--- a/actions/avatar.php
+++ b/actions/avatar.php
@@ -23,6 +23,10 @@ require_once(INSTALLDIR.'/lib/settingsaction.php');
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.');
}
diff --git a/actions/confirmaddress.php b/actions/confirmaddress.php
index 3cffda871..66a41d9d7 100644
--- a/actions/confirmaddress.php
+++ b/actions/confirmaddress.php
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
class ConfirmaddressAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
diff --git a/actions/finishaddopenid.php b/actions/finishaddopenid.php
index 028dc82e5..af96635d6 100644
--- a/actions/finishaddopenid.php
+++ b/actions/finishaddopenid.php
@@ -32,6 +32,10 @@ class FinishaddopenidAction extends Action {
}
}
+ function is_readonly() {
+ return false;
+ }
+
function try_login() {
$consumer =& oid_consumer();
diff --git a/actions/finishremotesubscribe.php b/actions/finishremotesubscribe.php
index ba5156a20..bce2447ac 100644
--- a/actions/finishremotesubscribe.php
+++ b/actions/finishremotesubscribe.php
@@ -23,6 +23,10 @@ require_once(INSTALLDIR.'/lib/omb.php');
class FinishremotesubscribeAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
diff --git a/actions/newnotice.php b/actions/newnotice.php
index bf5fd5bcc..487396e4e 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
class NewnoticeAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
# XXX: Ajax!
diff --git a/actions/postnotice.php b/actions/postnotice.php
index ab12277bb..3b5a4ee15 100644
--- a/actions/postnotice.php
+++ b/actions/postnotice.php
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/lib/omb.php');
+function is_readonly() {
+ return false;
+}
+
class PostnoticeAction extends Action {
function handle($args) {
parent::handle($args);
diff --git a/actions/recoverpassword.php b/actions/recoverpassword.php
index 9c34ff3d8..0d85163d7 100644
--- a/actions/recoverpassword.php
+++ b/actions/recoverpassword.php
@@ -25,6 +25,10 @@ define(MAX_RECOVERY_TIME, 24 * 60 * 60);
class RecoverpasswordAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
if (common_logged_in()) {
diff --git a/actions/register.php b/actions/register.php
index 6ac283059..0d6338797 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
class RegisterAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
diff --git a/actions/subscribe.php b/actions/subscribe.php
index f37095c1c..7ce50dac8 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -20,6 +20,11 @@
if (!defined('LACONICA')) { exit(1); }
class SubscribeAction extends Action {
+
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
diff --git a/actions/twitapiaccount.php b/actions/twitapiaccount.php
index f337a5450..a43d1edba 100644
--- a/actions/twitapiaccount.php
+++ b/actions/twitapiaccount.php
@@ -23,6 +23,10 @@ require_once(INSTALLDIR.'/lib/twitterapi.php');
class TwitapiaccountAction extends TwitterapiAction {
+ function is_readonly() {
+ return false;
+ }
+
function verify_credentials($args, $apidata) {
if ($apidata['content-type'] == 'xml') {
diff --git a/actions/twitapistatuses.php b/actions/twitapistatuses.php
index ffe6aed51..3a06d146c 100644
--- a/actions/twitapistatuses.php
+++ b/actions/twitapistatuses.php
@@ -27,6 +27,10 @@ require_once(INSTALLDIR.'/lib/twitterapi.php');
*/
class TwitapistatusesAction extends TwitterapiAction {
+ function is_readonly() {
+ return false;
+ }
+
function public_timeline($args, $apidata) {
parent::handle($args);
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index 0c66946b2..69d513907 100644
--- a/actions/unsubscribe.php
+++ b/actions/unsubscribe.php
@@ -18,6 +18,11 @@
*/
class UnsubscribeAction extends Action {
+
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index 0889ad082..72246dab8 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -22,6 +22,11 @@ if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/lib/omb.php');
class UpdateprofileAction extends Action {
+
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
try {
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 19fe69313..b02fe96ce 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -23,6 +23,11 @@ require_once(INSTALLDIR.'/lib/omb.php');
define('TIMESTAMP_THRESHOLD', 300);
class UserauthorizationAction extends Action {
+
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
diff --git a/lib/action.php b/lib/action.php
index 5f4526166..1dca596eb 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -26,6 +26,10 @@ class Action { // lawsuit
function Action() {
}
+ function is_readonly() {
+ return true;
+ }
+
function arg($key, $def=NULL) {
if (array_key_exists($key, $this->args)) {
return $this->args[$key];
@@ -55,7 +59,7 @@ class Action { // lawsuit
} else {
return $def;
}
- }
+ }
function server_error($msg, $code=500) {
$action = $this->trimmed('action');
diff --git a/lib/settingsaction.php b/lib/settingsaction.php
index a71c9e9bc..0e39a7459 100644
--- a/lib/settingsaction.php
+++ b/lib/settingsaction.php
@@ -21,6 +21,10 @@ if (!defined('LACONICA')) { exit(1); }
class SettingsAction extends Action {
+ function is_readonly() {
+ return false;
+ }
+
function handle($args) {
parent::handle($args);
if (!common_logged_in()) {