[TEP-COMMIT] CVS: catalog/catalog/includes column_right.php,1.17,1.18
Harald Ponce de Leon <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tep/catalog/catalog/includes
In directory sc8-pr-cvs1:/tmp/cvs-serv23397
Modified Files:
column_right.php
Log Message:
use the new session class
use the super global variables
Index: column_right.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/column_right.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- column_right.php 9 Jun 2003 22:06:41 -0000 1.17
+++ column_right.php 17 Nov 2003 17:34:05 -0000 1.18
@@ -12,13 +12,13 @@
require(DIR_WS_BOXES . 'shopping_cart.php');
- if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');
+ if (isset($_GET['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');
- if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');
+ if ($osC_Customer->isLoggedOn()) 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'");
+ if (isset($_GET['products_id'])) {
+ if ($osC_Customer->isLoggedOn()) {
+ $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$osC_Customer->id . "' and global_product_notifications = '1'");
$check = tep_db_fetch_array($check_query);
if ($check['count'] > 0) {
include(DIR_WS_BOXES . 'best_sellers.php');
@@ -32,7 +32,7 @@
include(DIR_WS_BOXES . 'best_sellers.php');
}
- if (isset($HTTP_GET_VARS['products_id'])) {
+ if (isset($_GET['products_id'])) {
if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
} else {
include(DIR_WS_BOXES . 'specials.php');
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl