?> ><?php echo $imSettings['blog']['posts'][$post]['title']; ?> </option> <?php } ?> </select> <?php } if (isset($_GET['category']) && isset($_GET['post'])) { $data = $imSettings['blog']; $topic = new ImTopic($data['file_prefix'] . 'pc' . $_GET['post'], "../"); $topic->setPostUrl('blog.php?category=' . $_GET['category'] . '&post=' . $_GET['post']); switch ($data['sendmode']) { case "file": $topic->loadXML($data['folder']); break; } if (count($topic->comments->getAll())) { $topic->showSummary($data['comment_type'] != "comment", TRUE); } $topic->showAdminComments($data['comment_type'] != "comment", $data['comments_order']); } ?> </div> </div> </div> <?php require_once "footer.php";
switch ($data['sendmode']) { case "file": $gb->loadXML($data['folder']); break; case "db": $gb->loadDb($data['host'], $data['user'], $data['password'], $data['database'], $data['table']); break; } if ($gb->hasComments()) { $gb->showAdminSummary($data['rating'], TRUE); } } ?> <div style="clear: both;"></div> </div> <?php if ($id != "") { // Show the comments of a guestbook ?> <div class="imBlogPostComment"> <?php if ($gb) { $gb->showAdminComments($data['rating'], $data['order']); } } ?> </div> </div> </div> <?php require_once "footer.php";