kospay/pay/www/head.html

69 lines
1.5 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
while read kos
do
[ "${#kos}" -le "1" ]&&break;
koss="$kos
$koss"
done
ck=($(echo "$koss"|awk -F'[|:]' '{IGNORECASE=1}$1=="Cookie"{print $3}'))
sqlstart="SELECT passd,grups,isok,feilv,ckuser,ckname,ckkey,tixian,shouyi FROM user WHERE userid = '${ck[2]}'"
dada="$($MYSQLS -e "$sqlstart" 2>>$0.errlog)"
sdata=($dada)
cksec=${ck[4]}
yunse=$(echo -n "$REMOTE_HOST${sdata[2]}${sdata[1]}${ck[2]}${sdata[0]}${dateddd:0:6}"|md5sum|tr -dc [0-9])
[ "$yunse" = "$cksec" ]||{
echo "HTTP/1.1 302 Moved temporarily
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: private
Server: kos-1.0
Content-Type: text/html;charset=utf-8
Location: login.xhtml
"
exit 0
}
echo "HTTP/1.1 200 ok
Connection: close
Pragma: no-cache
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: private
Server: kos-1.0
Content-Language:zh-CN,zh
Content-Type: text/html;charset=utf-8
<!DOCTYPE html>
<html>
<center>
<head>
<script type=\"text/javascript\">
var ckname='${sdata[5]}';
var tixian='${sdata[7]}';
var shouyi='${sdata[8]}';
var ifeilv='${sdata[3]}';
</script>
<title>首页$titles</title>
$(cat $rpath/www/man 2>/dev/null)
<body>
<h1>星空支付<h1>
<h4>1.H5页面跳转到微信客户端打开指定页面<h4>
<h4>2.个人开发者免签收款即时到账无需装app<h4>
</body>
<script type=\"text/javascript\">
document.getElementById('shouye').style.color='#b63b4d';
</script>
</center>
</html>
"