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

📄 change.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?
$forumid=114;
require("userdata/style.php");
require("global.php");
require("header.php");echo"$headertp";
include("bbsdata/level.php");
if(empty($job)){
$des="你正处在".$bbs_title."<br>金钱交易程式中";
headguide($des,"<a href='club.php'>娱乐园</a>","<a href='change.php'>金钱交易</a>");
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;
		}
		
list($fb,$name,$pwd,$usericon,$email,$oicq,$regdate,$sign,$homepage,$area,$comment,$honor,$lastpost,$postamount,$pe,$none,$rvrc,$lasttime,$nowtime,$icq,$sex,$born,$guoji,$tuijianren,$money,$lasttitle,$lastaddr,$group,$yanzheng)=get_user_info($username);

if ($money<1) {
	msg_box('金钱交易','<br>状态:由于你的金钱实在太少了,有了1银子再来交易吧!<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回论坛</li></ul>');
exit;
}
 ?>
 <table cellpadding=0 cellspacing=0 border=0 width=<?=$tablewidth?> bgcolor=<?=$titlecolor?> align=center>
        <tr>
            <td>
                <table cellpadding=3 cellspacing=1 border=0 width=100%>
	     <tr>
	      <td bgcolor=<?=$titlecolor?> align="center"><font color="<?=$categoryfontcolor?>"><b class=title>交易程式</b></font></td>
	    </tr>
	     <tr><td bgcolor="<?=$forumcolorone?>">
<form method="POST" action="change.php?job=give" name="give" onSubmit="return check()">
          <p align="center"> 您现在有<font color="blue"><b> 
            <?=$postamount?>
            </b></font>发贴数,<font 

color="#CC0000"><b> 
            <?=$money?>
            </b></font> 银子<br>
          <table width="60%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr> 
              <td width="33%">你要拿出:</td>
              <td width="33%"> 
                <input type=text size=20 maxlength=5 name="givemoney" value="" style="background-color:#FEFEFF; color:#0000ff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
              </td>
              <td width="34%">(银子,最大为10000,最小1)</td>
            </tr>
            <tr> 
              <td width="33%">送给会员:</td>
              <td width="33%"> 
                <input type=text size=20 maxlength=75 name="giveuser" value="" style="background-color:#FEFEFF; color:#0000ff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
              </td>
              <td width="34%">(注册用户)</td>
            </tr>
            <tr>
              <td width="33%">你的密码:</td>
              <td width="33%">
                <input type=password size=20 maxlength=75 name="pass" value="" style="background-color:#FEFEFF; color:#0000ff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
              </td>
              <td width="34%">
                <input type="hidden" name="member" value="<?=$username?>">
              </td>
            </tr>
            <tr> 
              <td width="33%">&nbsp;</td>
              <td width="33%"> <br>
                <input class=login1 type=submit value=交易 name=login2 style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
                <input class=login1 type=reset value=重写 name=login2 style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
              </td>
              <td width="34%">&nbsp; </td>
            </tr>
          </table>
          <div align="center"><br>
          </div>
          <div align="center"><br>
            (注意:此程序为“增加别人的钱财,减少自己的银子”。请你考虑清楚,别后悔莫及!)</div>
        </form>
<script language=JavaScript>
function check()
{

if (document.give.givemoney.value<1)
	{alert("大方点,至少要给1银子哦.");
		return false;}
if (document.give.givemoney.value>10000)
	{alert("不要太大方了,留着银子还是有用的.");
		return false;}
if (document.give.givemoney.value > <?=$money?> )
	{alert("你好像没这么多银子给人.");
		return false;}
if (document.give.giveuser.value=="")
	{alert("请输入用户名.");
		return false;}
if (document.give.member.value==document.give.giveuser.value)
	{alert("自己给自己好像没什么意义.");
		return false;}
else { return true; }
}
</script>
<?
}
if($job==give)
{
$des="你正处在".$bbs_title."<br>金钱交易程式中";
headguide($des,"<a href='club.php'>娱乐园</a>","<a href='change.php'>金钱交易</a>");
if ($givemoney<1||$givemoney>10000) {
		msg_box('社区交易','<br>状态:发生错误,你输入的金钱数字超出了范围<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回首页</li></ul>');
		exit;
		}

$giveuserfile="$userpath/$giveuser.php";
$memberfile="$userpath/$member.php";
if (empty($giveuser) || $giveuser=="." || $giveuser==".." || !file_exists($giveuserfile) || !file_exists($memberfile)) { 
		msg_box('金钱交易','<br>状态:发生错误,非法的用户名<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回首页</li></ul>');
		exit;
		}

list($fb,$name,$userpwd,$usericon,$useremail,$usericq,$regdate,$sign,$homepage,$area,$introduction,$honor,$last_post,$postamount,$eamil,$pe,$rvrc,$lasttime,$nowtime,$icq,$sex,$born,$guoji,$tuijianren,$money,$lasttitle,$lastaddr,$group,$yanzheng,$tdpost,$sx,$star,$bei1,$bei2,$bei3,$bei4,$bei5,$bei6)
	  = explode("|",readfromfile($memberfile));

if (($pass)!=$userpwd) {
		msg_box('金钱交易','<br>状态:发生错误,你输入的密码不对<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回首页</li></ul>');
		exit;
		}
if ($money<$givemoney) {
		msg_box('金钱交易','<br>状态:发生错误,你没有这么多钱<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回首页</li></ul>');
		exit;
		}

list($fb,$name,$userpwd,$usericon,$useremail,$usericq,$regdate,$sign,$homepage,$area,$introduction,$honor,$last_post,$postamount,$eamil,$pe,$rvrc,$lasttime,$nowtime,$icq,$sex,$born,$guoji,$tuijianren,$money,$lasttitle,$lastaddr,$group,$yanzheng,$tdpost,$sx,$star,$bei1,$bei2,$bei3,$bei4,$bei5,$bei6)
	  = explode("|",readfromfile($giveuserfile));
$money=$money+$givemoney;
writetofile($giveuserfile,"$fb|$name|$userpwd|$usericon|$useremail|$usericq|$regdate|$sign|$homepage|$area|$introduction|$honor|$last_post|$postamount|$eamil|$pe|$rvrc|$lasttime|$nowtime|$icq|$sex|$born|$guoji|$tuijianren|$money|$lasttitle|$lastaddr|$group|$yanzheng|$tdpost|$sx|$star|$bei1|$bei2|$bei3|$bei4|$bei5|$bei6");


list($fb,$name,$userpwd,$usericon,$useremail,$usericq,$regdate,$sign,$homepage,$area,$introduction,$honor,$last_post,$postamount,$eamil,$pe,$rvrc,$lasttime,$nowtime,$icq,$sex,$born,$guoji,$tuijianren,$money,$lasttitle,$lastaddr,$group,$yanzheng,$tdpost,$sx,$star,$bei1,$bei2,$bei3,$bei4,$bei5,$bei6)
	  = explode("|",readfromfile($memberfile));
	  $money=$money-$givemoney;

writetofile($memberfile,"$fb|$name|$userpwd|$usericon|$useremail|$usericq|$regdate|$sign|$homepage|$area|$introduction|$honor|$last_post|$postamount|$eamil|$pe|$rvrc|$lasttime|$nowtime|$icq|$sex|$born|$guoji|$tuijianren|$money|$lasttitle|$lastaddr|$group|$yanzheng|$tdpost|$sx|$star|$bei1|$bei2|$bei3|$bei4|$bei5|$bei6");

if (file_exists("userdata/$msgpath/{$giveuser}1.php")) 
{$msg=file("userdata/$msgpath/{$giveuser}1.php");}
else 
{$msg[0]="";}
$old=implode("",$msg);
        $content="$member 已把 $givemoney 流星,转到了你的账号";
		$new="<?die;?>|系统信息|有人给你送钱啦~|$timestamp|$content|\n";
		writetofile("userdata/$msgpath/{$giveuser}1.php",$new.$old);
		


msg_box("流星交易成功",
			"<b>交易程式成功完成了交易动作</b><br>
			你现在可以选择:<br><ul><li><a href='club.php'>返回社区</a><br>
			<br></li>
			<li><a href='index.php'>返回论坛首页</a></li></ul>");

}?>

⌨️ 快捷键说明

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