forked from GNUsocial/gnu-social
		
	Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
This commit is contained in:
		@@ -25,7 +25,7 @@ require_once INSTALLDIR.'/lib/feedlist.php';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class AllAction extends ProfileAction
 | 
					class AllAction extends ProfileAction
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -180,11 +180,11 @@ class ApiAction extends Action
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        # NOTE: before handle(), can't use $this->arg
 | 
					        $apiaction = $args['apiaction'];
 | 
				
			||||||
        $apiaction = $_REQUEST['apiaction'];
 | 
					        $method = $args['method'];
 | 
				
			||||||
        $method = $_REQUEST['method'];
 | 
					
 | 
				
			||||||
        list($cmdtext, $fmt) = explode('.', $method);
 | 
					        list($cmdtext, $fmt) = explode('.', $method);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static $write_methods = array(
 | 
					        static $write_methods = array(
 | 
				
			||||||
@@ -207,5 +207,4 @@ class ApiAction extends Action
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -98,7 +98,7 @@ class AvatarbynicknameAction extends Action
 | 
				
			|||||||
        common_redirect($url, 302);
 | 
					        common_redirect($url, 302);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -108,7 +108,7 @@ class DocAction extends Action
 | 
				
			|||||||
        return ucfirst($this->title);
 | 
					        return ucfirst($this->title);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -85,7 +85,7 @@ class FavoritedAction extends Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,7 +50,7 @@ class FeaturedAction extends Action
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    var $page = null;
 | 
					    var $page = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ define('BOTH', 0);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class FoafAction extends Action
 | 
					class FoafAction extends Action
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -59,7 +59,7 @@ class GroupbyidAction extends Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,7 +48,7 @@ class GroupmembersAction extends Action
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    var $page = null;
 | 
					    var $page = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -57,7 +57,7 @@ class groupRssAction extends Rss10Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,7 +51,7 @@ class GroupsAction extends Action
 | 
				
			|||||||
    var $page = null;
 | 
					    var $page = null;
 | 
				
			||||||
    var $profile = null;
 | 
					    var $profile = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -27,7 +27,7 @@ class InviteAction extends Action
 | 
				
			|||||||
    var $subbed = null;
 | 
					    var $subbed = null;
 | 
				
			||||||
    var $sent = null;
 | 
					    var $sent = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -55,7 +55,7 @@ class LoginAction extends Action
 | 
				
			|||||||
     * @return boolean false
 | 
					     * @return boolean false
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ class LogoutAction extends Action
 | 
				
			|||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -74,7 +74,7 @@ class MicrosummaryAction extends Action
 | 
				
			|||||||
        print $user->nickname . ': ' . $notice->content;
 | 
					        print $user->nickname . ': ' . $notice->content;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,7 +92,7 @@ class NoticesearchrssAction extends Rss10Action
 | 
				
			|||||||
        return null;
 | 
					        return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -124,7 +124,7 @@ class NudgeAction extends Action
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -84,7 +84,7 @@ class OpensearchAction extends Action
 | 
				
			|||||||
        $this->endXML();
 | 
					        $this->endXML();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,7 +56,7 @@ class PublicAction extends Action
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    var $page = null;
 | 
					    var $page = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -102,7 +102,7 @@ class PublicrssAction extends Rss10Action
 | 
				
			|||||||
        // nop
 | 
					        // nop
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ define('TAGS_PER_PAGE', 100);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class PublictagcloudAction extends Action
 | 
					class PublictagcloudAction extends Action
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,7 +54,7 @@ class PublicxrdsAction extends Action
 | 
				
			|||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -196,7 +196,7 @@ class RepliesAction extends Action
 | 
				
			|||||||
        $this->elementEnd('div');
 | 
					        $this->elementEnd('div');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -83,7 +83,7 @@ class RepliesrssAction extends Rss10Action
 | 
				
			|||||||
        return ($avatar) ? $avatar->url : null;
 | 
					        return ($avatar) ? $avatar->url : null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ class RequesttokenAction extends Action
 | 
				
			|||||||
     * 
 | 
					     * 
 | 
				
			||||||
     * @return boolean false
 | 
					     * @return boolean false
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,7 +58,7 @@ class ShowfavoritesAction extends Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -60,7 +60,7 @@ class ShowgroupAction extends Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -177,7 +177,7 @@ class ShowmessageAction extends MailboxAction
 | 
				
			|||||||
        return '';
 | 
					        return '';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -106,7 +106,7 @@ class ShownoticeAction extends Action
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -56,7 +56,7 @@ require_once INSTALLDIR.'/lib/feedlist.php';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class ShowstreamAction extends ProfileAction
 | 
					class ShowstreamAction extends ProfileAction
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -130,7 +130,7 @@ class SubscribersList extends ProfileList
 | 
				
			|||||||
        $bf->show();
 | 
					        $bf->show();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -79,7 +79,7 @@ class SupAction extends Action
 | 
				
			|||||||
        return $updates;
 | 
					        return $updates;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -87,7 +87,7 @@ class TagAction extends Action
 | 
				
			|||||||
                          $this->page, 'tag', array('tag' => $this->tag));
 | 
					                          $this->page, 'tag', array('tag' => $this->tag));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,7 +65,7 @@ class TagrssAction extends Rss10Action
 | 
				
			|||||||
        return $c;
 | 
					        return $c;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -142,7 +142,7 @@ class TwitapisearchjsonAction extends TwitterapiAction
 | 
				
			|||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,7 +50,7 @@ class UserbyidAction extends Action
 | 
				
			|||||||
     * 
 | 
					     * 
 | 
				
			||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {                
 | 
					    {                
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ class UsergroupsAction extends Action
 | 
				
			|||||||
    var $page = null;
 | 
					    var $page = null;
 | 
				
			||||||
    var $profile = null;
 | 
					    var $profile = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -96,7 +96,7 @@ class UserrssAction extends Rss10Action
 | 
				
			|||||||
        parent::initRss($limit);
 | 
					        parent::initRss($limit);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ class XrdsAction extends Action
 | 
				
			|||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -128,7 +128,7 @@ function main()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // XXX: find somewhere for this little block to live
 | 
					        // XXX: find somewhere for this little block to live
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (common_config('db', 'mirror') && $action_obj->isReadOnly()) {
 | 
					        if (common_config('db', 'mirror') && $action_obj->isReadOnly($args)) {
 | 
				
			||||||
            if (is_array(common_config('db', 'mirror'))) {
 | 
					            if (is_array(common_config('db', 'mirror'))) {
 | 
				
			||||||
                // "load balancing", ha ha
 | 
					                // "load balancing", ha ha
 | 
				
			||||||
                $arr = common_config('db', 'mirror');
 | 
					                $arr = common_config('db', 'mirror');
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -791,9 +791,12 @@ class Action extends HTMLOutputter // lawsuit
 | 
				
			|||||||
     *
 | 
					     *
 | 
				
			||||||
     * MAY override
 | 
					     * MAY override
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
					     * @param array $args other arguments
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
     * @return boolean is read only action?
 | 
					     * @return boolean is read only action?
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					
 | 
				
			||||||
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,7 +93,7 @@ class ErrorAction extends Action
 | 
				
			|||||||
        return $this->message;
 | 
					        return $this->message;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,7 +76,7 @@ class GalleryAction extends Action
 | 
				
			|||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -67,7 +67,7 @@ class PeopleSearchResults extends ProfileList
 | 
				
			|||||||
        return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
 | 
					        return preg_replace($this->pattern, '<strong>\\1</strong>', htmlspecialchars($text));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ class PersonalAction extends Action
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    var $user = null;
 | 
					    var $user = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
         return true;
 | 
					         return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,7 +51,7 @@ class SearchAction extends Action
 | 
				
			|||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return boolean true
 | 
					     * @return boolean true
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    function isReadOnly()
 | 
					    function isReadOnly($args)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										32
									
								
								theme/default/base/css/farbtastic.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								theme/default/base/css/farbtastic.css
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					.farbtastic {
 | 
				
			||||||
 | 
					  position: relative;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic * {
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  cursor: crosshair;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic, .farbtastic .wheel {
 | 
				
			||||||
 | 
					  width: 195px;
 | 
				
			||||||
 | 
					  height: 195px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic .color, .farbtastic .overlay {
 | 
				
			||||||
 | 
					  top: 47px;
 | 
				
			||||||
 | 
					  left: 47px;
 | 
				
			||||||
 | 
					  width: 101px;
 | 
				
			||||||
 | 
					  height: 101px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic .wheel {
 | 
				
			||||||
 | 
					  background: url(../../../../js/farbtastic/wheel.png) no-repeat;
 | 
				
			||||||
 | 
					  width: 195px;
 | 
				
			||||||
 | 
					  height: 195px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic .overlay {
 | 
				
			||||||
 | 
					  background: url(../../../../js/farbtastic/mask.png) no-repeat;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					.farbtastic .marker {
 | 
				
			||||||
 | 
					  width: 17px;
 | 
				
			||||||
 | 
					  height: 17px;
 | 
				
			||||||
 | 
					  margin: -8px 0 0 -8px;
 | 
				
			||||||
 | 
					  overflow: hidden; 
 | 
				
			||||||
 | 
					  background: url(../../../../js/farbtastic/marker.png) no-repeat;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user