require($_SERVER["DOCUMENT_ROOT"]."/cicini/cartini.php"); require($cicINI["PATH_LIB"]."/cic8.vars.class.php"); require($cicINI["PATH_LIB"]."/cic8.ini.class.php"); require($cicINI["PATH_LIB"]."/cic8.datafilter.class.php"); require($cicINI["PATH_LIB"]."/cic8.mysqli.class.php"); require($cicINI["PATH_LIB"]."/cic8.category.class.php"); require($cicINI["PATH_WEBCIC"]."/errors.php"); $category = new category($data); if (empty($category->name)) { if (file_exists(GVAR::$VAL["PATH_WEB"]."/_logs/_categoryRedirect.php")) { include(GVAR::$VAL["PATH_WEB"]."/_logs/_categoryRedirect.php"); $redirectULR = ""; $redirectCategory = GVAR::getREQUEST("category"); $redirectHTML = GVAR::getREQUEST("html"); if (!empty($categoryRedirect[$redirectCategory])) $redirectULR = "Location: /".GVAR::$VAL["linkCart"]."/category".GVAR::$VAL["phpext"]."?category=".urlencode($categoryRedirect[$redirectCategory]); if (!empty($categoryRedirect[$redirectHTML])) $redirectULR = "Location: ".GVAR::$VAL["linkCategory"].urlencode($categoryRedirect[$redirectHTML]).GVAR::$VAL["phpext"]; if (!empty($redirectULR)) { header("HTTP/1.1 301 Moved Permanently"); header($redirectULR); exit; } } $htmltitle = GVAR::$VAL["name"]; $metakeywords = strtolower(GVAR::$VAL["name"])." store"; $metadescription = GVAR::$VAL["name"]; $CIC->visitsHistory("Catalog"); } else { $htmltitle = $category->name.GVAR::$VAL["titleDivider"].GVAR::$VAL["name"]; if (!empty($category->HTML_title)) $htmltitle = $category->HTML_title; $metadescription = $category->name; if (!empty($category->description)) $metadescription = preg_replace('/(.*?[?!.](?=\s|$)).*/', '\\1', strip_tags($category->description)); if (!empty($category->HTML_description)) $metadescription = $category->HTML_description; $metakeywords = strtolower($category->name); if (!empty($category->HTML_keywords)) $metakeywords = $category->HTML_keywords; $CIC->visitsHistory($category->name); } $navCategory = GVAR::$VAL["linkCategory"]; if (empty($navCategory)) $navCategory = "/".GVAR::$VAL["linkCart"]."/category".GVAR::$VAL["phpext"]; if (GVAR::$VAL["HOST"] == "filljet.com") $getNavigation = $category->getNavigationNew($category->oid); else $getNavigation = $category->getNavigation($category->oid); $navigation = "Home".GVAR::$VAL["navigationDivider"]."Catalog".GVAR::$VAL["navigationDivider"].$getNavigation; $navigationList = "