| [ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: account_history_info.php 3 2006-05-27 04:59:07Z user $ 4 5 osCMax Power E-Commerce 6 http://oscdox.com 7 8 Copyright 2006 osCMax 9 10 Released under the GNU General Public License 11 */ 12 13 // Most of this file is changed or moved to BTS - Basic Template System - format. 14 // For adding in contribution or modification - parts of this file has been moved to: catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). 15 // catalog\templates\fallback\contents\<filename>.tpl.php as a default (sub 'fallback' with your current template to see if there is a template specife change). 16 // (Sub 'fallback' with your current template to see if there is a template specific file.) 17 18 require ('includes/application_top.php'); 19 20 if (!tep_session_is_registered('customer_id')) { 21 $navigation->set_snapshot(); 22 tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); 23 } 24 25 if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) { 26 tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); 27 } 28 29 $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'"); 30 $customer_info = tep_db_fetch_array($customer_info_query); 31 if ($customer_info['customers_id'] != $customer_id) { 32 tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); 33 } 34 35 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_HISTORY_INFO); 36 37 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); 38 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')); 39 $breadcrumb->add(sprintf(NAVBAR_TITLE_3, $HTTP_GET_VARS['order_id']), tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL')); 40 41 require (DIR_WS_CLASSES . 'order.php'); 42 $order = new order($HTTP_GET_VARS['order_id']); 43 44 $content = CONTENT_ACCOUNT_HISTORY_INFO; 45 46 include (bts_select('main', $content_template)); // BTSv1.5 47 48 require (DIR_WS_INCLUDES . 'application_bottom.php'); 49 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |