⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2co.php

📁 网络硬盘_支持1GB文件上传和续传_无错版
💻 PHP
字号:
<?
include "../../includes/inc.php";
include "../ipn.class.php";
include "inc/2co.inc.php";

/**
* iniate the class
*/
$checker = new CO_Validater($db);
$ipn = new ipn_class('2CO');

$ipn->TestMode=$checker->TestMode;
$ipn->EmailTo=$user->config[admin_email];
$ipn->MD5AccountPassword=$checker->MD5AccountPassword;

$ipn->BindDB($db);

$Var=$ipn->RecieveData();
$result=$ipn->CheckDataIntegrity();
/**
* Begin to check...
*/
if($result==false)  $ipn->SetError('Hack attempted!');

$checker->LoadServer($ipn);

/**
* checking the payment mode
*/
if($ipn->TestMode&&!$checker->TestMode)
{
    $ipn->SetError('Error Payment Mode: DEMO mode is dsiabeld!');
}
/**
* checking the PayeeAccount
*/
if($checker->GetPayeeAcount()!=$ipn->PayeeAccount)
{
    $ipn->SetError('Error PayeeAccount:'.$ipn->PayeeAccount.':'.$checker->GetPayeeAcount());
}
/**
* checking the common payment
*/
if($ipn->Amount!=$checker->GetAmount())
{
    $ipn->SetError('Error Amount:'.$checker->GetAmount());
}

//$ipn->GetVar('credit_card_processed')!='K'
if($ipn->GetVar('x_2checked')
   &&$ipn->GetVar('x_2checked')=='Y')
{
    //$ipn->NotifyClient('other');
    //exit; //stop here
}

/**
* check the TXNID is unique
*/
$TXNID=$ipn->GetTXNID();
if(!$ipn->IsUniqueTXNID())
{
    $ipn->SetError('Repeat Transaction ID:'.$TXNID);
    $ipn->EmailErrors();
    die;//stop to process
}

if($ipn->Errors) {$ipn->EmailErrors(); exit;}

$ipn->RecordIPN();

$checker->ProcessWebAccept($ipn);

do_redirect($baseWeb.'/members.php','','header')
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -