[ewiki] $ewiki_errmsg
- From: Andy Fundinger <andy@xxxxxxxxxxx>
- To: 'Mario Salzer' <mario@xxxxxxxxxxxxx>,"'ewiki@xxxxxxxxxxxxx'" <ewiki@xxxxxxxxxxxxx>
- Date: Fri, 7 Nov 2003 17:11:53 -0500
Could we add a $ewiki_pagestate variable that tells the template whether we
have successfully returned a page or why not? Specifically I'd like to
display a login prompt in my title bar whenever a user tries to view a page
that they do not have permission to view.
> > if (EWIKI_PROTECTED_MODE
> > && ( !ewiki_auth($id, $uu, $action)
> > || EWIKI_PROTECTED_MODE_HIDING && empty($ewiki_ring)
>
> I'm usure why it was that way, but I now decided it could even negotiate
> on $data. Btw, I'll changed ewiki_auth() to return error messages now
> via a new global $ewiki_errmsg instead of the &$data, the drawback beeing
> that this new global isn't autocleared (at least better than garbaging
> the parent functions &$data).
>
> Btw, we now have a developers theme on sf.net to check out plugins live
> (not all can be enabled however, wouldn't make sense for some of them).
>
> mario
>
>
> _________________________________________________
> Scanned on 27 Oct 2003 17:08:26
> Scanning by http://erado.com
- Follow-Ups:
- [ewiki] Re: $ewiki_errmsg, ewiki_auth() hooks
- From: Mario Salzer
Other related posts:
- » [ewiki] $ewiki_errmsg
- [ewiki] Re: $ewiki_errmsg, ewiki_auth() hooks
- From: Mario Salzer