30 lines
466 B
Bash
Executable File
30 lines
466 B
Bash
Executable File
#! /bin/bash
|
|
saveIFS=$IFS
|
|
IFS='=&'
|
|
XXQuery_string=($QUERY_STRING)
|
|
IFS=$saveIFS
|
|
|
|
declare -A param
|
|
for ((i=0; i<${#XXQuery_string[@]}; i+=2))
|
|
do
|
|
param[${XXQuery_string[i]}]=${XXQuery_string[i+1]}
|
|
done
|
|
|
|
|
|
|
|
echo "Content-type: text/html"
|
|
echo
|
|
echo "<html>"
|
|
#echo "$REQUEST_METHOD"
|
|
#echo "$QUERY_STRING"
|
|
echo "<body>"
|
|
echo "<pre>"
|
|
env
|
|
echo "</pre>"
|
|
echo "<pre>"
|
|
echo "delay: ${param[delay]}"
|
|
echo "password: ${param[passwd]}"
|
|
echo "</pre>"
|
|
echo "</body>"
|
|
echo "</html>"
|