📄 club.php
字号:
";
exit;
}
if(!ereg("^[0-9]{1,10}$",$qmoney)){
msg_box('社区','<br>状态:发生错误,请输入数字,不超过10位<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li></ul>');
exit;
}
if(!file_exists("$userpath/$dxname.php") || !file_exists("userdata/bank/$dxname.php")){
msg_box('社区','<br>状态:发生错误,此用户不存在 OR 还未在本行开户<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li></ul>');
exit;}
if(file_exists("userdata/bank/$username.php")) {
include("userdata/bank/$username.php");
if($qmoney>$bmoney) {
echo "
<script language=vbscript>
MsgBox \"有没有搞错?您哪有这么多存款啊\"
location.href = \"javascript:history.back()\"
</script>
";
exit;
}
$bmoney=$bmoney-$qmoney;
$banktime=floor(($timestamp-$btime)/86400);
$qmoney1=floor($qmoney*pow(1.001,$banktime));
$bmoney=$bmoney+$qmoney1;
$bmoney=$bmoney-$qmoney;
$btime=$timestamp;
$bank_data="<?
\$btime=$btime;
\$bmoney=$bmoney;
\$bankertime=$bankertime;";
writetofile("userdata/bank/$username.php",$bank_data);
include("userdata/bank/$dxname.php");
$banktime=floor(($timestamp-$btime)/86400);
$bmoney=floor($bmoney*pow(1.001,$banktime));
$bmoney=$bmoney+$qmoney;
$btime=$timestamp;
$bank_data="<?
\$btime=$btime;
\$bmoney=$bmoney;
\$bankertime=$bankertime;";
writetofile("userdata/bank/$dxname.php",$bank_data);
if (file_exists("userdata/$msgpath/{$dxname}1.php")) $msg=file("userdata/$msgpath/{$dxname}1.php"); else $msg[0]="";
$new="<?die;?>|系统信息|转帐信息|".$timestamp."|".$username."把".$qmoney.$money_title."转入你的银行帐户|0|\n";
$oldcount=count($msg);
$old=implode("",$msg);
writetofile("userdata/$msgpath/{$dxname}1.php",$new.$old);
$abc2="成功转出 $qmoney $money_title 到 $dxname 的帐户,利息已记入<br><br><br> [ <a href=\"club.php?action=bank\">返 回</a> ] ";
}else{
msg_box('社区','<br>状态:发生错误,你没有在本银行开户<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li>></ul>');
exit;
}
}
else{
if(file_exists("userdata/bank/$username.php")) {include("userdata/bank/$username.php");
$banktime=floor(($timestamp-$btime)/86400);
$bmoney1=floor($bmoney*pow(1.001,$banktime));
$bmoney2=$bmoney1-$bmoney;
}else{ $bmoney="你还未在本行开户";}
$abc2="<TABLE cellSpacing=0 cellPadding=0 width=100% border=0><TBODY><TR><TD width=10> </TD>
<TD align=center><P><img src=images/club/bank.gif></P>
<TABLE cellSpacing=0 cellPadding=0 width=100% border=0><TBODY><TR><TD width=65% align=center>银行利息每天 <B><FONT color=aa0000>0.1</FONT></B> %,每次存款、取款自动结算利息。$username 的信息:
</TD></TR></TBODY></TABLE><TABLE borderColor=000000 cellSpacing=2 borderColorDark=000000
cellPadding=2 width=98% borderColorLight=000000 border=0><TBODY><TR bgColor=F8F8F8>
<TD width=13%>存款:</TD><TD width=37%><B><FONT color=aa0000>$bmoney </FONT>$money_title</B></TD>
<TD width=19%>目前总共:</TD><TD width=31%><B><FONT color=aa0000>$bmoney1 </FONT>$money_title</B></TD></TR>
<TR bgColor=F8F8F8><TD width=13%>利息:</TD><TD width=37%><B><FONT color=aa0000>$bmoney2 </FONT>$money_title</B></TD>
<TD width=19%>存款天数:</TD><TD width=31%><B><FONT color=aa0000>$banktime </FONT>天</B></TD></TR></TBODY></TABLE><BR>
<TABLE cellSpacing=0 cellPadding=0 bgColor=000000 border=0><TBODY><TR bgColor=ffffff>
<TD bgColor=666666 height=20 width=100 align=center><FONT
color=ffffff><B>我要存钱</B></FONT></TD><TD bgColor=99ccff width=252 align=center>我有现金<B><FONT
color=aa0000>$useri[24]</FONT> <B>$money_title</TD></TR></TBODY><FORM action=$thisprog?action=bank&act=get method=post></TABLE></B></B><BR>我要存 <INPUT
style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; BACKGROUND-COLOR: #ffffff\"
size=10 value=0 name=qmoney MAXSIZE=32> <B>$money_title</B> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=submit value=\" 存了\" name=B1> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=reset value=\" 等一下 \" name=B2>
</FORM><TABLE cellSpacing=0 cellPadding=0 bgColor=000000 border=0><TBODY><TR bgColor=ffffff>
<TD bgColor=666666 height=20 width=100 align=\"center\"><FONT
color=#ffffff><B>我要取钱</B></FONT></TD><TD bgColor=99ccff width=252 align=\"center\">我有存款<B><FONT
color=#aa0000>$bmoney</FONT> <B>$money_title</TD></TR></TBODY><FORM action=$thisprog?action=bank&act=put method=post></TABLE><BR>我要取 <INPUT
style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; BACKGROUND-COLOR: #ffffff\"
size=10 value=0 name=qmoney MAXSIZE=\"32\"> <B>$money_title</B> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=submit value=\" 取了 \" name=B1> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=reset value=\" 等一下 \" name=B2>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 bgColor=000000 border=0><TBODY><TR bgColor=ffffff>
<TD bgColor=666666 height=20 width=100 align=center><FONT
color=#ffffff><B>我要转帐</B></FONT></TD><TD bgColor=99ccff width=252 align=center>最高转账金额为 <B><FONT
color=#aa0000>$zzmoney</FONT> <B>$money_title</TD></TR></TBODY>
<FORM action=$thisprog?action=bank&act=give method=post>最高转账金额为 <font color=\"#AA0000\"><b>$zzmoney</b></font> <B>$money_title</B></TABLE><BR>我要将 <INPUT
style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; BACKGROUND-COLOR: #ffffff\"
size=10 value=500 name=qmoney MAXSIZE=\"32\"> <B>$money_title</B> 转到 <INPUT
style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; BACKGROUND-COLOR: #ffffff\"
size=10 name=dxname MAXSIZE=\"32\"> 的账户<BR> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=submit value=\" 确定 \" name=B1> <INPUT style=\"BORDER-RIGHT: #9a9999 1px solid; BORDER-TOP: #9a9999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #9a9999 1px solid; WIDTH: 80px; BORDER-BOTTOM: #9a9999 1px solid; HEIGHT: 22px; BACKGROUND-COLOR: #f8f8f8\" type=reset value=\" 等一下 \" name=B2>
</FORM> [ <a href=\"javascript:history.back()\">返 回</a> ]
</TD></TR></TBODY></TABLE>";
}
$abc3="欢迎光临,这里是 {$bbs_title}银行,我将为您服务!<br><br>
你可以把现金存到本银行中,以后每日你将得到 0.1 %的日利率。<br><br>
本银行全自由式,你随时都可以从本银行存储或提取现金。<br><br>
提取后,利息自动加入到存款中。<br><br>
您每次最多只能存 $ccmoney $money_title<br><br>
您每次最多只能取 $qqmoney $money_title<br><br>
你将不会遇到本银行倒闭或无库存资金支持给你!";
}
else{exit;}
$userwww=floor($useri[16]/10);
print <<<EOT
<table width=$tablewidth border=0 cellspacing=0 cellpadding=0 align=center bgcolor=$bordercolor>
<tr>
<td>
<table width=100% border=0 cellspacing=1 cellpadding=3>
<tr bgcolor=$titlecolor>
<td class=title colspan="3" bgcolor=$titlecolor>
<div align="right"><a href=$thisprog class=title>大厅</a>| $abc4</div>
</td>
</tr>
<tr bgcolor=FFFFFF>
<td width="25%">
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td class=HoverBC height=22 align=center><img src=images/club/userlist.gif width=16 height=16 align=absmiddle> 我的资料</td></tr>
<tr><td height=1><br></td></tr></table>
<table width=100% border=0 cellspacing=0 cellpadding=3>
<tr><td colspan=2 height=5 align=center></td></tr>
<tr align=center><td colspan=2>$usericon</td></tr>
<tr><td width=38% align=right>姓名:</td><td width=62%>$username</td></tr>
<tr><td width=38% align=right>现金:</td><td width=62%>$useri[24] $money_title</td></tr>
<tr><td width=38% align=right>威望:</td><td width=62%>$userwww 点</td></tr>
<tr><td width=38% align=right>级别:</td><td width=62%>$userlevel</td></tr>
<tr><td width=38% align=right>出道:</td><td width=62%>$regdate</td></tr>
<tr><td colspan=2 height=5 align=center></td></tr>
</table>
</td>
<td width="50%">
<div align="center">$abc2</div>
</td>
<td width="25%">
$abc3
</td>
</tr>
<tr align=left >
<td colspan="3" bgcolor=$titlecolor> </td>
</tr>
</table>
</td>
</tr>
</table>
EOT;
include("footer.php");echo"$footertp";
exit;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -