Location: PHPKode > projects > Esvon Personals > esvon-personals/inc/pages/order_ipn.php
<?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/
//
// --------------------------------------------------------------------------

if(!defined('SITE_PATH')) die('Access Denied');

ShowOrderStatus();

function ShowOrderStatus(){

  $pay_id = (int)$_GET['pay_id'];
  $userid = (int)$_GET['uid'];
  
  $pay_info = false;
  if($pay_id){
    global $db;
    $pay_info = $db->one_assoc('SELECT * FROM '.TBL_PAY_LOG.' WHERE id='.$pay_id.' AND userid='.$userid);
    if($pay_info){
      hwLoginByUserID( hwSessionGetVar('userid') );
      $pay_info['id'] = $pay_info['link_id'] ? $pay_info['link_id'] : $pay_info['userid'];
      $pay_info['CURR_SIGN'] = CURR_SIGN;
      EvalAdvTpl(TPL_PATH.'order_ipn_paid.htm',$pay_info,1);
      return;
    }
  }
  
  $tpl_v = array();
  $tpl_v['err_msg'] = htmlspecialchars($_GET['err_msg']);
  EvalAdvTpl(TPL_PATH.'order_ipn_declined.htm', $tpl_v, 1);

}

?>
Return current item: Esvon Personals