Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,24 +2,14 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| =============================================
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2005 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| ========================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
| Email: matt@invisionpower.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Payment Gateway API: PAYPAL
|
||||
@@ -75,6 +65,9 @@ class class_gw_module EXTENDS class_gateway
|
||||
var $can_do_recurring_billing = 0;
|
||||
var $can_do_upgrades = 0;
|
||||
|
||||
# No post back
|
||||
var $no_postback = 1;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// INIT
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -195,37 +188,40 @@ class class_gw_module EXTENDS class_gateway
|
||||
// INIT
|
||||
//--------------------------------------
|
||||
|
||||
$referers = array( 'www.2checkout.com', '2checkout.com' );
|
||||
$referers = array( 'www.2checkout.com', '2checkout.com', $_SERVER['HTTP_HOST'], str_replace( 'www.', '', $_SERVER['HTTP_HOST'] ) );
|
||||
$got_match = 0;
|
||||
|
||||
//--------------------------------------
|
||||
// Debug...
|
||||
//--------------------------------------
|
||||
|
||||
if ( GW_TEST_MODE_ON )
|
||||
{
|
||||
//if ( GW_TEST_MODE_ON )
|
||||
//{
|
||||
if ( ! is_array( $_POST ) or ! count( $_POST ) )
|
||||
{
|
||||
$_POST = $_GET;
|
||||
}
|
||||
}
|
||||
//}
|
||||
|
||||
//--------------------------------------
|
||||
// Check...
|
||||
//--------------------------------------
|
||||
|
||||
foreach( $referers as $r )
|
||||
if( $this->ipsclass->my_getenv('HTTP_REFERER') )
|
||||
{
|
||||
if ( preg_match( "#https?://$r#i", $_SERVER['HTTP_REFERER'] ) )
|
||||
foreach( $referers as $r )
|
||||
{
|
||||
$got_match = 1;
|
||||
if ( preg_match( "#http(s)?://$r#i", $this->ipsclass->my_getenv('HTTP_REFERER') ) )
|
||||
{
|
||||
$got_match = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $got_match AND ! GW_TEST_MODE_ON )
|
||||
{
|
||||
$this->error = 'not_valid';
|
||||
return array( 'verified' => FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! $got_match AND ! GW_TEST_MODE_ON )
|
||||
{
|
||||
$this->error = 'not_valid';
|
||||
return array( 'verified' => FALSE );
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
@@ -265,6 +261,8 @@ class class_gw_module EXTENDS class_gateway
|
||||
{
|
||||
$this->gateway->error = "";
|
||||
|
||||
$_POST['amount'] = $_POST['amount'] ? $_POST['amount'] : $_POST['total'];
|
||||
|
||||
//--------------------------------------
|
||||
// INIT
|
||||
//--------------------------------------
|
||||
|
||||
Reference in new issue
Block a user