\n"; foreach ($line as $col_value) { echo ("The Site Administrator has banned you from accessing this page."); Exit; } print "\t\n"; } /*if (isset($_POST['submit'])) { // first check if the number submitted is correct $number = $_POST['txtNumber']; if (md5($number) == $_SESSION['image_random_value']) { print "ok"; } else {print "nok";} }*/ /*else {*/ if (!isset($_POST['submit'])) { print "
"; print "
"; print "Name:

"; print "Country:

"; print "Homepage:

"; print "E-mail:

"; //print "Aim:

"; //print "ICQ:

"; //print "Yahoo:

"; //print "MSN:

"; print "Comment:
"; print "
"; print "
Verification code: Please type the verification code below in the textfield. (Case sensitive).
Refresh your page if you can't read the verification code.
 
   
"; print ""; //Reset"; print "

"; print "
Clickable Smilies
"; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print " "; print "
"; print ""; print ""; print ""; print ""; print ""; print "\n"; print "

"; //print "BBCode instructions"; } else if (isset($_POST['submit'])) { $name=$_POST['name']; $country=$_POST['country']; $email=$_POST['email']; $homepage=$_POST['homepage']; $aim=""; $icq=""; $yim=""; $msn=""; $comment=$_POST['comment']; //first check if the number submitted is correct $number = $_POST['txtNumber']; if (md5($number) != $_SESSION['image_random_value']) { print "Verification code is incorrect, please go back and sign again
"; }else { if(!$name || !$comment) { print "Name or comment not entered, please go back and sign again
"; } else { $r=$_SERVER["REMOTE_ADDR"]; $day=date("D M d, Y H:i:s"); $timegone=date("U") ; //seconds since Jan 1st, 1970 $putinguestbook="INSERT INTO gbook(name, country, mail, homepage, comment, realtime, aim, icq, yim, msn, time,IP) VALUES('$name','$country','$email','$homepage','$comment','$day','$aim','$icq','$yim','$msn','$timegone','$r')"; //echo $putinguestbook; if (!mysql_query($putinguestbook)) { echo "good done"; } else print "Thanks for posting, you will now be redirected "; } } } ?>