<?php } $gb = false; if (strlen($id)) { $data = $imSettings['guestbooks'][$id]; $gb = new ImTopic($id, "../"); $gb->setPostUrl('guestbook.php?id=' . $id); 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']); }
<?php $topic = false; 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; case "db": $topic->loadDb($data['dbhost'], $data['dbuser'], $data['dbpassword'], $data['dbname'], $data['dbtable']); break; } if ($topic->hasComments()) { $topic->showAdminSummary($data['comment_type'] != "comment"); } } ?> <div style="clear: both;"></div> </div> <?php if ($topic) { $topic->showAdminComments($data['comment_type'] != "comment", $data['comments_order']); } ?> </div> </div> <?php require_once "footer.php";