SetMenuID($_REQUEST["ID"]); break; case "LOGIN": $template = new Template(LOGINFILE); break; case "ERROR": $template = new Template(ERRORFILE, $_REQUEST["error"]); break; case "HELP": $template = new Template(HELPFILE); break; case "DBSTATS": $template = new TemplateDBStats(DBSTATSFILE, DBSTATSCACHEDFILE, DBSTATSCACHED); break; case "RANKING": $template = new TemplateRanking(RANKINGFILE); break; case "SEARCH": $template = new TemplateSearch(SEARCHFILE); $template->SetSearchText($_REQUEST["search"]); $template->SetSearchIn($_REQUEST["searchin"]); break; //SHOP case "SHOPMENU": $template = new TemplateShopMenu(SHOPMENUFILE); $template->SetShopMenuID($_REQUEST["ShopMenuID"]); break; case "SHOPITEM": $template = new TemplateShopItem(SHOPITEMFILE); $template->SetShopItemID($_REQUEST["ID"]); break; case "SHOPBOUGHT": $template = new Template(SHOPBOUGHTFILE); break; // USER case "USERDETAILS": $template = new TemplateUser(USERDETAILSFILE); $template->SetUserID($_REQUEST["ID"]); break; // ARTIKEL-ITEM case "ARTICLE": $link = OpenSQL("ro"); if(IPBlocker(content_article_ipblock, $REMOTE_ADDR, 900)==FALSE) { $query = "UPDATE Article SET Counter=Counter+1, LastChange=LastChange WHERE ArticleID=".$_REQUEST["ID"]; mysql_query($query, $link); } $template = new TemplateArticle(ARTICLEBIGFILE); $template->SetArticleID($_REQUEST["ID"]); break; case "ARTIKELSEND": $template = new TemplateArticle(ARTIKELSEND); $template->SetArticleID($_REQUEST["ID"]); break; case "ARTIKELDRUCK": $template = new TemplateArticle(ARTIKELDRUCK); $template->SetArticleID($_REQUEST["ID"]); break; case "SUBMITARTICLECOMMENT": $template = new TemplateArticle(SUBMITARTICLECOMMENTFILE); $template->SetArticleID($_REQUEST["ID"]); break; // ADMINISTRATION case "ADMININDEX": $template = new TemplateAdmin(ADMININDEX); break; case "ARTICLEQUEUE": $template = new TemplateAdmin(ADMINQUEUE); break; case "ADMINSUBMITNEWS": $template = new Template(ADMINSUBMITNEWS); break; case "ADMINPREVIEWNEWS": // Mod von Goergi: // hier erfolgt eine überprüfung: // wenn eine quelle eingegeben wurde dann OK // ansonsten ein anderes template einbinden $_REQUEST['overview'] = nl2br($_REQUEST['overview']); $_REQUEST['articletext'] = nl2br($_REQUEST['articletext']); if ($_POST['reference'] == "" || !isset($_POST['reference'])) { $template = new TemplateUserData(CHECKARTICLESOURCE); } else { $template = new TemplateUserData(ARTICLEPREVIEWNEWS); } break; case "ADMINEDITARTICLE": if (CheckLock($ID)) Redirect(SERVERROOT."/index.php?type=error&error=InBearbeitung"); $template = new TemplateArticle(ARTICLEEDITFILE); $template->SetArticleID($_REQUEST["ID"]); LockArticle($ID, $WebUser->UserID); break; case "ADMINSIGNUP": $template = new Template(ADMINSIGNUP); break; case "ADMINSIGNUPOK": $template = new Template(ADMINSIGNUPOK); break; case "CHANGEUSERDETAILS": if (!$WebUser->LoggedIn) { Redirect(SERVERROOT."/index.php?type=error&error=noaccess"); exit; } $template = new TemplateUser(CHANGEUSERDETAILSFILE); $template->SetUserID($WebUser->UserID); break; // INTERNES case "INTERNABOUTUS": $template = new Template(INTERNABOUTUS); break; case "INTERNRECHTLICHES": $template = new Template(INTERNRECHTLICHES); break; case "INTERNPRESSEDATEN": $template = new Template(INTERNPRESSEDATEN); break; case "INTERNMEDIADATEN": $template = new Template(INTERNMEDIADATEN); break; case "INTERNIMPRESSUM": $template = new Template(INTERNIMPRESSUM); break; // POCKETPC case "TOPNEWS": $template = new Template(TOPNEWS); break; case "DBSTAND": $template = new Template(DBSTAND); break; default: //echo "error"; //exit; Redirect(SERVERROOT."/index.php?type=error"); exit; break; } echo $template->Draw(); // Zeitberechnung START $time_end = getmicrotime(); $time = round($time_end - $time_start, 8); //echo "
Generated in $time seconds"; // Zeitberechnung ENDE ?>