srand(time()); require "connect.php3"; require_once("diskuse/tblsetup.php"); require_once("reg.php"); // tady nastavime cookie require_once("user_auth.php"); // tady overi cookie a nastavi podle ni $user_id a $UI update_cookie(); auth(FALSE); unset($clanek); unset($druh); unset($limit); unset($subdruh); if (!empty($_REQUEST['clanek'])) $clanek=intval($_REQUEST['clanek']); if (!empty($_REQUEST['druh'])) $druh=intval($_REQUEST['druh']); if (!empty($_REQUEST['subdruh'])) $subdruh=intval($_REQUEST['subdruh']); if (!empty($_REQUEST['limit'])) $limit=intval($_REQUEST['limit']); if(!empty($druh) && !empty($clanek)) { $druh = intval($druh); $clanek = intval($clanek); $_qw = mysql_query(mysql_real_escape_string("select * from clanek where id=$clanek and datum<=NOW()")); if ($_qw && MySQL_Num_Rows($_qw)) { $_res = mysql_fetch_array($_qw); $titul = "$_res[nazev] (MangaCZ)"; $NSA=0; } else { $titul="Oficiální stránky klubu MangaCZ"; $NSA=1; } } else { $titul = "Oficiální stránky klubu MangaCZ"; } setcookie("MangaA", rand(), time()+86400*365*2); header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); if (!isset($_COOKIE["MangaB"])) { setcookie("MangaB", 0, time()+86400+365*2); header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"'); } ?>
if (empty($druh)) {require "clanek_telo.php3";} // hlavni stranka
else
{
switch ($druh)
{
case 1: // recenze
require "recenze_index.php3";
break;
case 2: // klub
if(!$clanek) include "klub.php3";
require "clanek_telo.php3";
break;
case 3: // japonsko
if(!$clanek) {
require "japonsko_jinde.php3";
}
require "clanek_telo.php3";
break;
case 4: // fanart
print "";
require "clanek_telo.php3";
break;
case 5:
require "autori.php";
break;
case 101:
case 102:
case 103:
require "clanek_telo.php3";
break;
case 500:
require "gallery_upload.php";
//echo "Nahravani obrazku je docasne pozastaveno. \n"; break; case 501: require "gallery_rules.php"; break; case 502: require "gallery_status.php"; break; /* case 505: require "gallery_upload.roger.php"; break;*/ case 520: require "contest_vote.php"; break; case 601: require "posta.php"; break; case 602: require "soutez.php"; break; case 603: require "anketa_res.php"; break; case 604: require "akt_user.php"; break; case 605: require "user_info.php"; break; // feedback dotazniky case 701: require "gen_form.php"; break; case 702: require "save_form.php"; break; //hezouni_slizouni case 703; require "hezouni_slizouni.php"; break; case 704: // uzivatelska preview require "novinky_ma.php"; break; case 1001: // f.a.q. require "faq.php3"; break; case 1002: // odkazy require "odkazy.php3"; break; case 1003: // serialy require "recenze_subdruh.php3"; break; case 1004: // suvenyry require("suvenyry.php"); break; case 1005: //zebricek topten require("top_ten.php"); break; case 1006: // info o RSS feedu require("rss-info.html"); break; case 1007: // aktualita z RSS require("aktualita.php"); break; case 1102: // prihlaseni na PGC'08 require("pgc_reg_2008.php"); break; case 9999: //hledani require("vys_hled.php"); break; default: echo"Neexistujici kategorie.\n"; } } ?> |
|
||