Environment info for skin scripts (SKINS scripts)

Version 1.206

Feature
Finished

When scripts are run from the skins using: |$/usr/local/bin/php <? echo "Hello world!"; echo "Document root is: ".getenv("DOCUMENT_ROOT"); ?> DONE| Environental variables are now passed to the script: eg: DOCUMENT_ROOT => /usr/local/directadmin/data/skins/power_user HOME => /home/bob HTTP_COOKIE => session=8PsUXGwbUianBnK4RVeY2gX5iE9t566DSy70Ec9gI72Usm4JF778dfgKfZZmSerWqJ; HTTP_HOST => server.domain.com QUERY_STRING => value=1&color=yes (this is "GET") POST => name=bob&age=12 REMOTE_ADDR => 192.168.0.1 REQUEST_METHOD => GET REQUEST_URI => /HTM_INDEX_USER?value=1&color=yes SCRIPT_FILENAME => /usr/local/directadmin/data/skins/power_user/user/content_main.html SCRIPT_NAME => /HTM_INDEX_USER SERVER_ADDR => 1.2.3.4 SERVER_NAME => server.domain.com SERVER_PORT => 2222 SERVER_SOFTWARE => DirectAdmin USER => bob USERNAME => bob

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