[ewiki] auth in binary (Authmania continues)

I have to introduce the auth calls into the binary system and I'd like to
make some administrative plugins work the same way on binary and non-binary
pages.  To wit I'll have to revise ewiki_page to allow actions on binary
pages.  The relevant line is:

if (!empty($data["flags"]) && (($data["flags"] & EWIKI_DB_F_TYPE) !=
EWIKI_DB_F_TEXT) && ($ewiki_ring!==0)) {
      return($o .= ewiki_t("DISABLEDPAGE"));
   }

I think I'd like to approach this by adding an
$ewiki_plugins["action_binaryok"] action and allowing the replacement for
this check to pass if the action exists in this array.  Is that ok?  Should
we do this another way?





Other related posts: