- Sample Page Processed at Different HTML Access Levels
- Download: github
- Manuals:
This is an old revision of the document!
htmlOKay can be downloaded from:
https://github.com/turnermm/htmlOKay/archive/master.zip.
It can be installed in the plugins directory using the download manager. It can also be installed directly into the plugins directory. Save it to lib/plugins and issue the following command from the command line:
tar -xzf htmlOKay.tar.gz
The end result will be the directory structure and files shown in the following section on Directory Structure.
Directory | File(s) | Comments |
---|---|---|
htmlOKay | action.php | initializes current session |
syntax.php | enforces access levels | |
style.css | some styles for the admin panel | |
admin.php | script for the administration panel | |
directory_scan-3.php | script for ajax calls from admin panel | |
script.js | javascript for admin panel | |
htmlOKay/conf | default.php | internal |
metadata.php | internal | |
htmlOKay/conf/access | data directory for access control files | |
get_inf.php | administrator's script for inspecting access control files | |
htmlOKay/lang | ||
htmlOKay/lang/en | intro.txt | internal |
settings.php | internal | |
lang.php | internal |
1. In main.php, immediately below the body tag, include the following call to trigger_event:
<?php $temp=array(); trigger_event('HTMLOK_ACCESS_EVENT', $temp); ?>
main.php will be found in the template directory inc/tpl/default.
2. Make sure that the directory plugins/htmlOKay/conf/access is writable by DokuWiki. This should work with the same permissions and ownership settings as the data directory and the conf directory.
3. Open the Access Manager from the Administration page and set up your permissions.
There is currently one option setting in the Dokuwiki Configuration Manager under HtmlOKay Plugin Settings:
For details on the custom errors buttons and how to install one, see the section Show Errors Button on the access violations page.