From 0f6bc2190a8d6c5d086cac190c964390ab2c5c0d Mon Sep 17 00:00:00 2001 From: Robin Millette Date: Fri, 23 Jan 2009 09:15:15 +0000 Subject: [PATCH] mark a bunch of actions read-only --- actions/accesstoken.php | 5 +++++ actions/allrss.php | 5 +++++ actions/avatarbynickname.php | 5 +++++ actions/doc.php | 5 +++++ actions/favoritesrss.php | 5 +++++ actions/grouplogo.php | 5 +++++ actions/groupsearch.php | 5 +++++ actions/logout.php | 2 +- actions/microsummary.php | 5 +++++ actions/noticesearch.php | 5 +++++ actions/noticesearchrss.php | 5 +++++ actions/opensearch.php | 5 +++++ actions/peoplesearch.php | 5 +++++ actions/publicrss.php | 5 +++++ actions/replies.php | 5 +++++ actions/repliesrss.php | 5 +++++ actions/showmessage.php | 7 ++++++- actions/subscribers.php | 5 +++++ actions/tagrss.php | 5 +++++ actions/userrss.php | 5 +++++ 20 files changed, 97 insertions(+), 2 deletions(-) diff --git a/actions/accesstoken.php b/actions/accesstoken.php index 65c67c64ed..6e91e6c183 100644 --- a/actions/accesstoken.php +++ b/actions/accesstoken.php @@ -71,4 +71,9 @@ class AccesstokenAction extends Action $this->serverError($e->getMessage()); } } + + function isReadOnly() + { + return true; + } } diff --git a/actions/allrss.php b/actions/allrss.php index 248f59f438..05787f3f73 100644 --- a/actions/allrss.php +++ b/actions/allrss.php @@ -123,5 +123,10 @@ class AllrssAction extends Rss10Action $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return $avatar ? $avatar->url : null; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/avatarbynickname.php b/actions/avatarbynickname.php index fec202016e..9bbdecefac 100644 --- a/actions/avatarbynickname.php +++ b/actions/avatarbynickname.php @@ -97,5 +97,10 @@ class AvatarbynicknameAction extends Action } common_redirect($url, 302); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/doc.php b/actions/doc.php index 3755bb051d..6957659add 100644 --- a/actions/doc.php +++ b/actions/doc.php @@ -107,4 +107,9 @@ class DocAction extends Action { return ucfirst($this->title); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/favoritesrss.php b/actions/favoritesrss.php index 19339325cf..ad72dce9e7 100644 --- a/actions/favoritesrss.php +++ b/actions/favoritesrss.php @@ -114,5 +114,10 @@ class FavoritesrssAction extends Rss10Action { return null; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/grouplogo.php b/actions/grouplogo.php index 393070d5dc..496b5d260b 100644 --- a/actions/grouplogo.php +++ b/actions/grouplogo.php @@ -508,4 +508,9 @@ class GrouplogoAction extends Action $nav = new GroupNav($this, $this->group); $nav->show(); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/groupsearch.php b/actions/groupsearch.php index 66f5c87b3f..9b0026db94 100644 --- a/actions/groupsearch.php +++ b/actions/groupsearch.php @@ -103,5 +103,10 @@ class GroupSearchResults extends GroupList { return preg_replace($this->pattern, '\\1', htmlspecialchars($text)); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/logout.php b/actions/logout.php index 0ff8dc7545..3977f90a03 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -54,7 +54,7 @@ class LogoutAction extends Action */ function isReadOnly() { - return true; + return false; } /** diff --git a/actions/microsummary.php b/actions/microsummary.php index 196dd5de83..065a2e0eba 100644 --- a/actions/microsummary.php +++ b/actions/microsummary.php @@ -73,4 +73,9 @@ class MicrosummaryAction extends Action print $user->nickname . ': ' . $notice->content; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/noticesearch.php b/actions/noticesearch.php index 8c5128de15..3c3fdca9f1 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -222,5 +222,10 @@ class NoticesearchAction extends SearchAction } while ($count); return $result; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/noticesearchrss.php b/actions/noticesearchrss.php index c1a1c2c672..7172977ee7 100644 --- a/actions/noticesearchrss.php +++ b/actions/noticesearchrss.php @@ -95,4 +95,9 @@ class NoticesearchrssAction extends Rss10Action { return null; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/opensearch.php b/actions/opensearch.php index d7705972f0..7709249bb1 100644 --- a/actions/opensearch.php +++ b/actions/opensearch.php @@ -83,5 +83,10 @@ class OpensearchAction extends Action $this->elementEnd('OpenSearchDescription'); common_end_xml(); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/peoplesearch.php b/actions/peoplesearch.php index 3c672c9400..615201c461 100644 --- a/actions/peoplesearch.php +++ b/actions/peoplesearch.php @@ -109,5 +109,10 @@ class PeopleSearchResults extends ProfileList { return preg_replace($this->pattern, '\\1', htmlspecialchars($text)); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/publicrss.php b/actions/publicrss.php index 844c334bea..c358779971 100644 --- a/actions/publicrss.php +++ b/actions/publicrss.php @@ -102,5 +102,10 @@ class PublicrssAction extends Rss10Action { // nop } + + function isReadOnly() + { + return true; + } } diff --git a/actions/replies.php b/actions/replies.php index ea8ef47643..5777d17fd3 100644 --- a/actions/replies.php +++ b/actions/replies.php @@ -191,4 +191,9 @@ class RepliesAction extends Action $this->page, 'replies', array('nickname' => $this->user->nickname)); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/repliesrss.php b/actions/repliesrss.php index 48c4fa2553..985318bf16 100644 --- a/actions/repliesrss.php +++ b/actions/repliesrss.php @@ -82,4 +82,9 @@ class RepliesrssAction extends Rss10Action $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return ($avatar) ? $avatar->url : null; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/showmessage.php b/actions/showmessage.php index 289414153b..572a71739a 100644 --- a/actions/showmessage.php +++ b/actions/showmessage.php @@ -176,4 +176,9 @@ class ShowmessageAction extends MailboxAction { return ''; } -} \ No newline at end of file + + function isReadOnly() + { + return true; + } +} diff --git a/actions/subscribers.php b/actions/subscribers.php index be9df2b124..fb8733c773 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -103,4 +103,9 @@ class SubscribersList extends ProfileList 'nickname' => $this->owner->nickname)); $bf->show(); } + + function isReadOnly() + { + return true; + } } diff --git a/actions/tagrss.php b/actions/tagrss.php index b0227ab391..b4c2dcdff7 100644 --- a/actions/tagrss.php +++ b/actions/tagrss.php @@ -66,4 +66,9 @@ class TagrssAction extends Rss10Action 'description' => sprintf(_('Microblog tagged with %s'), $tagname)); return $c; } + + function isReadOnly() + { + return true; + } } diff --git a/actions/userrss.php b/actions/userrss.php index c1f2321eeb..04855cccad 100644 --- a/actions/userrss.php +++ b/actions/userrss.php @@ -94,5 +94,10 @@ class UserrssAction extends Rss10Action header('X-SUP-ID: '.$url); parent::initRss($limit); } + + function isReadOnly() + { + return true; + } }