Comments and Vote
setCommentsPerPage(10);
$gb->setTitle('GUESTBOOK');
$db = getDbData();
if ($db === false)
die("Cannot find a database");
$gb->loadDb(ImDb::from_db_data($db), 'w5_ef0986e2_47_01_comments');
$gb->showSummary(true);
$newMessage = $gb->checkNewMessages(false, '[email protected]', 'guestbook', $imSettings['general']['url'] . 'admin/guestbook.php?id=' . $outputID);
if ($newMessage && $imSettings['admin']['enable_notifications']) {
Configuration::getNotifier()->sendNotification('pages_comments', $imSettings['guestbooks'][$outputID]['pagetitle'], l10n('pages_new_comment_notification_body', 'You received a new comment'), 'guestbook.php?id=' . $outputID);
}
$gb->showForm(true, false, false, '[email protected]', 'guestbook', $imSettings['general']['url'] . 'admin/guestbook.php?id=' . $outputID);
$gb->showComments(true, 'asc', true, true);
$ratingsData = $gb->getRatingsDataSummary();
?>