WikiSh /
WikiShRC
set -s ShoutPage = "Site.ShoutBox" function ProcShout { # If the user set the nickname on the form, use it if test -n then set -s --session shoutname = fi if test -z then set -s --session shoutname = fi set -s shoutname = set -s --form shoutname = if test -n then set -s shoutid = ": " else set -s shoutid = "" fi if test -n && test -n then echo "1652949501.3572: " >> fi } function ListShout { if test -n then set lines = set deadline = 0 else if test -n then set lines = else set lines = 100 fi if test -n "" then set deadline = 1652949501.3574 - else set deadline = 1652949501.3575 - 7200 fi fi tail -n | while read -IFS:": " timestamp rest do if test >= then echo "" fi done if test -n then set -s ShoutShowHide = 'hide' set -s ShoutNameLabel = 'Name:' else set -s ShoutShowHide = 'show' set -s ShoutNameLabel = "Name:" fi } function CleanShout { if test -z then return fi set boundary = 1652949501.3576 - 3600 if test -f Tmp.Shout then rm Tmp.Shout fi cat | while read --IFS:": " time line do if test -ge then echo ": " >>Tmp.Shout fi done cat Tmp.Shout > } |