mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Create main.sh
This commit is contained in:
parent
877b9aec59
commit
8cb834f9ed
1 changed files with 22 additions and 0 deletions
22
main.sh
Normal file
22
main.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Initalisiere Variablen
|
||||
. ./init.sh
|
||||
|
||||
# Lese configdatei
|
||||
. ./config.sh
|
||||
|
||||
# Lese HTTP-Anfrage
|
||||
. ./readrequest.sh
|
||||
|
||||
# Eine kurze sicherheutsüberprüfung...
|
||||
. ./urlcheck.sh
|
||||
|
||||
# Schreibe fertiges HTML-Dokument
|
||||
. ./writehtml.sh
|
||||
|
||||
# Verwende unix2dos auf das Dokument...
|
||||
unix2dos $HTMLFILE &> /dev/null
|
||||
|
||||
# Gebe fertiges HTML-Dokument aus
|
||||
cat $HTMLFILE
|
Loading…
Add table
Reference in a new issue