just pushing the old code.

This commit is contained in:
Bradford Morgan White
2026-02-08 12:41:50 -05:00
parent 561d2a4d2a
commit 66405db6f1
10 changed files with 216 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
printf "Content-type: text/html\n\n"
saveIFS=$IFS
IFS='=&'
parm=($QUERY_STRING)
IFS=$saveIFS
declare -A ARGUMENTS
for ((i=0; i<${#parm[@]}; i+=2))
do
ARGUMENTS[${parm[i]}]=${parm[i+1]}
done
POST="${ARGUMENTS[post]}"
PAGE="${ARGUMENTS[page]}"
TITLE=$(egrep '^# ' $POST | cut -f2- -d' ')
source config
source header.include
egrep -v "^# " $POST | egrep -v "^tags: "| markdown
echo " <p><a href=\"index.cgi?page=$PAGE\">&#8672; back</a></p>";
source footer.include