\n"; $meta .= ""; } else $error = true; include "_top.php"; function ShowParts($cid) { global $cat,$TMPL; $r=mysql_query("SELECT name,cid,count FROM cat WHERE parent='$cid'") or die(mysql_error()); $num=0; $cnt=mysql_num_rows($r); if ($cnt==0) return; print $TMPL["partstop"]; for ($i=0;$i<$cnt;$i++) { $num++; if ($num==1) print $TMPL["partsdelimtop"]; $template=$TMPL["partsbit"]; $template=str_replace("%CTITLE",mysql_result($r,$i,0),$template); $template=str_replace("%CID",mysql_result($r,$i,1),$template); $template=str_replace("%CCOUNT",mysql_result($r,$i,2),$template); print $template; if($num==$cat["rows"]) { print $TMPL["partsdelimbottom"]; $num=0; } } print $TMPL["partsbottom"]; } $template=$TMPL["bmenu"]; $template=str_replace("%MODERATORSTEXT",$LANG["moderators"],$template); $template=str_replace("%ADDLINKTEXT",$LANG["addlink"],$template); $template=str_replace("%MAINTEXT",$LANG["main"],$template); print $template; $template=$TMPL["brokenscript"]; $template=str_replace("%YESTEXT",$LANG["yes"],$template); $template=str_replace("%NOTEXT",$LANG["no"],$template); $template=str_replace("%BROKENSURETEXT",$LANG["brokensure"],$template); print $template; $sform=$TMPL["searchform"]; $sform=str_replace("%SEARCHTEXT",$LANG["search"],$sform); $sform=str_replace("%QUERYTEXT",$q,$sform); print $sform; if($error == false) Show(); else echo "
Îøèáêà!

"; $template=$TMPL["catname"]; $template=str_replace("%MAINTEXT",$CATNAME,$template); $template=str_replace("%OTHERTEXT",$l,$template); print $template; ShowParts($c); function Show() { global $ar,$TMPL,$best,$admin,$LANG; echo ""; } print base64_decode($COPY); include "_bottom.php"; ?>