multi pupose post.sh script called after all POST's

Version 1.275

Feature
Finished

A script that's called (if it exists) after *all* POST's done by a User in DA. All of the relevant info is passed to the script. Possibly add a pre.sh script for it as well, with the option of returning a non-zero value to shut down whatever commands you want. custom script names: all_pre.sh all_post.sh The all_post.sh script won't be able to stop the command from running, obviously, as it's called after the command has actually completed, however a non-zero return value will still abort the usual output to generate text to the screen. CMD_API commands will work as well.. the output from the scripts are encoded with the standard error=1&text=..etc.. values passed will be the entire GET and POST values (POST wil override any GET values). At the end, "username" and "command" will be added, overriding anything in the form. (command, being the CMD_COMMAND_NAME) Heavy form checking is expected in your script as users can pass anything they'd like to try and fool your scripts with unexepcted environemental variable values. Be very very careful with this feature. It's very "raw" and can bite you if you're not careful. --- Update: THe following are now also variables in the all_pre.sh and all_post.sh: caller_ip SESSION_ID

Interested to try DirectAdmin? Get a 30-day Free Trial!