[TEP-COMMIT] CVS: catalog/catalog/includes/boxes shopping_cart.php,1.18,1.19
Harald Ponce de Leon <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tep/catalog/catalog/includes/boxes
In directory sc8-pr-cvs1:/tmp/cvs-serv22949/boxes
Modified Files:
shopping_cart.php
Log Message:
use the new session class
Index: shopping_cart.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/boxes/shopping_cart.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- shopping_cart.php 10 Feb 2003 22:31:06 -0000 1.18
+++ shopping_cart.php 17 Nov 2003 20:05:25 -0000 1.19
@@ -26,7 +26,7 @@
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';
- if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
+ if (($osC_Session->exists('new_products_id_in_cart')) && ($osC_Session->value('new_products_id_in_cart') == $products[$i]['id'])) {
$cart_contents_string .= '<span class="newItemInCart">';
} else {
$cart_contents_string .= '<span class="infoBoxContents">';
@@ -34,7 +34,7 @@
$cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';
- if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
+ if (($osC_Session->exists('new_products_id_in_cart')) && ($osC_Session->value('new_products_id_in_cart') == $products[$i]['id'])) {
$cart_contents_string .= '<span class="newItemInCart">';
} else {
$cart_contents_string .= '<span class="infoBoxContents">';
@@ -42,8 +42,8 @@
$cart_contents_string .= $products[$i]['name'] . '</span></a></td></tr>';
- if ((tep_session_is_registered('new_products_id_in_cart')) && ($new_products_id_in_cart == $products[$i]['id'])) {
- tep_session_unregister('new_products_id_in_cart');
+ if (($osC_Session->exists('new_products_id_in_cart')) && ($osC_Session->value('new_products_id_in_cart') == $products[$i]['id'])) {
+ $osC_Session->remove('new_products_id_in_cart');
}
}
$cart_contents_string .= '</table>';
-------------------------------------------------------
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