#!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf "Content-type: text/html;charset=gb2312
Cache-Control: no-cache

"
echo -n "<html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\">
<head><title>û¼</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Cache-Control\" content=\"no-cache\">
<META name=\"viewport\" content=\"width=device-width,user-scalable=no\"/>  
<body>
";
FLOWEYE=/usr/ramdisk/bin/floweye 
windows=`echo ${HTTP_USER_AGENT} | grep "^Mozilla" | grep "Window"`
if [ "${windows}" = "" ]; then
	echo "<br><br><br><br><br><center><h2>ڵϷʴҳ!</h2><br></center>"
else
	varlist=`${FLOWEYE} usrinfo get wifitoken=${REMOTE_ADDR}`
	if [ "$?" != "0" ]; then
		if [ "${varlist}" = "NOT_ONLINE" ]; then
			echo "<br><br><br><br><br><center><h2>˻δPanabitIPȨ</h2><br></center>"
		else
			echo "<br><br><br><br><br><center><h2>ִ:${varlist}<h2><br></center>"
		fi
	else
		for nameval in ${varlist}
		do
			eval "CGI_${nameval}"
		done
		echo "<br><br><br><br><br><center><h2>û:&nbsp;${CGI_name}</h2><br></center>"
		echo "<center><h2>:&nbsp;${CGI_pass}</h2><br></center>"
	fi
fi

echo -n "
</body>
</html>
";