|
||
Download |
There is some information about the project. So it's a web based module runner system written in PHP 4.2, what use Postgree SQL for storing information.
In the system there are some user, some specified user group and some registered module. Every users is in one group, and every module has a minimal group id (this group id at least required to run this module). One module consists of one or more page.
Everybody who comes to the site gets the index.php. The index.php gives the user at the first time a default group id (anonim), and a default module id (default public module) with the starting module state. So, in a special point of the serving of the query the system has got all information to authenticate the user, and check has got enought permission to run the module. If everything is positive the system includes the module class, make an instance from the class, and call a special method of the object. In the modules every link is referenced to the index.php with a module id, and a module state. So when we ask, another module, or this module another state, we will go on the authentication method again. The framework show only that list of modules, in a menu what is useable in the active security level. (ie. an anonim user doesn't ses this menu item: Deleting Everithing)
If we would like to write a module, we have to extend a special class, and we have to choose, how many states (pages) would we have for the module (n). We have to write the code for all state in one class. We have to make n template files, and pick a minimal group id for the module. After this we can use our new module by the framework.
We've written some usual module:
Sorry, for my terrible english.
The main class diagram [HUN]: