<?php
$php_script_url=selfURL();
$ip_addr=$_SERVER['REMOTE_ADDR'];# DO NOT MODIFY THIS LINE, getting the poster's IP
$email_mssg1='$mail_line1:\n\n$gbook_url\n\n$mail_line2:\n\n$mail_log'; # content of e-mail sent on new post
$email_mssg2='$mail_line3:\n\n$gbook_url\n\n$mail_line4.\n\n$mail_line5';# content of e-mail sent on new spam attempt or post from banned IP
$email_mssg3='$mail_line6:\n\n$php_script_url?task=ShowPendingMessages\n\n$mail_line2:\n\n$mail_log';// Content of e-mail sent if moderation mode is turned on
$last_message_to_top=1; # set to 1 if you want the last post to be the upper one in the page, or to 0 if you want the last post to be at the buttom
$confirm='<META HTTP-EQUIV="refresh" CONTENT="0; url='.$gbook_url.'" >'.$if_not_redir.'<a href="'.$gbook_url.'">Guestbook</a>'; # SCREEN MESSAGE GIVEN TO THE USER AFTER POST
$confirm2='Your IP: '.$ip_addr.' status: <font color=red><b>logged</b></font>';# SCREEN MESSAGE GIVEN TO THE USER ON SPAM/ILLEGAL POST
$use_sessions=1; # to be used for debugging the captcha when used with sessions. If set to 0 the posting should work but the admin section will not work properly
$date=date('F d, Y - h:i a', strtotime($time_offset.' hours'));# getting the current date and time. You can shift the timezone by editing the strtotime argument
$powby="<a class=\"powby\" href=\"http://www.cellbiol.com/scripts/free_php_guestbook/free_php_guestbook.html\" target=\"_blank\">Powered by the The Easy PHP Guestbook ®</a>";
$sendmail_onspam=0;
$posts_dir="posts";
$posts_file=$posts_dir."/".$posts_file_name;
$logfile=$posts_dir."/".$logfile_name;
$default_template_css_1='\n<div class="postdiv">\n<div class="postheader">\n<span class="name_lang">Posted by</span><a href="mailto:$email" class="namelink">$name</a>\n<span class="date_lang">on</span><span class="date">$date</span>\n<a href="php_guestbook.php?task=ShowPrivatePost&post_id=$post_id" class="post_admin_view">\n<img src="images/arrow1.png" align="right" border="0">\n</a>\n</div>\n<div class="message">\n<span class="message">$message</span>\n</div>\n</div>\n';
$default_template_no_css_1='<p>\n<strong>Name: </strong>$name<br>\n<strong>E-mail: </strong>$email<br>\n<strong>Posted on: </strong><i>$date</i><br>\n<strong>Message: </strong>$message<br>\n</p>';
?>
