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

Delete writehtml.sh

This commit is contained in:
niansa 2018-07-15 09:36:51 +00:00
parent a601aba795
commit cc3734e2f1

View file

@ -1,17 +0,0 @@
#! /bin/bash
# Check: is it a directory or a file?
if [[ "$FILE" == *.php ]]; then
export CONTENTTYPE="text/html"
. ./httpheaders.sh
php "$FILE" >> $HTMLFILE
elif [ -f "${FILE}" ]; then
export CONTENTTYPE="$DEFAULTCONTENT"
. ./httpheaders.sh
cat "${FILE}" >> ${HTMLFILE}
else
export CONTENTTYPE="text/html"
. ./httpheaders.sh
. ./filelist.sh
fi