[ Index ]
 

Code source de osCommerce 2.2ms2-060817

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/catalog/includes/ -> column_right.php (source)

   1  <?php
   2  /*
   3    $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $
   4  
   5    osCommerce, Open Source E-Commerce Solutions
   6    http://www.oscommerce.com
   7  
   8    Copyright (c) 2003 osCommerce
   9  
  10    Released under the GNU General Public License
  11  */
  12  
  13    require(DIR_WS_BOXES . 'shopping_cart.php');
  14  
  15    if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');
  16  
  17    if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');
  18  
  19    if (isset($HTTP_GET_VARS['products_id'])) {
  20      if (tep_session_is_registered('customer_id')) {
  21        $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'");
  22        $check = tep_db_fetch_array($check_query);
  23        if ($check['count'] > 0) {
  24          include(DIR_WS_BOXES . 'best_sellers.php');
  25        } else {
  26          include(DIR_WS_BOXES . 'product_notifications.php');
  27        }
  28      } else {
  29        include(DIR_WS_BOXES . 'product_notifications.php');
  30      }
  31    } else {
  32      include(DIR_WS_BOXES . 'best_sellers.php');
  33    }
  34  
  35    if (isset($HTTP_GET_VARS['products_id'])) {
  36      if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
  37    } else {
  38      include(DIR_WS_BOXES . 'specials.php');
  39    }
  40  
  41    require(DIR_WS_BOXES . 'reviews.php');
  42  
  43    if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
  44      include(DIR_WS_BOXES . 'languages.php');
  45      include(DIR_WS_BOXES . 'currencies.php');
  46    }
  47  ?>


Généré le : Mon Nov 26 19:48:25 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics