mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
25 lines
451 B
Bash
25 lines
451 B
Bash
#! /bin/bash
|
|
|
|
# Initalisiere Variablen
|
|
. ./init.sh
|
|
|
|
# Lese configdatei
|
|
. ./config.sh
|
|
|
|
# Lese HTTP-Anfrage
|
|
. ./readrequest.sh
|
|
|
|
# Und vieles andere...
|
|
. ./urlcheck.sh
|
|
|
|
# Wenn das Dokument schon fertig ist, dann den folgenden Schritt überspringen
|
|
if [ "$DONE" != "true" ]; then
|
|
# Schreibe fertiges HTML-Dokument
|
|
. ./sendfile.sh
|
|
fi
|
|
|
|
# Verwende unix2dos auf das Dokument...
|
|
unix2dos $OUTFILE &> /dev/null
|
|
|
|
# Gebe fertiges HTML-Dokument aus
|
|
cat $OUTFILE
|