⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 club.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?
$forumid=112;
require("global.php");
require("userdata/style.php");
include("header.php");echo"$headertp";
include("bbsdata/level.php");
$thisprog="club.php";
$username=$ofstarid;
$ccmoney=10000;//存储金钱最大值
$qqmoney=10000;//取出金钱最大值
$zzmoney=10000;//转帐金钱最大值
if ($login_status==0) {
		msg_box('社区','<br>状态:发生错误,您还没有登录<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">现在登录</li></ul>');
		exit;
		}
if (file_exists("bbsdata/admin.php")) {
	$adminlist=file("bbsdata/admin.php");
	$count=count($adminlist);
	for ($i=0; $i<$count; $i++) {
		$detail=explode("|", trim($adminlist[$i]));
		$admin_list[]=$detail[1];}
}
$useri=get_user_info($username);
$userlevel=getUserLevel($useri[13],$username);
$userIcon=getUserIcon($useri[24],$username);
$regdate=get_date($useri[6]);
$usericon=get_user_portait($useri[3]);
if($useri[32]==1) $usericon=getofstarxiu($username,$ofstarid,140,226);
if(!$action) {//下面是娱乐园大厅代码。
	headguide("您现在正处在 <?=$bbs_title?><br>娱乐园中心","<a href=$thisprog>娱乐园中心</a>");
	$abc3="<img src=images/club/wfmoney.gif width=\"223\" height=\"317\">";
	$abc2="<br><br>
<input type=button value=\"   FTB 形象    \" onClick=\"location.href='facepic.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   许 愿 板   \" onClick=\"location.href='wish.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   点歌服务   \" onClick=\"location.href='song.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   网络游戏   \" onClick=\"location.href='netgame.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   游戏殿堂   \" onClick=\"location.href='game.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   金钱交易   \" onClick=\"location.href='change.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   体型测验    \" onClick=\"location.href='weight.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   打工赚钱   \" onClick=\"location.href='getmoney.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   赌 大 小   \" onClick=\"location.href='bet.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   赛  马   \" onClick=\"location.href='race.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   社区银行   \" onClick=\"location.href='$thisprog?action=bank'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"    帮    派    \" onClick=\"location.href='group.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"   商  店    \" onClick=\"location.href='shop.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\"><br><br>
<input type=button value=\"    监    狱   \" onClick=\"location.href='prison.php'\" style=\"height:20px; background-color:#f3f3f3; border:1 solid black;\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\">
";
$abc4="娱乐园中心";
}
elseif($action==bank) {
	headguide("您现在正处在<br>社区程式中","<a href=$thisprog>社区大厅</a>","银行");
	if($act==get){
	if($qmoney<=0||$qmoney>$ccmoney) {
		echo "
		<script language=vbscript>
		MsgBox \"输入的数字必须大于零,小于$ccmoney\"
		location.href = \"javascript:history.back()\"
		</script>
		";
		exit;
	}
	if(!ereg("^[0-9]{1,10}$",$qmoney)){
		msg_box('社区','<br>状态:发生错误,请输入数字,不超过10位<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">现在登录</li></ul>');
		exit;
	}	
	if($qmoney>$useri[24]) {
		echo "
		<script language=vbscript>
		MsgBox \"有没有搞错?您哪有这么多现金库存啊\"
		location.href = \"javascript:history.back()\"
		</script>
		";
		exit;
	}
if(!file_exists("userdata/bank/$username.php")) {
	$bank_data="<?
\$btime=$timestamp;
\$bmoney=$qmoney;
\$bankertime=$timestamp;";
writetofile("userdata/bank/$username.php",$bank_data);
dtchange($username,'0','0',"-$qmoney");
$abc2="成功开户,并存入$qmoney $money_title<br><br><br> [ <a href=\"club.php?action=bank\">返 回</a> ] ";

	}else{
		include("userdata/bank/$username.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/$username.php",$bank_data);
dtchange($username,'0','0',"-$qmoney");
$abc2="成功存入$qmoney $money_title ,上次的利息已经结入<br><br><br> [ <a href=\"club.php?action=bank\">返 回</a> ] ";
	}
	}elseif($act==put){
	
	if($qmoney<=0||$qmoney>$qqmoney) {
		echo "
		<script language=vbscript>
		MsgBox \"输入的数字必须大于零,小于$qqmoney\"
		location.href = \"javascript:history.back()\"
		</script>
		";
		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("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);
$qmoney=floor($qmoney*pow(1.001,$banktime));
dtchange($username,'0','0',$qmoney);
$bank_data="<?
\$btime=$btime;
\$bmoney=$bmoney;
\$bankertime=$bankertime;";
writetofile("userdata/bank/$username.php",$bank_data);
$abc2="成功取出 $qmoney $money_title ,利息已记入<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;
}
	}elseif($act==give){
	if(!$qmoney || !$dxname) {
		echo "
		<script language=vbscript>
		MsgBox \"请正确填写金钱与帐户\"
		location.href = \"javascript:history.back()\"
		</script>
		";
		exit;
	}
	if($qmoney<=0||$qmoney>$zzmoney) {
		echo "
		<script language=vbscript>
		MsgBox \"输入的数字必须大于零,小于$zzmoney\"
		location.href = \"javascript:history.back()\"
		</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -