#!/bin/sh # NEWLOGIN? Then no "Basic Auth", we try our own login ... if [ "$MOD_HTTPD_NEWLOGIN" = yes ]; then # use standard PW "freetz" if no PW set [ -e /tmp/flash/mod/webmd5 ] || echo -n "freetz" | md5sum | sed 's/[ ]*-.*//' > /tmp/flash/mod/webmd5 else echo "/:$MOD_HTTPD_USER:$MOD_HTTPD_PASSWD" fi # protect file servers.php to be viewed in clear text via URL with a fantasy password [ -h /usr/mww/phpxmail/servers.php ] && echo "/phpxmail/servers.php:$MOD_HTTPD_USER:76advw6djc734hwh" php_cgi=/usr/bin/php-cgi [ -h ${php_cgi} -o -x ${php_cgi} ] && echo "*.php:${php_cgi}"