Ejemplo n.º 1
0
 $bdnum = ${$glo_rname};
 $glo_rname_o = "glo_member_" . $oldrank;
 $o_bdmoney = ${$glo_rname_o};
 $glo_rname_o = "glo_num_" . $oldrank;
 $o_bdnum = ${$glo_rname_o};
 $span_num = $bdnum - $o_bdnum;
 $span_bdmoney = $bdmoney - $o_bdmoney;
 if ($glo_sjkoumoney == 1) {
     if ($rr["price"] >= $span_bdmoney) {
         $sql = "update {$db_prefix}users set price=price-'{$span_bdmoney}' where username='******'";
         $db->query($sql);
         $memo = 16;
         $type = 2;
         $optime = $modtime;
         $memo1 = '后台修改';
         eclsproc($rr["username"], $memo, $span_bdmoney, $type, $optime, $memo1);
     } else {
         $hint = "该会员没有足够的电子货币!请先补足电子货币后再升级.";
         echo "<script>alert('" . $hint . "');history.back();</script>";
         exit;
     }
 }
 if ($glo_sjleijipv == 1) {
     $sql = "update {$db_prefix}users set bdmoney=bdmoney+'{$span_bdmoney}',bdnum=bdnum+'{$span_num}',bdnum_team=bdnum_team+'{$span_num}',pv_reg=pv_reg+'{$span_bdmoney}',pv_team_reg=pv_team_reg+'{$span_bdmoney}',pv_team_regp=pv_team_regp+'{$span_bdmoney}' where username='******'";
     $db->query($sql);
     $year = date("Y", $modtime);
     $month = date("m", $modtime);
     $day = date("d", $modtime);
     editpv($year, $month, $day, trim($rr["username"]), $span_bdmoney, $span_num);
     if (trim($prename)) {
         $glnetupstr = "";
Ejemplo n.º 2
0
if (strtoupper($signMsg) == strtoupper($merchantSignMsg)) {
    switch ($payResult) {
        case "10":
            $sql = "select * from {$db_prefix}wangyin where id='" . $orderId . "' limit 1";
            $rs = $db->get_one($sql);
            if ($rs['state'] == 0) {
                $sql = "update {$db_prefix}wangyin set state=1 where id='" . $orderId . "'";
                $db->query($sql);
                $sql1 = "update {$db_prefix}users set price=price+" . $payAmount / 100 . " where username='******' limit 1";
                $db->query($sql1);
                $memo = 1;
                $type = 1;
                $optime = time();
                $money = floatval($payAmount / 100);
                $memo1 = "快钱充值";
                eclsproc($rs['userid'], $memo, $money, $type, $optime, $memo1);
                $rsmb = $db->get_one("select mobile from {$db_prefix}users where username='******'userid'] . "' limit 1");
                sendduanxin_chongzhi($rs['userid'], $rsmb['mobile'], date("Y-m-d H:i:s", $rs["addtime"]), $money);
                sendduanxin_huikuan2($rs['userid'], date("Y-m-d H:i:s", $rs["addtime"]), floatval($money), 2);
            }
            $rtnOk = 1;
            $rtnUrl = $glo_cft_url . "/user/wangyin.php";
            break;
        default:
            $rtnOk = 1;
            $rtnUrl = $glo_cft_url . "/user/wangyin.php";
            break;
    }
} else {
    $rtnOk = 1;
    $rtnUrl = $glo_cft_url . "/user/wangyin.php";
Ejemplo n.º 3
0
 $db->query($sql_2);
 $sql_1 = "update {$db_prefix}users set j_price=j_price-'{$total}' where username='******'";
 $db->query($sql_1);
 $memo = 3;
 $type = 2;
 $optime = time();
 $money = $realprice;
 $memo1 = "提现编号" . $id;
 eclsproc($hyusername, $memo, $money, $type, $optime, $memo1, 1);
 if ($price2 > 0) {
     $memo = 15;
     $type = 2;
     $optime = time();
     $money = $price2;
     $memo1 = "提现编号" . $id;
     eclsproc($hyusername, $memo, $money, $type, $optime, $memo1, 1);
 }
 if ($glo_post_3_close && $mobile) {
     $bianhao = $hyusername;
     $bankname = $rs["bank"];
     $money = $realprice;
     $remitname = $rs["huzhu"];
     $num = $rs["zhanghao"];
     $gloregsms = $glo_post_3;
     eval("\$gloregsms = \"{$gloregsms}\";");
     $content = $gloregsms;
     $content1 = rawurlencode(trim($content));
     $modtime = time();
     $sql = "insert into {$db_prefix}smsrec(gid,mobile,content,outmsg,sendtime) values('3','" . $mobile . "','" . $content . "','0','" . $modtime . "')";
     $db->query($sql);
     $gid = $db->insert_id();
Ejemplo n.º 4
0
    $optime = time();
    $money = floatval($hg_bv);
    $memo1 = "";
    eclsproc($_SESSION["glo_username"], $memo, $money, $type, $optime, $memo1, '', 4);
    $memo = 101;
    $type = 2;
    $optime = time();
    $money = floatval($hg_bv);
    $memo1 = "";
    eclsproc($_SESSION["glo_username"], $memo, $money, $type, $optime, $memo1, '', 4);
    $memo = 100;
    $type = 1;
    $optime = time();
    $money = floatval($hg_bv);
    $memo1 = "";
    eclsproc($_SESSION["glo_username"], $memo, $money, $type, $optime, $memo1, '', 3);
    echo "<script>\$(document).ready( function() {jAlert('转帐成功', '系统提示','transfer1.php');});</script>";
    exit;
}
$sql = "select * from {$db_prefix}users where username='******'";
$rs22 = $db->get_one($sql);
echo '<script>function resize(){ parent.document.getElementById(\'I2\').style.height = document.body.scrollHeight>300?document.body.scrollHeight:300+"px";}window.onload=resize;window.onresize = resize;</script><SCRIPT type="text/javascript" language="javascript" src="../include/transfer.js"></SCRIPT>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head><body>
<div id="toubu"><span class="tbbiaoti"><strong>回购转申购</strong></span></div>
<form name="form1" method="post" action="?action=transfer">
<br>
Ejemplo n.º 5
0
    }
    if ($rs['type'] == 3) {
        $memo1 = "购物款,订单号" . $id . "支付普通产品";
        $memo = 9;
        $type = 2;
        $optime = $modtime;
        $money = $pay_price;
        eclsproc($username, $memo, $money, $type, $optime, $memo1, 3);
    }
    if ($rs['type'] == 2) {
        $memo1 = "购物款,订单号" . $id . "支付报单产品";
        $memo = 9;
        $type = 2;
        $optime = $modtime;
        $money = $pay_price;
        eclsproc($username, $memo, $money, $type, $optime, $memo1, 2);
    }
    if (!empty($hint)) {
        echo "<script>alert('" . $hint . "');location.href='orderlst.php?pageno={$pageno}';</script>";
        exit;
    }
    $sql2 = "update {$db_prefix}orders set state=1,zftime='{$modtime}' where id='{$id}'";
    $db->query($sql2);
    $sql1 = "update {$db_prefix}users set " . $pricename . "='{$new_price}' where username='******'";
    $db->query($sql1);
    $sql_t2 = "update {$db_prefix}orders1 set state=1,zftime='{$modtime}' where orderid='{$id}'";
    $db->query($sql_t2);
    echo "<script>alert('支付成功');location.href='orderlst.php?pageno={$pageno}';</script>";
    exit;
}
if ($action == "receive") {
Ejemplo n.º 6
0
    $ssss = '';
    if ($zztype == 1) {
        $ssss = ",手续费{$shouxu}";
    }
    $memo = 2;
    $type = 2;
    $optime = time();
    $money = floatval($price);
    $memo1 = "{$priceary[$zztype]}转给{$tousername}" . $ssss;
    eclsproc($_SESSION["glo_username"], $memo, $money, $type, $optime, $memo1, $zztype);
    $memo = 10;
    $type = 1;
    $optime = time();
    $money = floatval($price);
    $memo1 = $_SESSION["glo_username"] . "转入{$priceary[$zztype]}" . $ssss;
    eclsproc(trim($tousername), $memo, $money, $type, $optime, $memo1, $zztype);
    echo "<script>alert('转账成功!');location.href='moneyzz.php';</script>";
    exit;
}
if ($zztype == 1) {
    $pricename = "price";
} else {
    $pricename = "price_repeat";
}
$hint = "";
if (trim($tousername) == "") {
    $hint .= "请输入转入人\\n";
}
if (floatval($price) <= 0) {
    $hint .= "请输入金额\\n";
}
Ejemplo n.º 7
0
        $optime = $modtime;
        $money = $real;
        $memo1 = "第" . $periods . "期奖金";
        $type1 = 4;
        eclsproc($rs["username"], $memo, $money, $type, $optime, $memo1, $type1);
    }
    if ($cxprice > 0) {
        $sql1 = "update {$db_prefix}users set price_repeat=price_repeat+'" . $rs['cxprice'] . "' where username='******' ";
        $db->query($sql1);
        $memo = 4;
        $type = 1;
        $optime = $modtime;
        $money = $rs['cxprice'];
        $type1 = 3;
        $memo1 = "第" . $periods . "期奖金";
        eclsproc($rs["username"], $memo, $money, $type, $optime, $memo1, $type1);
    }
    $sqlu = "select flprice,bdmoney from {$db_prefix}users where username='******'";
    $rsu = $db->get_one($sqlu);
    if ($rsu['flprice'] >= $rsu['bdmoney']) {
        $db->query("update {$db_prefix}users set isout=1 where username='******'");
    }
}
$db->free_result($result);
$log_adminid = $_SESSION["glo_adminid"];
$log_admin = $_SESSION["glo_adminname"];
$log_type = 7;
$log_addtime = time();
$log_ip = getip();
$log_memo = "管理员{$log_admin}结算发放第{$periods}期奖金";
setlogstype($log_adminid, $log_admin, $log_type, $log_addtime, $log_ip, $log_memo);