[ewiki] Create flag redux

I've been workingi with the create flag some and I think I've found a better
way to set it.  Instead of a simple flag we can set it to the id of the page
being created.  This is compatible with any simple check and provides the
perm plugins with more information about what page to give extra rigts on.
The code patch is to replace:

#-- internal "create" action / used for authentication requests
if ($action == "edit") {
   $ewiki_config["create"] = !$data["version"] || !$data["created"] &&
!$data["flags"];
}

With:

#-- internal "create" action / used for authentication requests
if (($action == "edit")&&(($data["version"]==0) && !isset($pf_page))) {
   $ewiki_config["create"] = $id;
}

Any comments Mario?  Can I commit this?

Andy


Other related posts: