What's this?:
With this WebGUI macro, it is possible to include and run Perl scripts in WebGUI.
System requirements:
- Web server (tested on Apache 2).
- WebGUI (tested on WebGUI V7.4.x).
Files:
- WebGUI/docs/Macro_Perl.html: This document here.
- WebGUI/lib/WebGUI/Help/Macro_Perl.pm: Help Text.
- WebGUI/lib/WebGUI/Macro/Perl.pm: WebGUI macro.
- WebGUI/lib/WebGUI/i18n/English/Macro_Perl.pm: Texts in english language.
- WebGUI/lib/WebGUI/i18n/German/Macro_Perl.pm: Texts in german language.
Installation:
- Download the package source from http://sourceforge.net/projects/addons4webgui.
- Extract it (or copy the files from it) over the into your WebGUI install. Example: tar xvfz /path/to/Macro_Perl-x.x.x.tar.gz /path/to/WebGUI.
- Edit WebGUI conf file to add the Perl macro to the macro list.
- Restart web server.
Important notes:
- On the page where the macro is inserted, set the cache timeout and the cache timeout (visitor) to zero!!!
Usage:
ˆPerl([Script]);
Example: ˆPerl("my $text = 'Hello '; return $text.$session->user->get('username');");
Macro parameter description:
- Script - perl script.
Troubleshooting:
See web server log file and/or webgui log file.
|
Changelog:
V1.0.1:
- Renamed and updated this document
V1.0.0:
- Migrated to WebGUI V7.4.x
V0.1.0:
|