weather.cgi might be dangerous, but I still like it.

This commit is contained in:
sndr 2019-04-13 13:20:54 +02:00
commit 91a2ae4a09
1 changed files with 18 additions and 0 deletions

18
weather.cgi Normal file
View File

@ -0,0 +1,18 @@
#!/bin/sh
area=$QUERY_STRING
IFS='
'
if [ $area = "?" ]; then
for line in $(/usr/pkg/bin/finger @graph.no) ; do
echo "i$line" # This is itemtype=i + text
done
else
for line in $(/usr/pkg/bin/finger $area@graph.no) ; do
echo "i$line" # This is itemtype=i + text
done
fi
echo "i"
echo "iQuery parsed: $area"
echo "iAccessed: $(date -u)"