• 飘渺雪域 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/>'; } ?>

    0
    212
    888B
    2013-07-10
    10
关注 私信
上传资源赚积分or赚钱