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

Update writehtml.sh

This commit is contained in:
niansa 2018-07-03 16:33:11 +00:00
parent 2dddace612
commit 15a8ff1c09

View file

@ -1,10 +1,7 @@
#! /bin/bash
# Überprüfe: Ist $FILE ein Verzeichniss und enthält es eine index.* ?
# TODO
# Überprüfe: Datei oder Verzeichniss?
# Check: is it a directory or a file?
if [[ "$FILE" == *.php ]]; then
export CONTENTTYPE="text/html"
. ./httpheaders.sh