????

Your IP : 216.73.216.152


Current Path : /home2/morganrand/public_html/ecommerce/os/catalog/includes/
Upload File :
Current File : /home2/morganrand/public_html/ecommerce/os/catalog/includes/column_right.php

<?php
/*
  $Id: column_right.php,v 1.2 2004/08/25 22:40:02 akhan Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
  if (SHOW_CART_RC == 'true') require(DIR_WS_BOXES . 'shopping_cart.php');

  if ( (isset($HTTP_GET_VARS['products_id'])) && (SHOW_MANUFACTURER_RC == 'true')) include(DIR_WS_BOXES . 'manufacturer_info.php');

  if ( (tep_session_is_registered('customer_id')) && (SHOW_ORDER_HISTORY_RC == 'true')) include(DIR_WS_BOXES . 'order_history.php');

  if (isset($HTTP_GET_VARS['products_id'])) {
    if (tep_session_is_registered('customer_id')) {
      $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");
      $check = tep_db_fetch_array($check_query);
      if ($check['count'] > 0) {
        if (SHOW_BESTSELLERS_RC == 'true') include(DIR_WS_BOXES . 'best_sellers.php');
      } else {
        if (SHOW_NOTIFICATIONS_RC == 'true') include(DIR_WS_BOXES . 'product_notifications.php');
      }
    } else {
      if (SHOW_NOTIFICATIONS_RC == 'true') include(DIR_WS_BOXES . 'product_notifications.php');
    }
  } else {
    if (SHOW_BESTSELLERS_RC == 'true') include(DIR_WS_BOXES . 'best_sellers.php');
  }

  if (isset($HTTP_GET_VARS['products_id'])) {
    if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
  } else {
    if (SHOW_SPECIALS_RC == 'true') include(DIR_WS_BOXES . 'specials.php');
  }

  if (SHOW_REVIEWS_RC == 'true') require(DIR_WS_BOXES . 'reviews.php');

  if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
    if (SHOW_LANGUAGES_RC == 'true') include(DIR_WS_BOXES . 'languages.php');
    if (SHOW_CURRENCY_RC == 'true') include(DIR_WS_BOXES . 'currencies.php');
  }
?>