[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path Zen Cart 源代码 order_history.php
<?php
/**
* order_history sidebox - if enabled, shows customers' most recent orders
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: order_history.php 4822 2006-10-23 11:11:36Z drbyte $
*/
if (isset($_SESSION['customer_id']) && (int)$_SESSION['customer_id'] != 0) {
// retreive the last x products purchased
$orders_history_query = "select distinct op.products_id
from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_PRODUCTS . " p
where o.customers_id = '" . (int)$_SESSION['customer_id'] . "'
and o.orders_id = op.orders_id
and op.products_id = p.products_id
and p.products_status = '1'
group by products_id
order by o.date_purchased desc
limit " . MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX;