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
08692030c7
commit
ee9145b3a5
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 ]] && [[ "$(which php)" != "" ]] && [[ "$ENABLE_PHP" = "true" ]]; 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