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:
parent
ebbe1cf65a
commit
b773ca7aca
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Check: Is it a Directory, a PHP script or something else?
|
||||
if [[ "$FILE" == *.php ]]; then
|
||||
if [[ "$FILE" == *.php ]] && [[ "$(which php)" != "" ]] && [[ "$ENABLE_PHP" = "true" ]]; then
|
||||
CONTENTTYPE="text/html"
|
||||
. ./httpheaders.sh
|
||||
php "$FILE" >> $OUTFILE
|
||||
|
|
Loading…
Add table
Reference in a new issue