[TEP-COMMIT] [CVS catalog] call $_SERVER['PHP_SELF'] instead

anonymous-OfajU3CKLf1/[email protected] 13 Apr 2004 08:00:28 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in catalog/catalog/includes/modules on MAIN

downloads.php +2 -2 1.4 -> 1.5

product_listing.php +1 -1 1.46 -> 1.47

+3 -3

2 modified files

call $_SERVER['PHP_SELF'] instead

----------

catalog /catalog /includes /modules

downloads.php 1.4 -> 1.5

diff -u -r1.4 -r1.5
--- downloads.php 2003/11/17 20:11:44 1.4
+++ downloads.php 2004/04/13 08:00:26 1.5
@@ -12,7 +12,7 @@

?>
<!-- downloads //-->
<?php

- if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {

+ if (!strstr($_SERVER['PHP_SELF'], FILENAME_ACCOUNT_HISTORY_INFO)) {

// Get last order id for checkout_success
$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$osC_Customer->id . "' order by orders_id desc limit 1");
$orders = tep_db_fetch_array($orders_query);

@@ -69,7 +69,7 @@

</table></td>
</tr>
<?php

- if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {

+ if (!strstr($_SERVER['PHP_SELF'], FILENAME_ACCOUNT_HISTORY_INFO)) {

?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

----------

catalog /catalog /includes /modules

product_listing.php 1.46 -> 1.47

diff -u -r1.46 -r1.47
--- product_listing.php 2003/12/18 23:52:15 1.46
+++ product_listing.php 2004/04/13 08:00:26 1.47
@@ -130,7 +130,7 @@

break;
case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';

- $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';

+ $lc_text = '<a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>&nbsp;';

break;
}

CVSspam 0.2.8

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click