# STELLT DEN HEADER ZUR VERFÜGUNG $blog->header(); $blog->logged_in("redirect", "index.php"); $blog->userHasRightPruefung("2"); ## Suchfunktion $allgemein = new functions(); $suche = isset($_GET['suche']) ? $_GET['suche'] : ''; echo $allgemein->suche($suche, "blogtexte", "titel", "?showblogid"); ?> <title>Forum - Thema anzeigen</title> </head> <body> <div class='mainbodyDark'> <?php # zeigt Navigation an $blog->showForumNav(); # $blogid = (isset($_GET['showblogid'])) ? $_GET['showblogid'] : ''; $bearbid = isset($_GET['bearbid']) ? $_GET['bearbid'] : ''; $blogid = isset($_GET['showblogid']) ? $_GET['showblogid'] : ''; $loeschid = isset($_GET['loeschid']) ? $_GET['loeschid'] : ''; $selectContentForBlog = new blog(); if ($blog->userHasRight("20", 0) == true) { $selectContentForBlog->bearbBlogId($bearbid); $selectContentForBlog->deleBlogId($loeschid); } if (!isset($_GET['bearbid'])) { # $bearbid = (isset($_GET['loeschid'])) ? $_GET['loeschid'] : ''; $selectContentForBlog->showBlogId($blogid); } # zeigt Navigation an $blog->showForumNav();
$addBlog->showForumNav(); ?> <?php if (isset($_GET['blogcategory'])) { $kategorie = $_GET['blogcategory']; echo "<a href=\"/flatnet2/forum/index.php?blogcategory={$kategorie}\" class=\"highlightedLink\">↺ Zurück</a>"; } ?> <?php $addBlog = new blog(); echo "<h2>Neues Thema erstellen</h2>"; $addBlog->newBlogFunction(); $addBlog->newBlogEingabe(); ?> <?php if (isset($_GET['blogcategory'])) { $kategorie = $_GET['blogcategory']; echo "<a href=\"/flatnet2/forum/index.php?blogcategory={$kategorie}\" class=\"highlightedLink\">↺ Zurück</a>"; } ?> <?php $addBlog->showForumNav(); ?> </div> </body> </div> </html>