<?php
/*osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce  
	Freeway eCommerce 
	http://www.openfreeway.org
	Copyright (c) 2007 ZacWare
	
	osConcert, Online Seat Booking 
  	http://www.osconcert.com

  	Copyright (c) 2009-2013 osConcert

	Released under the GNU   General Public License
*/  
// Set flag that this is a parent file
define( '_FEXEC', 1 );
	require('includes/application_top.php'); 
		
		//When we require an account to be approved let's empty their cart until they are approved.
		//$check_customer_query = tep_db_query("select a.*,c.* from " . TABLE_CUSTOMERS ." c, " . TABLE_ADDRESS_BOOK . " a  where c.customers_id='" . $FSESSION->customer_id . "' and c.customers_id=a.customers_id");
//      $check_customer = tep_db_fetch_array($check_customer_query);
//	  if($check_customer["is_blocked"] == 'Y'){
//		tep_db_query("delete from " . TABLE_CUSTOMERS_TEMP_BASKET . " WHERE customers_id='" . $FSESSION->customer_id . "'");
// 		tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " WHERE customers_id='" . $FSESSION->customer_id . "'");
//		}
 
  require(DIR_WS_LANGUAGES . $FSESSION->language . '/' . FILENAME_ACCOUNT);  
  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); 
   $content = CONTENT_ACCOUNT;  $javascript = $content . '.js'; 
   //require(DIR_WS_INCLUDES.'http.js');
    require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);  
	require(DIR_WS_INCLUDES . 'application_bottom.php');
	?>
	
