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

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

column_right.php +2 -2 1.18 -> 1.19

call $_SERVER['PHP_SELF'] instead

----------

catalog /catalog /includes

column_right.php 1.18 -> 1.19

diff -u -r1.18 -r1.19
--- column_right.php 2003/11/17 17:34:05 1.18
+++ column_right.php 2004/04/13 08:01:04 1.19
@@ -33,14 +33,14 @@

}

if (isset($_GET['products_id'])) {

- if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

+ if (basename($_SERVER['PHP_SELF']) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {
include(DIR_WS_BOXES . 'specials.php');
}

require(DIR_WS_BOXES . 'reviews.php');

- if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

+ if (substr(basename($_SERVER['PHP_SELF']), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');
include(DIR_WS_BOXES . 'currencies.php');
}

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