53 lines
1.3 KiB
Bash
Executable File
53 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
||
read head1
|
||
heads=(${head1//'?'/ })
|
||
[ "${heads[1]}" = "/" ]&&heads[1]=login.xhtml
|
||
export conntyp="${heads[0]}"
|
||
[ -e "/krepay/pay/www/${heads[1]}" ]&&{
|
||
export datapath=/krepay/pay/data/
|
||
export rpath=/krepay/pay
|
||
export dateddd=$(date +%s)
|
||
export titles="-星空支付"
|
||
export MYSQL_PWD=xpeHR86fCNfnY3yF
|
||
export MYSQLS="mysql -ukrepay -Dkrepay --default-character-set=utf8 -A -N"
|
||
export div_foot="<div style=\"position: absolute;height: 50px;bottom: 0px;text-align: center;line-height: 50px;width: 100%;\">
|
||
©2017-2019 krepay All Right Reserved.
|
||
</div>"
|
||
/krepay/pay/www/${heads[1]} "${heads[2]}" 2>/dev/null
|
||
}||{
|
||
while read kos
|
||
do
|
||
[ "${#kos}" -le "1" ]&&break;
|
||
done
|
||
echo "HTTP/1.1 404
|
||
Server: kos-1.0
|
||
Content-Language:zh-CN,zh
|
||
Content-Type: text/html;charset=utf-8
|
||
|
||
<!doctype html>
|
||
<html>
|
||
<head>
|
||
<meta charset=\"utf-8\">
|
||
<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
|
||
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">
|
||
<title>404</title>
|
||
<style>
|
||
body{
|
||
background-color:#444;
|
||
font-size:14px;
|
||
}
|
||
h3{
|
||
font-size:60px;
|
||
color:#eee;
|
||
text-align:center;
|
||
padding-top:30px;
|
||
font-weight:normal;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<h3>404,您请求的文件不存在!</h3>
|
||
</body>
|
||
</html>"
|
||
} |