[pmwiki-users] Easy way to prevent all editing
randy at brownragfilms.com
Sun Dec 9 07:56:53 CST 2007
Thanks for the suggestion. Unfortunately, it didn't work for me.
The setting indeed stopped me from editing but I was still able to post
a comment with commentboxplus.
Also, at the bottom of every page I got this message (even when I was
just browsing the page): "PmWiki can't process your request Cannot
modify site - $EnableReadOnly is set."
However, I'm glad you pointed out that setting to me. It might come in
> -------- Original Message --------
> Subject: Re: [pmwiki-users] Easy way to prevent all editing
> From: Algardas <alglt at yahoo.com>
> Date: Sun, December 09, 2007 4:30 am
> To: pmwiki-users at pmichaud.com
> Hi, Randy.
> >From PmWiki-2.2.0-beta44 (2007-04-16) changelog:
> * Add $EnableReadOnly flag to signal when PmWiki is to be run in
> read-only mode.
> I'm using this $EnableReadOnly flag in config.php of some backed up
> wikis for some months now without any problems.
> I'm also using some recipe utilizing commentboxplus to create a forum
> and if one tries to post a comment/forum entry with $EnableReadOnly set,
> PmWiki aborts with this error message:
> PmWiki can't process your request
> Cannot modify site -- $EnableReadOnly is set
> We are sorry for any inconvenience.
> Hope this helps.
> Randy (2007-12-08 20:12):
> > I'd like to set up a read-only backup wiki on a second server. That way, if
> > the main server goes down, people can always at least read the contents as
> > of the latest backup. Is there a simple way to make an existing wiki
> > read-only?
> > I've tried putting this in the config.php:
> > $HandleAuth['edit'] ='admin';
> > But that didn't prevent people from posting comments using commentboxplus.
> > I'm on a linux server. Maybe there's a way to set the wiki to read-only via
> > file permissions on the server. But I would prefer to do it through pmwiki
> > or a cookbook recipe, so I can freely move the wiki to any host. (Besides,
> > I don't know LInux.)
> > Randy
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
More information about the pmwiki-users