setDBLink($dbLink); $product->get((int)$_GET['productID']); // Si no esta activo: if($product->active!='Y') { header('Location: '.$GLOBALS["CONF"]["url"]["root"]); exit; } // Esto es para la URL SEO $url_actual = getProductUrl($product->getID(), $product->product); $request = $GLOBALS["CONF"]["url"]["root"].$_SERVER['REQUEST_URI']; if(strstr($_SERVER['REMOTE_ADDR'],"192.168.1.")===FALSE && $url_actual != str_replace('?'.str_replace('productID='.$product->getID().'&&','', $_SERVER['QUERY_STRING']), '', $request )) { Header("HTTP/1.1 301 Moved Permanently"); header("Location: ". $url_actual); exit; } //Getting categories $category = new bayercropscience_productsTreeNode(); $category->setDBLink($dbLink); $category->get($product->nodeID); /* CATEGORY COLOR */ $script .= ""; $bannerProducto = new bannersManager(); $bannerProducto->setDBLink($dbLink); $bannerProducto->retreivePlacementBanners(BANNER_PLACEMENT_PRODUCTOS, "products", $product->getID(), $category->getID()); $htmlTitle = $product->html_title_tag; $htmlDescription = $product->html_description_tag; $htmlKeywords = $product->html_keywords_tag; include("../common/inc.head.php"); ?>
getID()) include("inc.menu.category.php"); ?>

Usted está en: Home >