<?php
/*
  $Id: couponfix_applicationtop_bottom.php,v 1.0.0.0 2008/02/05 13:41:11 datazen Exp $

  CRE Loaded, Open Source E-Commerce Solutions
  http://www.creloaded.com

  Copyright (c) 2008 CRE Loaded
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License

*/
global $cc_id;

if (!strstr($_SERVER['HTTP_REFERER'], 'checkout_') && (!defined('MODULE_ADDONS_ONEPAGECHECKOUT_STATUS') || MODULE_ADDONS_ONEPAGECHECKOUT_STATUS == 'False')) { 
  if (isset($_SESSION['cc_id'])) unset($_SESSION['cc_id']);
  $cc_id = '';
}
?>