rendered paste body <?PHP
if(!strstr($_SERVER['PHP_SELF'], 'index')) {
if(!strstr($_SERVER['PHP_SELF'], 'browse_products.php') && !strstr($_SERVER['PHP_SELF'], 'more_information.php')) {
$CurrentPages_PathInfo = pathinfo($_SERVER['PHP_SELF']);
$CurrentPages_Extension = '.'.$CurrentPages_PathInfo['extension'];
$CurrentPages_DisplayName = $_SERVER['PHP_SELF'];
$CurrentPages_DisplayName = str_replace('/', '', $CurrentPages_DisplayName);
$CurrentPages_DisplayName = str_replace('_', ' ', $CurrentPages_DisplayName);
$CurrentPages_DisplayName = str_replace($CurrentPages_Extension, '', $CurrentPages_DisplayName);
$CurrentPages_DisplayName = str_replace('modules/custom/', '', $CurrentPages_DisplayName);
$CurrentPages_DisplayName = ucwords($CurrentPages_DisplayName);
echo "<img src='".$GLOBALS['config']['http_tpl_image']."/default[1].gif' /><a href='".$GLOBALS['config']['http_web'].$_SERVER['PHP_SELF']."'>";
echo $CurrentPages_DisplayName;
echo "</a>";
}
if(function_exists('x')) {
if(x("product_id")) {
$category_split = split(",", x("product_id"));
if($category_split[0] != '') { $breadcrumbs_product_id = $category_split[0]; }
if($category_split[1] != '') { $breadcrumbs_category_id = $category_split[1]; }
}else if(x("category_id")) { $breadcrumbs_category_id = x("category_id"); }
if($breadcrumbs_product_id) {
echo "<img src='".$GLOBALS['config']['http_tpl_image']."/default[1].gif' border='0' />";
echo "<a href='".$GLOBALS['config']['http_web']."/browse_products.php'>";
echo $GLOBALS['w']['more_information']['all_products'];
echo "</a>";
}
if($breadcrumbs_category_id) {
$breadcrumbs_category = get_category_details($breadcrumbs_category_id);
echo "<img src='".$GLOBALS['config']['http_tpl_image']."/default[1].gif' border='0' />";
if(!isset($breadcrumbs_product_id)) { echo "<span class='text_red_bold'>" ; }
if(isset($breadcrumbs_product_id)) { echo "<a href='".$GLOBALS['config']['http_web']."/browse_products.php?category_id=".$breadcrumbs_category_id."'>"; }
echo sx($breadcrumbs_category['name']);
if(isset($breadcrumbs_product_id)) { echo "</a>"; }
if(!isset($breadcrumbs_product_id)) { echo "</span>" ; }
}
if($breadcrumbs_product_id) {
echo "<img src='".$GLOBALS['config']['http_tpl_image']."/default[1].gif' border='0' />";
echo "<span class='text_red_bold'>".sx($GLOBALS['product']['product_name'])."</span>";
}
}
}
?>