<?php
// --------------------------------------------------------------------------
//
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2010, All Rights Reserved.
// E-mail: hide@address.com
//
// All forms of reproduction, including, but not limited to, internet posting,
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds.
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
//
// --------------------------------------------------------------------------
require './inc/application.php';
if(empty($_REQUEST)) die('Access Denied');
/*
$s = '';
foreach ($_REQUEST as $k=>$v) {
$s.="'$k'=>'$v',\n";
}
hwSendMail(ADMIN_EMAIL, ADMIN_EMAIL, "IPN Vars", $s);
*/
$HW_PAY = $O_HW->A_OPT['HW_PAY'];
$hw_gate = (string)$_REQUEST['hw_gate'];
if(!$hw_gate || !isset($HW_PAY[$hw_gate])) $hw_gate = 'worldpay'; // key($HW_PAY);
if(!file_exists(SITE_PATH.'inc/pay_modules/'.$hw_gate.'.php')) die('No payment module: '.html_esc($hw_gate));
require SITE_PATH.'inc/class.payment.php';
require SITE_PATH.'inc/pay_modules/'.$hw_gate.'.php';
$cl_name = 'HawkPayment_'.$hw_gate;
$o_pay = new $cl_name;
$o_pay->Process();
?>