#!/bin/sh

#
#      _______                          .__ .__   .__   .__                 
#      \      \    ____   __ __ _______ |__||  |  |  |  |__|  ____    ____  
#      /   |   \ _/ __ \ |  |  \\_  __ \|  ||  |  |  |  |  | /  _ \  /    \ 
#     /    |    \\  ___/ |  |  / |  | \/|  ||  |__|  |__|  |(  <_> )|   |  \
#     \____|__  / \___  >|____/  |__|   |__||____/|____/|__| \____/ |___|  /
#    =========\/======\/=================================================\/==
#  v0.01 04/JUL/2007 (C) Copyright 2007-2007 Scott D. Yelich SOME RIGHTS RESERVED
# .,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.-*~'`^`'~*-,._.,-*~'`^`'~*-,. 
#
#
#  LICENSE:  Creative Commons Attribution 3.0 License.
#  SEE:      http://creativecommons.org/licenses/by/3.0/
#
#

# http://www.neurillion.com/p/33/counters/ajax/v1/exec/counter_ajax_v1.sh

# Mon Aug  6 010:15:34 EDT 2007, v0.01 sdy

#  INPUT
#    input is form POST ... reading stdin for the data ...
#  OUTPUT
#    output is "id count" ...

test "x$REQUEST_METHOD" = "xPOST" && {
  #  we need to read in the ID -- 
  #  cat > file; # would read in entire POST content...
  read ID; # only read in the first line of the POST data

}

cat <<EOF
Content-Type:  text/html

$ID `/bin/date "+%s"`
EOF
