📄 2checkout.php
字号:
<?//////////////////////////// COPYRIGHT NOTICE ////////////////////////////////////// This script is part of BosClassifieds, a software application by BosDev, Inc //// Use of any kind of part or all of this script or modification of this //// script requires a license from BosDev, Inc. Use or modification of //// this script without a license constitutes Software Piracy and will //// result in legal action from BosDev, Inc. All rights reserved. //// http://www.bosdev.com sales@bosdev.com //// //// BosClassifieds Copyright 2004, BosDev, Inc. ////////////////////////////////////////////////////////////////////////////////////function paymentForm($adArray,$fee) { global $SystemOptions,$Languages,$insUrl; $invoiceNum = time(); $form = <<<ENDFORM <form method="post" action="https://www.2checkout.com/2co/buyer/purchase"> <input type="hidden" name="x_description" value="{$Languages['payment']['paymenttitle']} {$insUrl}"> <input type="hidden" name="x_login" value="{$SystemOptions['payment_info_1']}"> <input type="hidden" name="x_amount" value="$fee"> <input type="hidden" name="x_invoice_num" value="$invoiceNum"> <input type="hidden" name="c_prod_1" value="{$Languages['payment']['paymenttitle']} {$insUrl}"> <input type="hidden" name="c_name_1" value="{$Languages['payment']['paymenttitle']} {$insUrl}"> <input type="hidden" name="c_description_1" value="{$Languages['payment']['paymenttitle']} {$insUrl}"> <input type="hidden" name="c_price_1" value="$fee"> <input type="hidden" name="id_type" value="1"> <input type="hidden" name="x_receipt_link_url" value="{$insUrl}payment.php?ad=$adArray"> <div align="center"><input type="submit" value="{$Languages['payment']['sendpayment']}"></div> </form>ENDFORM; return $form; }function getPaymentResult($vars) { $response_code = $vars['x_response_code']; if($response_code == 1) { $status[1] = 1; } else { $status[1] = 0; } return $status; }?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -