0 ) { $res = mysql_query ( "SELECT * FROM katalog_programiki WHERE id='$gid'" ); $res = mysql_fetch_assoc ( $res ); $GLOBALS['dodatek'] = $res['name']; } function site_main() { global $cmd, $dodatek, $litera, $id, $procrack, $download, $fullvers, $polished, $ppolshed, $crackfor, $fulversp, $cheatspr, $progname, $warezget, $serialfr, $addonsfr, $freevers; if(isset($id)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); gra($id); main_text_close(); } elseif(isset($litera)) { main_title_open(); echo belka('litera', $litera); main_title_close(); main_text_open(); litery(); grynalitere($litera); main_text_close(); main_title_open(); echo 'Najnowsze wpisy w katalogu'; main_title_close(); main_text_open(); ostatnie(); main_text_close(); } elseif(isset($procrack)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); procrack($procrack); main_text_close(); } elseif(isset($download)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); download($download); main_text_close(); } elseif(isset($fullvers)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); fullvers($fullvers); main_text_close(); } elseif(isset($polished)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); polished($polished); main_text_close(); } elseif(isset($ppolshed)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); ppolshed($ppolshed); main_text_close(); } elseif(isset($crackfor)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); crackfor($crackfor); main_text_close(); } elseif(isset($fulversp)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); fulversp($fulversp); main_text_close(); } elseif(isset($cheatspr)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); cheatspr($cheatspr); main_text_close(); } elseif(isset($progname)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); progname($progname); main_text_close(); } elseif(isset($warezget)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); warezget($warezget); main_text_close(); } elseif(isset($serialfr)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); serialfr($serialfr); main_text_close(); } elseif(isset($addonsfr)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); addonsfr($addonsfr); main_text_close(); } elseif(isset($freevers)) { main_title_open(); echo belka('id', $id); main_title_close(); main_text_open(); freevers($freevers); main_text_close(); } else{ main_title_open(); echo belka('litery'); main_title_close(); main_text_open(); litery(); main_text_close(); main_title_open(); echo 'Najnowsze wpisy w katalogu'; main_title_close(); main_text_open(); ostatnie(); main_text_close(); } } #=====================================================# $site_title = 'Katalog'; $meta_info = ''; $th='index'; if(isset($id)) $th = 'index'; include("theme/$theme/no_menu.php"); ?>