[TEP-COMMIT] CVS: catalog/catalog/includes/boxes currencies.php,1.16,1.17
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-serv18802/boxes
Modified Files:
currencies.php
Log Message:
use the new session class
use the super global variables
Index: currencies.php
===================================================================
RCS file: /cvsroot/tep/catalog/catalog/includes/boxes/currencies.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- currencies.php 12 Feb 2003 20:27:31 -0000 1.16
+++ currencies.php 17 Nov 2003 19:47:34 -0000 1.17
@@ -28,9 +28,9 @@
}
$hidden_get_variables = '';
- reset($HTTP_GET_VARS);
- while (list($key, $value) = each($HTTP_GET_VARS)) {
- if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
+ reset($_GET);
+ while (list($key, $value) = each($_GET)) {
+ if ( ($key != 'currency') && ($key != $osC_Session->name) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
@@ -38,7 +38,7 @@
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'),
'align' => 'center',
- 'text' => tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());
+ 'text' => tep_draw_pull_down_menu('currency', $currencies_array, $osC_Session->value('currency'), 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id());
new infoBox($info_box_contents);
?>
-------------------------------------------------------
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