Funktionen

Benutzer

ZAPConfig

Tutorials Support > Tutorials? > ZAPConfig

ZAP has just introduced an optional (but powerful) Site configuration system for use with the ZAPtoolbox module. To use it follow these steps:

1). Create a page in your wiki called Site.ZAPConfig.

2). Copy the following text to that page:

ZAP Version
 ZAP: {$ZAPversion}
 ZAPtoolbox: {$ZAPtoolboxversion}

ZAP Groups
 Login: Profiles
 Profiles: Profiles
 EmailList: Profiles
 NewsList: NewsList
 NewsQueue: NewsQueue

ZAP Extensions
 attr:
 code:
 create:
 delete:
 edit:
 email:
 grade:
 login:
 math:
 php:
 register:
 rename:
 replace:
 upload:

3). Save the page.

You now have a list of ZAP versions numbers, default values for key ZAP variables (groups, normally), and a list of current ZAP commands available in the toolbox.

Compare your version dates with the ones on the ZAP Downloads page, to ensure you have the latest versions.

To change a default ZAP group, just assign them a new value on this page. They are not set by the SDV function so they cannot be changed in a config file.

The list of toolbox commands allows you to limit ZAP commands to specific groups or pages. If the Site.ZAPConfig page exists, all commands are locked--and must be unlocked individually for specific pages and groups.

For example, suppose you wanted to limit the delete commands to forms in the Test group, forms in groups beginning with User, and on the Site.FileMgmt page. To do this, you would write:

 delete: Test,User*,Site.FileMgmt
Note: If you do not create the Site.ZAPconfig page, all commands will be available wherever the ZAPtoolbox is enabled on your site.

To learn more about ZAP Security, and various options for setting up your config.php file, keep reading...