飘渺雪域 pay to game
飘渺雪域 pay to game <?php require_once('my_fns.php'); session_start(); if (isset($_SESSION['valid_user'])) { $account = $_SESSION['valid_user']; mysql_connect("127.0.0.1", "root", "这里是mysql密码"); mysql_select_db("db_web"); $result = mysql_query("select yuanbao from user where username ='$account'"); $row = mysql_fetch_object($result); $yuanbao = $row->yuanbao; $money = $yuanbao; $payNum = rand(100000, 999999999); $Mode = zy; $payGold = $money; $payTime = time(); $API_SECURITY_TICKET_PAY = "这里填写你的PayKey 要注意啊,自己必须改下 不然服很容易被人黑的。"; $ticket = md5($API_SECURITY_TICKET_PAY . $Mode . $payNum . $account . $money . $payGold . $payTime); mysql_free_result($result); if ( $yuanbao > 0 ) { $url = "http://198.13.96.120:8091/charge?Mode=$Mode&PayNum=$payNum&PayToUser=$account&PayMoney=$money&PayGold=$payGold&PayTime=$payTime&ticket=$ticket"; $text=(string)file_get_contents( $url ); if ($text==="true"){ if (update_yuanbao($account, 0)){ log_pay($account, $roleid, $yuanbao); echo '充值成功!<a href="index.php">返回首页<a/>'; }else{ echo '充值失败!<a href="index.php">返回首页<a/>'; } }else{ echo '充值失败!<a href="index.php">返回首页<a/>'; } } else { echo "您账户内没有元宝!"; } }else{ echo '您还未登录,请点击<a href="index.php">返回首页<a/>'; } ?>
- 1
- 粉丝: 0
- 资源: 1
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助