2co.php

来自「网络硬盘_支持1GB文件上传和续传_无错版」· PHP 代码 · 共 76 行

PHP
76
字号
<?
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 + =
减小字号Ctrl + -
显示快捷键?