1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00

Update sendfile.sh

This commit is contained in:
niansa 2018-07-15 08:54:28 +00:00
parent 08692030c7
commit ee9145b3a5

View file

@ -1,7 +1,7 @@
#! /bin/bash
# Check: Is it a Directory, a PHP script or something else?
if [[ "$FILE" == *.php ]] && [[ "$(which php)" != "" ]] && [[ "$ENABLE_PHP" = "true" ]]; then
if [[ "$FILE" == *.php ]] && [ "$(which php)" != "" ] && [ "$ENABLE_PHP" = "true" ]; then
CONTENTTYPE="text/html"
. ./httpheaders.sh
php "$FILE" >> $OUTFILE