" /> " />

'; $nr = 0; if($_GET['cat']){ $vai_ir = mysql_num_rows(mysql_query("SELECT id FROM pantini14 WHERE cat = '$_GET[cat]' AND page = '' LIMIT 1")); if($vai_ir==1) { $pants = mysql_query("SELECT $kode, id, cat FROM pantini14 WHERE cat = '$_GET[cat]' AND $kode != '' AND page = '' LIMIT 30 "); } else { $pants = mysql_query("SELECT $kode, id, cat FROM pantini14 WHERE $kode != '' AND page = '' ORDER BY RAND() LIMIT 30 "); } }else { $pants = mysql_query("SELECT $kode, id, cat FROM pantini14 WHERE $kode != '' AND page = '' ORDER BY RAND() LIMIT 30 "); } while($fuf = mysql_fetch_array($pants)) { $cat_name = mysql_fetch_array(mysql_query("SELECT $kode FROM cats WHERE cat = '$fuf[cat]' AND page = '' LIMIT 1")); $texts = str_replace(",", ",
" , "$fuf[$kode]"); $texts = str_replace(".", ".
" , "$texts"); echo"
$texts "; $kofs = "$cat_name[$kode]"; if($fuf['cat']&&$kofs) { echo"/$cat_name[$kode]/"; } echo"


"; $nr = $nr+1; if($nr==2){echo"
$ad_350_2
";} if($nr==4 ){echo"
$ad_350_2
";} } echo"$description , $keywoords"; ?>
"; } } //// Ja ir atljauja sutit un sanjemt emial jaunumus sanu lapa if($page_settings['twitter']=='yes'){ echo"
"; echo"
"; } //// Ja ir atljauja radit karogus sanu mala if($page_settings['flags']=='yes'){ echo"
"; //////////////////////////////////////////////////// $flags = mysql_query("SELECT img_src, kods, title FROM all_langs WHERE img_src !='' "); while($ff = mysql_fetch_array($flags)){ if($_GET['lang']){ $url_flag = str_replace("lang=$_GET[lang]", "lang=$ff[kods]" , "$majaslapa$url"); $url_flag = "$url_flag"; } else { $url_flag = "$majaslapa/index.html?lang=$ff[kods]"; $error = '0'; if(preg_match("/lang=/i", "$majaslapa$url")) { $url_flag = str_replace("lang=", "lang=$ff[kods]" , "$majaslapa$url"); $url_flag = "$url_flag"; $error = '1'; } } echo"
"; $url_flag =""; } echo"
"; } ////////////////////////////////////// ?>
"; ?>