1. PLEASE NOTE: This page is a SHARED page! If you edit it then you will make a copy
  2. in your LOCAL configuration and you will no longer use the shared page.

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 "1511342375.0228: " >>
   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 = 1511342375.0236 - 
      else
         set deadline = 1511342375.0238 - 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 = 1511342375.0245 - 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 >

}