[ewiki] Re: auth in binary (Authmania continues)

> > I think I'd like to approach this by adding an
> > $ewiki_plugins["action_binaryok"] action and allowing the replacement
> for
> 
> This array looks to me, to go into $ewiki_config[...] instead.
> So this was the initial workaround (right before _{DISABLEDPAGE}):
> 
> if (($data["flags"] & EWIKI_DB_F_BINARY) &&
> ($ewiki_config["action_binaryok"][$action])) {
>    ... #-- do nothing (fallthrough)
> }
> #-- stop here if disabled page
> elseif (!empty($data["flags"]) && ...
> 
> But if you meant a real plugin hook, then we should better call it just
> $ewiki_plugins["action_binary"] or $ewiki_plugins["handler_binary"] ?
> Or we could introduce just one plugin hook ["page_binary"][0], which
> then itself was responsible to dispatch to the ["action"] plugins, return
> output or _{DISABLEDPAGE} message.

I meant to have a real plugin hook applicable to both binary and non-binary
records.  My initial plugin for the hook will be a rights management action,
though other management and meta data plugins would seem to use the same
hook.

> 
> However any call to ewiki.php?binary=... will bypass the ewiki_page(),
> so for binary _auth you could eventually be more succesful, if you you
> code
> around the ["binary"][0] hook.

Yes, the _auth calls will be in ewiki_binary, this hook is to support the
management calls.

Andy

Other related posts: