$pwd = str_replace(' ', '', trim($_POST['pwd'])); $validate = trim($_POST["validate"]); if ($_SESSION['usnamese'] != "") { $arry['id'] = 121; $arry['msg'] = "错误操作,你已经是登录状态"; echo json_encode($arry); exit; } if ($_SESSION['usimga'] != $validate) { $arry['id'] = 122; $arry['msg'] = "验证码错误"; } else { if (Getuname($nick) > 0) { $usxx = uslogin($nick, $pwd); if ($usxx['count'] == 1) { Zbkinsert('user_login_log', array('name' => $nick, 'ip' => $_SERVER['REMOTE_ADDR'], 'logintime' => time())); $_SESSION['usnamese'] = $nick; $_SESSION['usidse'] = $usxx['id']; $_SESSION['shua'] = $usxx['shua']; $_SESSION['us_type'] = $usxx['us_type']; $arry['id'] = 111; $arry['msg'] = "登录成功!"; $arry['info'] = 1; } else { if ($usxx['count'] == -1) { $Pingbi = date('Y-m-d', $usxx['Pingbi']); $arry['id'] = 0; $arry['msg'] = "可能由于您的帐号存在安全问题,帐号被屏蔽到" . $Pingbi . "日"; } else { if ($usxx['count'] == 0) { $arry['id'] = 110;
exit; } if ($txtPrice < $num) { $json['id'] = 0; //成功 $json['msg'] = "本次出价最低是" . $num . '积分,你的出价过低'; // echo json_encode($json); exit; } if ($vType == 2) { $adweek = 10; } else { $adweek = $week; } if (Zbkinsert('ad_paimai', array('name' => $txtTitle, 'title' => $txtTitle, 'ad_date' => $CCtime, 'link' => $linkUrl, 'pic_url' => $picUrl, 'jifen' => $txtPrice, 'status' => 1, 'userid' => $usidse, 'week' => $adweek, 'ad_start_time' => $ad_start_time, 'ad_end_time' => $ad_end_time, 'create_time' => time()))) { $upresult = GetUpdate('user', "jifen=v1task_view.php?id={$txtPrice}", $usidse, '1=1'); if ($vType == 2) { $ad_parow = GetTJRowUSar('id', 'userid', 'jifen', 'ad_paimai', "status=1 and week=10 and ad_start_time={$ad_start_time} and ad_end_time={$ad_end_time} order by id desc limit 1,50"); } else { $ad_parow = GetTJRowUSar('id', 'userid', 'jifen', 'ad_paimai', "status=1 and week={$adweek} and ad_date={$CCtime} order by id desc limit 1,50"); } if (!empty($ad_parow)) { foreach ($ad_parow['userid'] as $ppkey => $ppusid) { GetUpdate('user', "jifen=jifen+" . $ad_parow['jifen'][$ppkey], $ppusid, '1=1'); Zbkupdate('ad_paimai', array('status' => -1), "status=1 and week={$adweek} and id=" . $ad_parow['id'][$ppkey]); } } } if ($upresult) { $json['id'] = 1;
// 收货人邮件 $v_rcvmobile = trim($_POST['v_rcvmobile']); // 收货人手机号 $v_ordername = trim($_POST['v_ordername']); // 订货人姓名 $v_orderaddr = trim($_POST['v_orderaddr']); // 订货人地址 $v_ordertel = trim($_POST['v_ordertel']); // 订货人电话 $v_orderpost = trim($_POST['v_orderpost']); // 订货人邮编 $v_orderemail = trim($_POST['v_orderemail']); // 订货人邮件 $v_ordermobile = trim($_POST['v_ordermobile']); // 订货人手机号 Zbkinsert('alipay_log', array('out_trade_no' => $v_oid, 'money' => $v_amount, 'shouxufei' => money_shouxufei($_POST['v_amount']), 'body' => $body, 'exter_invoke_ip' => $_SERVER['REMOTE_ADDR'], 'ms' => $remark1, 'status' => 0, 'create_time' => time(), 'lasttime' => time(), 'name' => $usname, 'create_user_id' => $usidse)); ?> <!--以下信息为标准的 HTML 格式 + PHP 语言 拼凑而成的 网银在线 支付接口标准演示页面 无需修改--> <form action="https://pay3.chinabank.com.cn/PayGate?encoding=UTF-8" method="POST" name="E_FORM"> <input type="hidden" name="v_mid" value="<?php echo $v_mid; ?> "> <input type="hidden" name="v_oid" value="<?php echo $v_oid; ?> "> <input type="hidden" name="v_amount" value="<?php echo $v_amount;
} else { //失败 $arry['id'] = 0; // 失败 $arry['msg'] = "修改失败,请确定您提交的内容与原来的不同"; // echo json_encode($arry); exit; } } else { //添加 $row_sy = Getlmname('shiyongid,userid', 'user_shiyong', "id={$aid}"); $uid = $row_sy["userid"]; $acid = $row_sy["shiyongid"]; $array = array('uid' => $uid, 'aid' => $aid, 'acid' => $acid, 'star_a' => $star_a, 'star_b' => $star_b, 'star_c' => $star_c, 'star_d' => $star_d, 'rep_1' => $rep_1, 'rep_2' => $rep_2, 'rep_3' => $rep_3); $result = Zbkinsert("free_report", $array); $array_sy['step5_time'] = $CCtimes; $array_sy['status'] = 5; $result_sy = Zbkupdate("user_shiyong", $array_sy, "id={$aid}"); if ($result && $result_sy) { $arry["id"] = 215; $arry["msg"] = "提交报告成功,请耐心等待审核"; //返回信息 echo json_encode($arry); exit; } else { $arry["id"] = 0; $arry["msg"] = "提交稿件失败"; //返回信息 echo json_encode($arry); exit;
$subject = $siteweb['siteName'] . $SKALIPAYAPI; //必填 //付款金额 $total_fee = $_POST['je'] + money_shouxufei($_POST['je']); //必填 //订单描述 $ms = $_POST['ms']; $body = '订单名称:' . $subject . ',' . '订单号:' . $out_trade_no . '付款金额:' . $total_fee; //防钓鱼时间戳 $anti_phishing_key = ""; //若要使用请调用类文件submit中的query_timestamp函数 //客户端的IP地址 $exter_invoke_ip = ''; //非局域网的外网IP地址,如:221.0.0.1 $parameter = array("service" => "create_direct_pay_by_user", "partner" => trim($alipay_config['partner']), "payment_type" => $payment_type, "notify_url" => $notify_url, "return_url" => $return_url, "seller_email" => $seller_email, "out_trade_no" => $out_trade_no, "subject" => $subject, "total_fee" => $total_fee, "body" => $body, "show_url" => $show_url, "anti_phishing_key" => $anti_phishing_key, "exter_invoke_ip" => $exter_invoke_ip, "_input_charset" => trim(strtolower($alipay_config['input_charset']))); Zbkinsert('alipay_log', array('out_trade_no' => $out_trade_no, 'money' => $total_fee, 'shouxufei' => money_shouxufei($_POST['je']), 'body' => $body, 'exter_invoke_ip' => $_SERVER['REMOTE_ADDR'], 'ms' => $ms, 'status' => 0, 'create_time' => time(), 'lasttime' => time(), 'name' => $usname, 'create_user_id' => $usidse)); ?> 收款人:pay@zbc5.com <span style="color: #ff3c00;">←请认准白菜网官方账户,以免财务损失!</span><br> 充值金额:<?php echo $total_fee; ?> 元<br> 订单编号:<?php echo $out_trade_no; ?> <br> <!--<form name="alipaypay" method="post" accept-charset="gbk" action="http://senlinpay.com/api.php"> <input name="uid" value="100000293" type="hidden"> <input name="payno" value="*****@*****.**" type="hidden">
function Jsmoney($name, $money, $mingxi, $dataName, $id = 0, $status = 1, $shouxufei = 0, $dingdanhao = '', $txjs = 1) { if (!function_exists('GetZbk')) { exit; } $time = time(); $Getuname = Getuname($name, 1); if ($Getuname['money_dongjie'] + $money < 0) { $count = 0; return $count; } else { if ($status == 1) { $upsql = "update user set money_dongjie=money_dongjie+{$money},money=money+{$money} where name='{$name}'"; mysql_query($upsql); if (mysql_affected_rows()) { $count = 1; } } else { $upsql = "update user set money_dongjie=money_dongjie+{$money} where name='{$name}'"; mysql_query($upsql); if (mysql_affected_rows()) { $count = 1; } $sbmoney = -$money; $jdmingxi = "提现失败,申请提现时所冻结的金额" . $sbmoney . "元解冻"; } $sql = "select money from user where name='{$name}'"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); $newmoney = $row['money']; if ($txjs == 1) { if ($status == 2) { Zbkinsert('money_log', array('name' => $name, 'money' => $sbmoney, 'create_time' => $time, 'money_mingxi' => $jdmingxi, 'XiaoJi' => $newmoney, 'type' => $dataName, 'lasttime' => $time, 'status' => 1, 'shouxufei' => 0)); } if (Zbkupdate('money_log', array('status' => $status, 'XiaoJi' => $newmoney, 'dingdanhao' => $dingdanhao, 'lasttime' => $time), "id={$id}")) { $count2 = 2; } } else { if (Zbkinsert('money_log', array('name' => $name, 'money' => $money, 'create_time' => $time, 'money_mingxi' => $mingxi, 'XiaoJi' => $newmoney, 'type' => $dataName, 'lasttime' => $time, 'status' => $status, 'shouxufei' => $shouxufei))) { $count2 = 2; } } $count = $count + $count2; return $count; } }
if (!is_numeric($paymoney) || !is_numeric($paynumber)) { $arry['id'] = 0; // $arry['msg'] = "冲值金额及交易单号必须为数字"; echo json_encode($arry); exit; } if (strlen($paynumber) != 28 && strlen($paynumber) != 32) { $arry['id'] = 0; // $arry['msg'] = "支付单号只能是28位或者32位"; echo json_encode($arry); exit; } if (Sitecount('id', 'alipay_gr_log', "out_trade_no='{$paynumber}' and status>0") == 0) { if (Zbkinsert('alipay_gr_log', array('out_trade_no' => $paynumber, 'money' => $paymoney, 'shouxufei' => 0, 'body' => 0, 'exter_invoke_ip' => $_SERVER['REMOTE_ADDR'], 'ms' => 0, 'status' => 1, 'create_time' => time(), 'lasttime' => time(), 'name' => $_SESSION['usnamese'], 'create_user_id' => $_SESSION['usidse']))) { include 'uaj_matchpay.php'; $arry['id'] = 123; // $arry['msg'] = "提交成功,如果你的冲值信息正确,款项将会在一份钟左右到帐。"; echo json_encode($arry); exit; } else { $arry['id'] = 0; // $arry['msg'] = "提交失败"; echo json_encode($arry); exit; } } else { $arry['id'] = 0;
//未登录 $arry['msg'] = "请先登录再进行操作"; } else { $tyxx = glcpxx($suluetu2); if (!empty($suluetu2)) { $proxx = Getlmname('id', $tyxx['table'], "id=" . $tyxx['urlid']); if (!$proxx['id']) { $arry['id'] = 0; $arry['msg'] = "关联产品地址不正确,如果没有本站的关联产品,请留空"; echo json_encode($arry); exit; } } $end_time = $CCtimes + 7 * 24 * 36000; if ($aid == 0) { $count = Zbkinsert('wenzhang', array('title' => $title, 'keyword' => $keyword, 'description' => $description, 'author' => $author, 'source' => $source, 'suluetu2' => $tyxx['table'], 'gift_id' => $tyxx['urlid'], 'content' => $content, 'status' => 0, 'tougao_id' => $goodstype, 'create_user_id' => $_SESSION['usidse'], 'create_time' => time())); if ($count) { $arry['id'] = 215; //提交成功 $arry['msg'] = "发布文章成功"; } else { $arry['id'] = 0; //失败 $arry['msg'] = "发布文章失败"; //写失败原因,哪部分要求不符合。 } } else { $count = Zbkupdate('wenzhang', array('title' => $title, 'keyword' => $keyword, 'description' => $description, 'author' => $author, 'source' => $source, 'tougao_id' => $goodstype, 'suluetu2' => $tyxx['table'], 'gift_id' => $tyxx['urlid'], 'content' => $content), "id={$aid} and status=0 and create_user_id=" . $_SESSION['usidse']); if ($count) { $arry['id'] = 215; //提交成功
$oldstatus = $srow['status']; /* if(Admintype(3)==false){ unset($status); unset($_POST['status']); $status=$oldstatus; } */ $kahao = $_POST['kahao']; $mima = $_POST['mima']; $money = intval($_POST['money']); $admin_user = $_POST['admin_user']; $create_time = $_POST['create_time']; if ($mima != "" && $money != "" && $kahao != "" && is_numeric($money)) { if ($_POST['dopost'] == 'create') { if (Zbkinsert('dianka', array('kahao' => $kahao, 'mima' => $mima, 'money' => $money, 'create_time' => time(), 'status' => 0, 'admin_user' => $_SESSION['shadmin']))) { $updateMessage = '添加成功'; } else { $updateMessage = '添加失败'; } } if ($_POST['dopost'] == 'update') { if (Zbkupdate('dianka', array('kahao' => $kahao, 'mima' => $mima, 'money' => $money, 'admin_user' => $admin_user, 'status' => $status), "id={$xxid}")) { $updateMessage = '修改成功'; } else { $updateMessage = '修改失败'; } } } else { $updateMessage = '面值只能是数值,并且卡号和密码不能为空'; }
if ($_GET['del'] == 1) { $delid = $_GET['delid']; Zbkdel('skadmin_type', "id={$delid}") ? $inresult = "删除成功" : ($inresult = "删除失败"); } } $dopost = $_POST['dopost']; if ($dopost == "submit") { $type_value = intval(trim($_POST['type_value'])); $typename = trim($_POST['name']); $content = $_POST['content']; if (!empty($typename) && $type_value != "") { if (isset($_POST['editid'])) { $editid = $_POST['editid']; $count = Zbkupdate('skadmin_type', array('name' => $typename, 'content' => $content, 'type_value' => $type_value), "id={$editid}"); } else { $count = Zbkinsert('skadmin_type', array('name' => $typename, 'content' => $content, 'type_value' => $type_value)); } if ($count) { $inresult = "操作成功"; } else { $inresult = "操作失败"; } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $siteweb['siteTitle'];
function autoad($endtime, $getweek) { if (time() > $endtime) { $sql = "select b.name as adpsname,c.name as ppusname,c.jifen as usjifen,a.* from ad_paimai as a left join ad_type as b on a.week=b.week left join user as c on a.userid=c.id where a.status=1 and a.week={$getweek}"; $result = mysql_query($sql); $ppcount = mysql_num_rows($result); if ($ppcount > 0) { while ($row = mysql_fetch_assoc($result)) { $adid['id'][] = $row['id']; $adid['title'][] = $row['title']; $adid['link'][] = $row['link']; $adid['pic_url'][] = $row['pic_url']; $adid['week'][] = $row['week']; $adid['ad_start_time'][] = $row['ad_start_time']; $adid['ad_end_time'][] = $row['ad_end_time']; $adid['userid'][] = $row['userid']; $adid['adpsname'][] = $row['adpsname']; $adid['jifen'][] = $row['jifen']; $adid['ppusname'][] = $row['ppusname']; $adid['usjifen'][] = $row['usjifen']; } foreach ($adid['id'] as $key => $idvalue) { if (Zbkupdate('ad_paimai', array('status' => 2), "status=1 and id={$idvalue} and week={$getweek}")) { $sql = "select week from ad where week=" . $adid['week'][$key]; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); Zbkinsert('jifen_log', array('name' => $adid['ppusname'][$key], 'jifen' => -$adid['jifen'][$key], 'XiaoJi' => $adid['usjifen'][$key], 'create_time' => time(), 'jf_mingxi' => '竞拍广告位中标扣除积分')); if ($row['week']) { Zbkupdate('ad', array('status' => 2, 'name' => $adid['adpsname'][$key], 'pp_id' => $adid['id'][$key], 'userid' => $adid['userid'][$key], 'title' => $adid['title'][$key], 'link' => $adid['link'][$key], 'pic_url' => $adid['pic_url'][$key], 'week' => $adid['week'][$key], 'ad_start_time' => $adid['ad_start_time'][$key], 'ad_end_time' => $adid['ad_end_time'][$key]), 'week=' . $adid['week'][$key]); htmlAD('userpp', $getweek, 1); } else { Zbkinsert('ad', array('status' => 2, 'name' => $adid['adpsname'][$key], 'pp_id' => $adid['id'][$key], 'userid' => $adid['userid'][$key], 'title' => $adid['title'][$key], 'link' => $adid['link'][$key], 'pic_url' => $adid['pic_url'][$key], 'week' => $adid['week'][$key], 'ad_start_time' => $adid['ad_start_time'][$key], 'ad_end_time' => $adid['ad_end_time'][$key])); htmlAD('userpp', 'getweek', 1); } } } } } }
if ($dopost == 'create' && Admintype(4)) { $name = trim($_POST['name']); $xingming = trim($_POST['xingming']); $invite = trim($_POST['invite']); $type = trim($_POST['type']); $password = trim($_POST['password']); $xpassword = trim($_POST['xpassword']); if ($password != $xpassword || strlen($password) < 5) { if (strlen($password) < 5) { $updateMessage = '密码不能小于六位'; } else { $updateMessage = '你所输入的新密码与确认的新密码输入不一致'; } } else { $password = md5($password); $count = Zbkinsert('skadmin', array('name' => $name, 'create_time' => $CCtimes, 'update_time' => $CCtimes, 'type' => $type, 'invite' => $invite, 'xingming' => $xingming, 'password' => $password, 'status' => 1)); if ($count) { $updateMessage = "管理员添加成功"; } else { $updateMessage = "管理员添加失败"; } } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $siteweb['siteTitle']; ?>
exit; } else { $sql = "select create_user_id from shop where create_user_id=" . $_SESSION['usidse']; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); if ($row['create_user_id']) { $count = Zbkupdate('shop', array('create_user_id' => $_SESSION['usidse'], 'nick' => $nick, 'shop_title' => $shop_title, 'detail_url' => $detail_url, 'pic_url' => $pic_url, 'description' => $description, 'category_id' => $category_id, 'create_time' => time()), "create_user_id=" . $_SESSION['usidse']); if ($count) { $arry['id'] = 201; $arry['msg'] = "编辑成功"; } else { $arry['id'] = 0; $arry['msg'] = "编辑失败"; } } else { $count = Zbkinsert('shop', array('create_user_id' => $_SESSION['usidse'], 'nick' => $nick, 'shop_title' => $shop_title, 'detail_url' => $detail_url, 'pic_url' => $pic_url, 'description' => $description, 'category_id' => $category_id, 'create_time' => time())); if ($count) { $arry['id'] = 201; $arry['msg'] = "店铺提交成功"; } else { $arry['id'] = 0; $arry['msg'] = "店铺提交失败"; } } } echo json_encode($arry); exit; } if ($do == "upface") { $faceurl = isset($_POST["faceurl"]) ? trim($_POST["faceurl"]) : ""; if ($faceurl != "") {
include './../../include/conn.php'; include './../../include/myfunction.php'; include './../../include/page.class.php'; if (isset($_GET['id'])) { $id = $_GET['id']; } $dopost = $_POST['dopost']; if ($dopost == "fwrite") { if ($_POST['fwrite'] == 1) { $fsum = $_POST['sum']; $fmoney = $_POST['money']; if ($fsum == "" || $fmoney == "") { $updateMessage = '请选择生成张数及面值'; } else { for ($i = 0; $i <= $fsum; $i++) { if (Zbkinsert('dianka', array('kahao' => 'ZBC5.COM-' . date('Ymd') . rand(10000, 99999), 'mima' => 'MM' . date('His') . rand(10000, 99999), 'money' => $fmoney, 'create_time' => time(), 'status' => 0, 'admin_user' => $_SESSION['shadmin']))) { $updateMessage = '生成成功'; } } } } } if ($dopost == "search") { $state = isset($_POST["state"]) ? $_POST["state"] : 0; //活动状态,0为不限 $searchkey = isset($_POST["searchkey"]) ? trim($_POST["searchkey"]) : ""; //搜索类型 $user_name = isset($_POST["user_name"]) ? $_POST["user_name"] : 0; //搜索关键字 $where = ''; if ($state == '') {