0) { if(count($PAGE['sub-cattegory'])>0) { reset($PAGE['sub-cattegory']); ksort($PAGE['sub-cattegory']); while(list($k,$w)=each($PAGE['sub-cattegory'])) { if($w['id']=="$i5") { $METATITLE .=" · "; $METATITLE .=$w['title']; break 1; } } unset($k); unset($w); } } } # tytul strony we flashu # if($PAGE['format']=="INDEX") { $PAGETITLE=$T['001']; } else { if($i5>0) { if(count($PAGE['sub-cattegory'])>0) { reset($PAGE['sub-cattegory']); ksort($PAGE['sub-cattegory']); while(list($k,$w)=each($PAGE['sub-cattegory'])) { if($w['id']=="$i5") { $PAGETITLE=$w['title']; break 1; } } unset($k); unset($w); } } if(!isset($PAGETITLE)) { $PAGETITLE=$PAGE['title']; } } $PAGETITLE=iconv("iso-8859-2", "utf-8", "$PAGETITLE"); # meta tagi, naglowek i tytul strony # $html .=stronaLayout(array("meta", "$METATITLE", stronaSystem(array("slowa", "meta")))); $html .=stronaLayout(array("head")); $html .=stronaLayout(array("tytuly", "$PAGETITLE", "808", "58")); # formaty strony # switch($PAGE['format']) { case "INDEX": # strona glowna # include("_html_index/01-index.html"); break; case "NORMAL": # kazda inna strona # include("_html_index/02-normal-column.html"); include("_html_index/02-normal-content.html"); break; case "404": # strona bledu # include("_html_index/03-404.html"); break; } # stopka strony i koniec znacznikow html # $html .=stronaLayout(array("foot", $SETTINGS['mysql'], $SETTINGS['loading'])); $html .=stronaLayout(array("end")); unset($PAGE); echo "$html"; ?>