📄 egold.php
字号:
<?
include "../ipn.class.php";
include "inc/eg.inc.php";
include "../../includes/inc.php";
/**
* iniate the class
*/
$checker = new EG_Validater($db);
$ipn = new ipn_class('EG');
$ipn->TestMode=$checker->TestMode;
$ipn->EmailTo=$user->setting[adminemail];
$ipn->BindDB(&$db);
$ipn->MD5AccountPassword=$checker->MD5AccountPassword;
$Var=$ipn->RecieveData();
$result=$ipn->CheckDataIntegrity();
/**
* Begin to check...
*/
if($result==false) $ipn->SetError('Hack attempted!');
$checker->LoadServer($ipn);
if($ipn->PayeeAccount!=$checker->GetPayeeAcount())
{
$ipn->SetError('Error PayeeAccount!'.$ipn->PayeeAccount.':'.$checker->GetPayeeAcount());
}
if($ipn->PAYMENT_METAL_ID!='1')
{
$ipn->SetError('Error PAYMENT_METAL_ID!');
}
if($ipn->PAYMENT_UNITS!='1')
{
$ipn->SetError('Error PAYMENT_UNITS!');
}
if($ipn->Amount!=$checker->GetAmount())
{
$ipn->SetError('Error PAYMENT_AMOUNT!'.$ipn->Amount.':'.$checker->GetAmount());
}
/**
* check the TXNID is unique
*/
$TXNID=$ipn->GetTXNID();
if(!$ipn->IsUniqueTXNID())
{
$ipn->SetError('Repeat Transaction ID:'.$TXNID);
$ipn->EmailErrors();
die;//stop to process
}
$ipn->EmailErrors();
if($ipn->Errors) exit;
/**
* record into database!
*/
$ipn->RecordIPN();
/**
* OK
*/
$checker->ProcessPayment($ipn);
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -