- Joined
- Feb 27, 2003
- Messages
- 9,158
Hello,
I'm proud to say that I've introduced scripting into the skins/templates. It's been tested a little bit, and is still in beta, but I feel is ready for the general community to start playing with.
Usage:
You can replace /usr/local/bin/php with /usr/bin/perl if you like perl better. Your script will get 4 seconds to run before DA toasts it, but that can be increased/changed if needed. You can run multiple scripts within one page, no problems. The script will be run as the logged in user with setgid/setuid, so you can't increase to root privilege. The scripts are run as if they were run from an ssh prompt... so things like GET/POST values won't be passed via environment (can be changed).. but other things like sending header data will not work, because by the time the script is run, the DA headers will have already been sent out.
This scripting functionality can be changed if required, so stay tuned to this thread in case there are any. Scripting available as of 1.20.5, but it's BETA and not official (everyone should have it)
John
I'm proud to say that I've introduced scripting into the skins/templates. It's been tested a little bit, and is still in beta, but I feel is ready for the general community to start playing with.
Usage:
PHP:
<html>
welcome to my webpage<br>
|$/usr/local/bin/php
<?
echo "this is php code with tokens: |USERNAME|";
?>
DONE|
</html>
This scripting functionality can be changed if required, so stay tuned to this thread in case there are any. Scripting available as of 1.20.5, but it's BETA and not official (everyone should have it)
John