mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Add files via upload
This commit is contained in:
parent
80f587b1c5
commit
da5f93dc49
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
# Überprüfe: Datei oder Verzeichniss?
|
# Überprüfe: Datei oder Verzeichniss?
|
||||||
if [[ "$FILE" == *.php ]]; then
|
if [[ "$FILE" == *.php ]]; then
|
||||||
export CONTENTTYPE="html"
|
export CONTENTTYPE="text/html"
|
||||||
. ./httpheaders.sh
|
. ./httpheaders.sh
|
||||||
php "$FILE" >> $HTMLFILE
|
php "$FILE" >> $HTMLFILE
|
||||||
elif [ -f "${FILE}" ]; then
|
elif [ -f "${FILE}" ]; then
|
||||||
|
@ -14,7 +14,7 @@ elif [ -f "${FILE}" ]; then
|
||||||
. ./httpheaders.sh
|
. ./httpheaders.sh
|
||||||
cat "${FILE}" >> ${HTMLFILE}
|
cat "${FILE}" >> ${HTMLFILE}
|
||||||
else
|
else
|
||||||
export CONTENTTYPE="html"
|
export CONTENTTYPE="text/html"
|
||||||
. ./httpheaders.sh
|
. ./httpheaders.sh
|
||||||
. ./htmlfilelist.sh
|
. ./htmlfilelist.sh
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue