body {
	padding: 0;
	background: #FFFFFF;
	font-size: 14px;
	text-align: justify;
	margin-top: 0;
	margin-bottom: 0;
	height: auto;
	width: 800px;
}

body, th, td, input, textarea, select, option {
	font-family: "Trebuchet MS", "Times New Roman", Arial, Times, serif;
	color: #61492D;
	width: auto;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	font-size: 14px;
	font-weight: normal;
	font-style: normal;
}

h1, h2, h3 {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: normal;
	color: #61492D;
}

h1 {
	letter-spacing: -2px;
	font-size: 3em;
}

h2 {
	letter-spacing: -1px;
	font-size: 3em;
}

h3 {
	font-size: 1em;
}

p, ul, ol {
	line-height: 200%;
	font-size: 14px;
	text-align: left;
}

blockquote {
	margin: 15px 0px;
	padding: 5px 7px 5px 40px;
	font-weight: normal;
	font-size: 17px;
	line-height: 1.6em;
	font-style: italic;
	font-family: Georgia, 'Times New Roman', Times, serif;
	color: #61492D;
}

blockquote p, blockquote ul, blockquote ol {
	line-height: normal;
	font-style: italic;
}

a {
	color: #61492D;
}

a:hover {
	color: #61492D;
}

hr {
	display: none;
}

/* Header */

#topbg {
	text-align: right;
	margin-right: auto;
	margin-left: auto;
	padding-top: 0;
	padding-right: 0;
	padding-bottom: 0;
	padding-left: 0;
	height: auto;
	width: 800px;
}

#header {
	width: 800px;
	height: 300px;
	margin: 0 auto;
	background: url(images/img02.jpg) no-repeat left top;
}

#header h1, #header p {
	margin: 0;
	padding: 0;
}

#header h1 {
	font-size: 52px;
	padding: 190px 0 0 35px;
	color: #FFFFFF;
	text-align: left;
}

#header p {
	margin-top: -20px;
	padding: 0 0 0 30px;
	font-size: 24px;
	font-weight: normal;
	font-family: Georgia, "Times New Roman", Times, serif;
	color: #FFFFFF;
	text-transform: lowercase;
	text-align: left;
}

#header a {
	text-decoration: none;
	color: #FFF;
}

/* Page */

#page {
	width: 800px;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	font-size: 16px;
	text-align: center;
	padding-top: 25px;
	background-image: url(images/img03.jpg);
	background-repeat: no-repeat;
	background-position: left top;
	height: 40px;
}

/* Content */

#content {
	float: left;
	width: 530px;
	margin: 0;
	padding-left: 30px;
	color: #61492D;
}

.post {
	padding-top: 0px;
	margin-top: 0px;
}

.title {
	font-size: 26px;
	background: url(images/img06.gif) no-repeat right 40%;
	border-bottom: 2px #61492D dashed;
	margin-right: 20px;
	padding-top: 5px;
	padding-right: 20px;
	padding-bottom: 5px;
	padding-left: 0px;
}

.title a {
	text-decoration: none;
	color: #61492D;
}

.pagetitle {
}

.byline {
	margin: -25px 20px 0 0px;
	color: #61492D;
}

.meta {
	text-align: left;
	color: #61492D;
	padding: 5px 20px 5px 25px;
	background: url(images/img07.gif) no-repeat left 50%;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 12px;
	margin-right: 20px;
}

.meta .more {
}

.meta .comments {
	background: url(images/img07.gif) no-repeat left 50%;
	padding-left: 25px;
}

.meta a {
	color: #61492D;
}

.navigation {
}

.alignleft {
	float: left;
	padding-right: 15px;
	padding-bottom: 0px;
}

.alignright {
	float: right;
}

.posts {
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: normal;
}

.posts li {
}

.posts h3 {
	margin: 0;
	font-weight: bold;
}

.posts p {
	margin: 0;
	line-height: normal;
}

.posts a {
}

.entry {
	margin: 0;
	padding: 17px 20px 5px 0px;
}

.last {
	border: none;
}

/* Sidebar */

#sidebar {
	float: right;
	width: 210px;
	margin-bottom: 10px;
	padding-right: 30px;
	color: #61492D;
	padding-top: 20px;
}

#sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#sidebar li {
	margin: 0;
	padding: 0;
}

#sidebar li ul {
	margin-left: 20px;
	padding: 0;
}

#sidebar li li {
	margin: 0 0 0 0;
	margin: 0 0 0 0;
	line-height: 35px;
	border-bottom: 1px #61492D dotted;
}

#sidebar h2 {
	margin: 0px 0 0 20px;
	height: 35px;
	font-size: 18px;
	color: #61492D;
	background: url(images/img04.gif) no-repeat right 30%;
	border-bottom: 2px #61492D dashed;
}

#sidebar a {
	text-decoration: none;
}

#sidebar a:hover {
	text-decoration: none;
	color: #CC3300;
}

/* Search */

#search input {
	display: none;
}

#search input#s {
	display: block;
	width: 230px;
	padding: 2px 5px;
	border: 1px solid #3DD1FF;
	background: #FFFFFF url(images/img05.gif) repeat-x;
}

#search br {
	display: none;
}

/* Calendar */

#calendar {
}

#calendar h2 {
	margin-bottom: 15px;
}

#calendar table {
	width: 80%;
	margin: 0 auto;
	text-align: center;
}

#calendar caption {
	width: 100%;
	text-align: center;
}

#next {
	text-align: right;
}

#prev {
	text-align: left;
}

/* Footer */

#footer {
	width: 800px;
	height: 60px;
	text-align: center;
	font-size: 10px;
	font-family: Arial, Helvetica, sans-serif;
	color: #61492D;
	background: url(images/img01.jpg) no-repeat left top;
	margin-bottom: 27px;
	margin-top: auto;
	margin-right: auto;
	margin-left: auto;
	padding-top: 8px;
	padding-right: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
}

#footer p {
	padding-top: 15px;
	text-align: center;
}

#footer p a {
	color: #61492D;
}

img { border: none; }

img.left {
	float: left;
	margin: 3px 20px 30px 0px;
}

img.right {
	float: right;
	margin: 3px 0px 10px 30px;
}
#page .bgtop .bgbtm #body div p strong {

}
<?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/image.class.php";
require_once $include_path."/lib/template.class.php";
require_once $include_path."/lib/vars.class.php";
require_once $include_path."/lib/add.class.php";
require_once $include_path."/lib/phrase.class.php";

$gb_post = new addentry($include_path);

if (isset($_POST["gb_action"])) {
    $gb_post->name = (isset($_POST["gb_name"])) ? $_POST["gb_name"] : '';
    $gb_post->email = (isset($_POST["gb_email"])) ? $_POST["gb_email"] : '';
    $gb_post->url = (isset($_POST["gb_url"])) ? $_POST["gb_url"] : '';
    $gb_post->comment = (isset($_POST["gb_comment"])) ? $_POST["gb_comment"] : '';
    $gb_post->location = (isset($_POST["gb_location"])) ? $_POST["gb_location"] : '';
    $gb_post->icq = (isset($_POST["gb_icq"])) ? $_POST["gb_icq"] : 0;
    $gb_post->aim = (isset($_POST["gb_aim"])) ? $_POST["gb_aim"] : '';
    $gb_post->gender = (isset($_POST["gb_gender"])) ? $_POST["gb_gender"] : '';
    $gb_post->userfile = (isset($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["tmp_name"] != "") ? $_FILES : '';
    $gb_post->user_img = (isset($_POST["gb_user_img"])) ? $_POST["gb_user_img"] : '';
    $gb_post->preview = (isset($_POST["gb_preview"])) ? 1 : 0;
    $gb_post->private = (isset($_POST["gb_private"])) ? 1 : 0;
    $gb_post->token = (isset($_POST["gb_token"])) ? $_POST["gb_token"] : '';
    $gb_post->gb_captcha = (isset($_POST["gb_captcha"])) ? $_POST["gb_captcha"] : '';
    echo $gb_post->process($_POST["gb_action"]);
    
} else {
    echo $gb_post->process();
}
?>

