📄 home.php
字号:
<?php
/*
+-------------------------------------------
|
| Technology of Wane netware
| ========================================
| Powered by wan-e.net inc
| (c) 2004 wane.net Power Services
| http://www.wan-e.net
| ========================================
| Web: http://www.wan-e.net
|
+-------------------------------------------
| Autohr : wsfuyibing
+-------------------------------------------
*/
if ($USER_CFG['MONEY_LEFT'] < $user_spend)
{
$function->clickback($LANG_PAY['NOTENOUGH_MONEY']);
}
else
{
$orderided = $function->showtime("Ymd").'-'.$wane_uid.'-'.$function->showtime("His");
foreach ($sps as $spid)
{
$uids = ${'uids'.$spid};
$usernames = ${'usernames'.$spid};
$sid = ${'sid'.$spid};
$spname = ${'spname'.$spid};
$htmlroot = ${'htmlroot'.$spid};
$spcount = ${'count'.$spid};
$price = ${'price'.$spid};
$spend = ${'spend'.$spid};
$credits_take = $spend*$credits_extent;
$db->query("UPDATE {$tablepre}member SET credits=credits+'$credits_take',money_left=money_left+'-$spend',buy=buy+'1',buys=buys+'1' WHERE uid='$wane_uid'");
$function->log_credits($wane_uid,$wane_user,$spid,$spname,$htmlroot,'home_pay|'.$orderided,$credits_take);
$db->query("UPDATE {$tablepre}member SET sales=sales+'1' WHERE uid='$uids'");
$sql="insert into {$tablepre}orders
(orderid,uid,uids,sid,spname,htmlroot,payway,spcount,sendoutway,sendoutspend,price,spend,truename,phone,address,zipcode,email,qq,icq,msn,yahoo,context,addtime,operate)
Values
('$orderided','$wane_uid','$uids','$spid','$spname','$htmlroot','home','$spcount','$sendoutway','$sendoutspend','$price','$spend','$truename','$phone','$address',$zipcode,'$email','$qq','$icq','$msn','$yahoo','$context','$timestamp','merchant')";
$db->query($sql);
$orderid = $db->query_id();
$function->log_merchant($orderided,$spid,$spname,$htmlroot,$uids,$usernames,'add_order|home|'.$orderided,$spend);
$db->query("update {$tablepre}shopcar set orderid='$orderided' where wane_hash='$wane_hash' and sid='$spid'");
}
$sendoutspend_credits = $sendoutspend*$credits_extent;
$db->query("UPDATE {$tablepre}member SET credits=credits+'$sendoutspend_credits',money_left=money_left+'-$sendoutspend' WHERE uid='$wane_uid'");
$function->log_credits($wane_uid,$wane_user,'','','','sendout|'.$orderided,$sendoutspend_credits);
$function->log_merchant($orderided,$spid,$spname,$htmlroot,$uids,$usernames,'add_order|home|'.$orderided,$spend);
$function->showmsg($default_url.'index.php?action=memcp&type=order',$LANG_PAY['PAYB_SUCCESS']);
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -