<?php
$include_path = dirname(__FILE__);
require_once $include_path."/admin/config.inc.php";
require_once $include_path."/lib/$DB_CLASS";
require_once $include_path."/lib/vars.class.php";
require_once $include_path."/lib/template.class.php";
require_once $include_path."/lib/gb.class.php";

$gb = new guestbook($include_path);
$entry = (isset($HTTP_GET_VARS["entry"])) ? $HTTP_GET_VARS["entry"] : 0;
$entry = (isset($HTTP_POST_VARS["entry"])) ? $HTTP_POST_VARS["entry"] : $entry;
echo $gb->show_entries($entry);
?>