PHP-Authentication works like the Tomcat authentication. You give the source to authenticate against (DB, file, XML-RPC, etc.) and the directories that shall be protected, and the class handles the rest. No including of any call to a class method on every page is necessary. You can also use it as if it were a standard Auth-class, using a call to "isLoggedIn" on every page that shall be protected.
Configuration for each File/Directory desired?
I was thinking if I implement a mechanism, which lets you put a simple xml-file in a directory, or in each file, which lets you determined how the current page/directory shall be protected. Is there any interest for such a thing?
The following example piece of XML, could then go either in the file or directory for which those options shall be set.
<!-- protect the current file/directory?? -->
<!-- define the login page for this file/directory --->
Help on Nested Set Tree Model
In the new version 0.4.1 I started the implementation of the nested set model. But I got stuck with some queries. I would really appreciate some help on that (i.e. for getChildren, getParent, etc.). Please email me if you could help.