';
// print_r($tmp);
// exit;
$g='';
if($tmp[3])
$g.=($g?'&':'?').substr($tmp[3], 1);
$g=str_replace(array('hanorace&', 'hanorace'), array('',''), $g);
if(strlen($g)==1)
$g='';
// echo $g;
// die($base_href."hanorace".$tmp[2].'.html'.$g.'
'.$_SERVER['REQUEST_URI']);
quit($base_href."hanorace.html".$g, true);
}
elseif(strpos($_SERVER['REQUEST_URI'], 'tricouri.html?femei')){
$search=preg_match('@/(tricouri)(\-.+)?\.html(.*)$@', $_SERVER['REQUEST_URI'], $tmp);
$g='';
if($tmp[3])
$g.=($g?'&':'?').substr($tmp[3], 1);
$g=str_replace(array('femei&', 'femei'), array('',''), $g);
if(strlen($g)==1)
$g='';
// die($base_href."tricouri-dama".$tmp[2].'.html'.$g.'
'.$_SERVER['REQUEST_URI']);
quit($base_href."tricouri-dama".$tmp[2].'.html'.$g, true);
}
if(isset($_GET['hanorace'])){
$_HANORACE=true;
//define('NOFOLLOW', true);
}
if(isset($_GET['femei'])){
$_TRICOURI_DAMA=true;
//define('NOFOLLOW', true);
}
define("CURRENT_PAGE", 'tricouri');
if(preg_match('@(.*)(p([0-9]+))$@', stripToAllowedChars($_GET["categorie"]), $tmp)){
$_GET["categorie"] = substr($tmp[1], 0, -1);
$page = $tmp[3];
//define('NOFOLLOW', true);
}
else
$page = 1;
if (!isset($_GET["pp"]))
$_GET["pp"] = 40;
$rows_per_page = max((int)$_GET["pp"], 0);
//$rows_per_page=40;
if($_GET["sb"]) {
$sort_by = stripToAllowedChars($_GET["sb"]);
if (!in_array($sort_by, array('ordine_cron','ordine','cant','id','nume'))) $sort_by='ordine';
}
elseif($_GET["categorie"])
$sort_by = "ordine";
else
$sort_by = "ordine";
if($_GET["sh"]=='desc')
$sort_how = stripToAllowedChars($_GET["sh"]);
else
$sort_how = "asc";
$arata_m=false;
$arata_f=false;
$arata_h=false;
if(isset($_GET['femei'])){
set_menu_item_selected("femei");
$categ_prefix = lg("femei");
$titlu=lg('Modele de tricouri pentru femei');
$arata_f=true;
}
elseif(isset($_GET['hanorace'])){
set_menu_item_selected("hanorace");
$categ_prefix = lg("hanorace");
$titlu=lg('Modele de hanorace');
$arata_h=true;
}
else{
$_GET['oameni']=true;
set_menu_item_selected("oameni");
$categ_prefix = lg("oameni");
$titlu=lg('Modele de tricouri pentru oameni');
}
$categ_prefix2 = $categ_prefix =''; //le-am facut blank sa nu mai apara ca nu are sens
$cat_ttl = lg("Tricouri");
if ($_GET["categorie"]) {
$get_categ1 = query ("SELECT `id`, `nume`, `titlu_pagina`, `titlu_h1`, `meta_keywords`, `meta_description`, `text`, text_jos
FROM $tbl_cado_categorii
WHERE `tip`='tricou'
AND `nume` regexp '".url2regexp(stripToAllowedChars($_GET['categorie']))."'");
if (mysql_num_rows($get_categ1)) {
$get_categ = mysql_fetch_assoc($get_categ1);
$categ_id = $get_categ["id"];
$use_categ = "-" . url($get_categ["nume"]);
$cat_ttl .= " - " . $get_categ["nume"];
if (strlen($get_categ["titlu_pagina"]))
$cat_ttl = $get_categ["titlu_pagina"];
if (strlen($get_categ["titlu_h1"]))
$categ_prefix2 = $get_categ["titlu_h1"];
$keywords = $get_categ["meta_keywords"];
$description = $get_categ["meta_description"];
}
else
$categ_id = 0;
}
else {
$get_categ1 = query ("SELECT `id`, `nume`, `titlu_pagina`, `titlu_h1`, `meta_keywords`, `meta_description`, `text`, text_jos
FROM $tbl_cado_categorii
WHERE `tip`='tricou'
AND `nume` regexp '".url2regexp("tricouri")."'");
if (mysql_num_rows($get_categ1)) {
$get_categ = mysql_fetch_assoc($get_categ1);
$cat_ttl .= " - " . $get_categ["nume"];
if (strlen($get_categ["titlu_pagina"]))
$cat_ttl = $get_categ["titlu_pagina"];
if (strlen($get_categ["titlu_h1"]))
$categ_prefix2 = $get_categ["titlu_h1"];
$keywords = $get_categ["meta_keywords"];
$description = $get_categ["meta_description"];
}
$categ_id = 0;
}
if ($page>1) $numar_pagina=" - ".lg('Pagina')." $page";
else $numar_pagina='';
print_header($cat_ttl.$numar_pagina,"yes", $keywords, $description.$numar_pagina);
$breadcrumbs[]=['name'=>'Acasa', 'url'=>'index.html'];
$breadcrumbs[]=['name'=>$cat_ttl.$numar_pagina, 'url'=>'tricouri-'.url($get_categ["nume"]).".html"];
print_breadcrumbs($breadcrumbs);
/*
if ($categ_prefix2==lg("Tricouri Haioase Online")) {
?>
![]() |
![]() |