<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "image verification script for 2.31"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "image verification script for 2.31"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>image verification script for 2.31</title>
				<description><![CDATA[ I recently install the script and it seems to work halfway. I not at all used to php. Html I know better so I am lost.<br /> <br /> Where I sign in, it doesn't get complete because of the image vertification and it doesn't supply with new numbers even when I refresh. I'm pretty sure I messed up somewhere but I don't know to figure that out. <img src="https://proxy2.de/forum//images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9151.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9151.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 21:23:03]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Sorry the guestbook is here [url]http://www.ccgrove.com/samemme/index.php[/url]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9152.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9152.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 21:24:33]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ you didn't install the script right. If you view the source, nothing changes<br /> <br /> always says verifyimage.php?k= but should say verifyimage.php?k=234234 or some other number. Recheck your work. Or maybe your server does not support the script.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9153.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9153.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 22:37:25]]> GMT</pubDate>
				<author><![CDATA[ Jared]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I only change the 8 characters in the verify.php and basically went through the process again. So I figuring it the verify.php <br /> <br /> I did the eight different character but in the file it says do not go below this line but I am still suppose to change something beside the eight characters.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9155.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9155.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 23:00:47]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]how to add the Image Verification mod.<br /> <br /> 1 - First to prevent the spammers from being able to figure out our image verifcation characters we need to make them unique to our site.<br /> <br />      Open up verify.php and follow the instructions.<br /> <br /> 2 - Upload both verify.php and verifyimge.php to the same directory &#40;folder&#41; as your addentry.php.<br /> <br /> 3 - Open addentry.php.<br /> <br />     Find <br /> 	&lt;?php<br /> 	$include_path = dirname&#40;__FILE__&#41;;<br /> <br />     and replace it with <br /> 	&lt;?php<br /> 	include&#40;&quot;verify.php&quot;&#41;;<br /> 	$include_path = dirname&#40;__FILE__&#41;;<br /> <br />     Find<br /> 	if &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_action&quot;&#93;&#41;&#41; &#123;<br /> 	    $gb_post-&gt;name = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93; &#58; '';<br /> 	or if you use version 2.2 of the guestbook find<br /> 	if &#40;$HTTP_SERVER_VARS&#91;&quot;REQUEST_METHOD&quot;&#93; == &quot;POST&quot;&#41; &#123;<br /> 	    $gb_post-&gt;name = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;name&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;name&quot;&#93; &#58; '';<br /> <br />     For version 2.3.1 replace it with <br /> 	if &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_action&quot;&#93;&#41;&#41; &#123;<br /> 	      if &#40;strtoupper&#40;$_POST&#91;&quot;keycode&quot;&#93;&#41;!=$Vword&#41; <br /> 	     &#123;<br /> 	          echo &#40;&quot;The &lt;strong&gt;Image Verication&lt;/strong&gt; code you supplied is incorrect.&lt;br /&gt;\nPlease enter the 8 characters that appear in the image.&quot;&#41;;<br /> 	          echo $gb_post-&gt;process&#40;&#41;;<br /> 	          die&#40;&#41;;<br /> 	     &#125;<br /> 	    $gb_post-&gt;Vrand = $Vrand;<br /> 	    $gb_post-&gt;name = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93; &#58; '';<br /> <br />     For version 2.2 replace it with <br /> 	if &#40;$HTTP_SERVER_VARS&#91;&quot;REQUEST_METHOD&quot;&#93; == &quot;POST&quot;&#41; &#123;<br /> 		if &#40;strtoupper&#40;$_POST&#91;&quot;keycode&quot;&#93;&#41;!=$Vword&#41;<br /> 		&#123;<br /> 	          echo &#40;&quot;The &lt;strong&gt;Image Verication&lt;/strong&gt; code you supplied is incorrect.&lt;br /&gt;\nPlease enter the 8 characters that appear in the image.&quot;&#41;;<br /> 	          echo $gb_post-&gt;process&#40;&#41;;<br /> 	          die&#40;&#41;;<br /> 	        &#125;<br /> 		$gb_post-&gt;Vrand = $Vrand;<br /> 		$gb_post-&gt;name = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;name&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;name&quot;&#93; &#58; '';<br /> <br />   If you use a footer file for your site place the include code between the echo $gb_post-&gt;process; and the die&#40;&#41;;<br /> <br /> Close addentry.php<br /> <br /> 4 - Open templates/form.php<br /> <br />      Find<br /> 	flag=1;<br />      Replace with<br /> 	if&#40;document.book.keycode.value == &quot;&quot;&#41; &#123;<br /> 	alert&#40;&quot;You Must Enter The Image Verification Characters Into The Box&quot;&#41;;<br /> 	document.book.keycode.focus&#40;&#41;;<br /> 	return false;<br /> 	&#125;<br /> 	 flag=1;<br /> <br />      Find<br /> 	  &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	    &lt;td width=&quot;25%&quot;&gt;&lt;div align=&quot;left&quot; class=&quot;font2&quot;&gt;$HTML_CODE&lt;br /&gt;$SMILE_CODE&lt;br /&gt;$AG_CODE&lt;/div&gt;&lt;/td&gt;<br /> 	    &lt;td&gt;<br /> <br />      If you use 2.2 then look for<br /> 	  &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	    &lt;td width=&quot;25%&quot;&gt;&amp;nbsp;&lt;/td&gt;<br /> 	    &lt;td&gt;<br /> <br />      For 2.3.1 replace it with <br /> 	&lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;Image Verification&#58;&amp;nbsp;&lt;input type=&quot;hidden&quot; name=&quot;rand&quot; value=&quot;$Vrand&quot;&gt;&lt;/td&gt; <br /> 	     &lt;td&gt;Enter these characters &lt;img src=&quot;verifyimage.php?k=$Vrand&quot; alt=&quot;Enter these characters into the textbox on the right&quot; height=&quot;18&quot; width=&quot;75&quot;&gt; into this text box &lt;input type=&quot;text&quot; size=&quot;8&quot; maxlength=&quot;8&quot; name=&quot;keycode&quot; value=&quot;$_POST&#91;rand&#93;&quot;&gt;&lt;/td&gt;<br /> 	&lt;/tr&gt;<br /> 	  &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	    &lt;td width=&quot;25%&quot;&gt;&lt;div align=&quot;left&quot; class=&quot;font2&quot;&gt;$HTML_CODE&lt;br /&gt;$SMILE_CODE&lt;br /&gt;$AG_CODE&lt;/div&gt;&lt;/td&gt;<br /> 	    &lt;td&gt;<br /> <br />      For 2.2 replace it with <br /> 	&lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;Enter the Characters&#58;&amp;nbsp;&lt;input type=&quot;hidden&quot; name=&quot;rand&quot; value=&quot;$Vrand&quot;&gt;&lt;/td&gt; <br /> 	     &lt;td&gt;&lt;input type=&quot;text&quot; size=&quot;42&quot; maxlength=&quot;8&quot; name=&quot;keycode&quot; value=&quot;$_POST&#91;rand&#93;&quot;&gt;&amp;nbsp;&lt;img src=&quot;verifyimage.php?k=$Vrand&quot; alt=&quot;Enter the Number&quot; height=&quot;22&quot; width=&quot;80&quot;&gt;&lt;/td&gt;<br /> 	&lt;/tr&gt;<br /> 	&lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	     &lt;td width=&quot;25%&quot;&gt;&amp;nbsp;&lt;/td&gt;<br /> 	     &lt;td&gt;<br /> <br />      Save and close form.php<br /> <br /> 5 - Open lib/add.class.php <br /> <br />      Find<br /> 	var $table = array&#40;&#41;;<br /> <br />      Just below it put <br /> 	var $Vrand = '';<br /> <br />      Find<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_name\&quot; value=\&quot;&quot;.$this-&gt;name.&quot;\&quot;&gt;\n&quot;;<br /> <br />      For 2.2 find<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;name\&quot; value=\&quot;&quot;.$this-&gt;name.&quot;\&quot;&gt;\n&quot;;<br /> <br />      2.3.1 replace it with <br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;keycode\&quot; value=\&quot;&quot;.$_POST&#91;&quot;keycode&quot;&#93;.&quot;\&quot;&gt;&quot;;<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;rand\&quot; value=\&quot;$Vrand\&quot;&gt;\n&quot;; //Hidden Random Value<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_name\&quot; value=\&quot;&quot;.$this-&gt;name.&quot;\&quot;&gt;\n&quot;;<br /> <br />      2.2 replace it with<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;name\&quot; value=\&quot;&quot;.$this-&gt;name.&quot;\&quot;&gt;\n&quot;;<br />      	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;keycode\&quot; value=\&quot;&quot;.$_POST&#91;&quot;keycode&quot;&#93;.&quot;\&quot;&gt;&quot;;<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;rand\&quot; value=\&quot;$Vrand\&quot;&gt;\n&quot;; //Hidden Random Value<br /> <br />      Save and close add.class.php<br /> <br /> And thats it.[/code]<br /> <br /> <br /> Just follow the directions. That is correct, you only need to change the numbers]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9156.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9156.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 23:08:11]]> GMT</pubDate>
				<author><![CDATA[ Jared]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok let's see if you can see it.<br /> [b]Addentry.php[/b]<br /> <br /> [code]&lt;?php<br /> 	include&#40;&quot;verify.php&quot;&#41;;<br /> 	$include_path = dirname&#40;__FILE__&#41;;<br /> include_once $include_path.&quot;/admin/config.inc.php&quot;;<br /> include_once $include_path.&quot;/lib/$DB_CLASS&quot;;<br /> include_once $include_path.&quot;/lib/image.class.php&quot;;<br /> include_once $include_path.&quot;/lib/template.class.php&quot;;<br /> <br /> include_once $include_path.&quot;/lib/vars.class.php&quot;;<br /> include_once $include_path.&quot;/lib/add.class.php&quot;;<br /> <br /> $gb_post = new addentry&#40;$include_path&#41;;<br /> <br /> if &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_action&quot;&#93;&#41;&#41; &#123;<br /> 	      if &#40;strtoupper&#40;$_POST&#91;&quot;keycode&quot;&#93;&#41;!=$Vword&#41; <br /> 	     &#123;<br /> 	          echo &#40;&quot;The &lt;strong&gt;Image Verication&lt;/strong&gt; code you supplied is incorrect.&lt;br /&gt;\nPlease enter the 8 characters that appear in the image.&quot;&#41;;<br /> 	          echo $gb_post-&gt;process&#40;&#41;;<br /> 	          die&#40;&#41;;<br /> 	     &#125;<br /> 	    $gb_post-&gt;Vrand = $Vrand;<br /> 	    $gb_post-&gt;name = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_name&quot;&#93; &#58; '';<br /> <br />     $gb_post-&gt;email = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_email&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_email&quot;&#93; &#58; '';<br />     $gb_post-&gt;url = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_url&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_url&quot;&#93; &#58; '';<br />     $gb_post-&gt;comment = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_comment&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_comment&quot;&#93; &#58; '';<br />     $gb_post-&gt;location = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_location&quot;&#93; &#58; '';<br />     $gb_post-&gt;icq = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_icq&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_icq&quot;&#93; &#58; '';<br />     $gb_post-&gt;aim = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_aim&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_aim&quot;&#93; &#58; '';<br />     $gb_post-&gt;gender = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_gender&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_gender&quot;&#93; &#58; '';<br />     $gb_post-&gt;userfile = &#40;isset&#40;$HTTP_POST_FILES&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;&#41; &amp;&amp; $HTTP_POST_FILES&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93; != &quot;&quot;&#41; ? $HTTP_POST_FILES &#58; '';<br />     $gb_post-&gt;user_img = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_user_img&quot;&#93;&#41;&#41; ? $HTTP_POST_VARS&#91;&quot;gb_user_img&quot;&#93; &#58; '';<br />     $gb_post-&gt;preview = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_preview&quot;&#93;&#41;&#41; ? 1 &#58; 0;<br />     $gb_post-&gt;private = &#40;isset&#40;$HTTP_POST_VARS&#91;&quot;gb_private&quot;&#93;&#41;&#41; ? 1 &#58; 0;<br />     echo $gb_post-&gt;process&#40;$HTTP_POST_VARS&#91;&quot;gb_action&quot;&#93;&#41;;<br /> &#125; else &#123;<br />     echo $gb_post-&gt;process&#40;&#41;;<br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> I don't know about the footer...I didn't mess with it. That could something...<br /> <br /> [code]If you use a footer file for your site place the include code between the echo $gb_post-&gt;process; and the die&#40;&#41;;[/code]<br /> <br /> [b]Form.php[/b]<br /> <br /> [code]&lt;script language=&quot;JavaScript&quot;&gt;<br /> &lt;!--<br /> var flag=0;<br /> function openCentered&#40;theURL,winName,winWidth,winHeight,features&#41; &#123;<br />  var w = &#40;screen.width - winWidth&#41;/2;<br />  var h = &#40;screen.height - winHeight&#41;/2 - 30;<br />  features = features+',width='+winWidth+',height='+winHeight+',top='+h+',left='+w;<br />  window.open&#40;theURL,winName,features&#41;;<br /> &#125;<br /> function checkForm&#40;&#41; &#123;<br />  document.book.gb_name.value=trim&#40;document.book.gb_name.value&#41;;<br />  document.book.gb_comment.value=trim&#40;document.book.gb_comment.value&#41;;<br />  if&#40;document.book.gb_name.value == &quot;&quot;&#41; &#123;<br />    alert&#40;&quot;$LANG&#91;ErrorPost1&#93;&quot;&#41;;<br />    document.book.gb_name.focus&#40;&#41;;<br />    return false;<br />  &#125;<br />  if&#40;document.book.gb_comment.value == &quot;&quot;&#41; &#123;<br />    alert&#40;&quot;$LANG&#91;ErrorPost2&#93;&quot;&#41;;<br />    document.book.gb_comment.focus&#40;&#41;;<br />    return false;<br />  &#125;<br />  if&#40;document.book.gb_comment.value.length&lt;$VARS&#91;min_text&#93; || document.book.gb_comment.value.length&gt;$VARS&#91;max_text&#93;&#41; &#123;<br />    alert&#40;&quot;$LANG&#91;ErrorPost3&#93;&quot;&#41;;<br />    document.book.gb_comment.focus&#40;&#41;;<br />    return false;<br />  &#125;<br /> <br /> if&#40;document.book.keycode.value == &quot;&quot;&#41; &#123;<br /> 	alert&#40;&quot;You Must Enter The Image Verification Characters Into The Box&quot;&#41;;<br /> 	document.book.keycode.focus&#40;&#41;;<br /> 	return false;<br /> 	&#125;<br /> 	 flag=1;<br /> <br />  return true;<br /> &#125;<br /> function trim&#40;value&#41; &#123;<br />  startpos=0;<br />  while&#40;&#40;value.charAt&#40;startpos&#41;==&quot; &quot;&#41;&amp;&amp;&#40;startpos&lt;value.length&#41;&#41; &#123;<br />    startpos++;<br />  &#125;<br />  if&#40;startpos==value.length&#41; &#123;<br />    value=&quot;&quot;;<br />  &#125; else &#123;<br />    value=value.substring&#40;startpos,value.length&#41;;<br />    endpos=&#40;value.length&#41;-1;<br />    while&#40;value.charAt&#40;endpos&#41;==&quot; &quot;&#41; &#123;<br />      endpos--;<br />    &#125;<br />    value=value.substring&#40;0,endpos+1&#41;;<br />  &#125;<br />  return&#40;value&#41;;<br /> &#125;<br /> function emoticon&#40;text&#41; &#123;<br />   text = ' ' + text + ' ';<br />   if &#40;document.book.gb_comment.createTextRange &amp;&amp; document.book.gb_comment.caretPos&#41; &#123;<br />    var caretPos = document.book.gb_comment.caretPos;<br />    caretPos.text = caretPos.text.charAt&#40;caretPos.text.length - 1&#41; == ' ' ? text + ' ' &#58; text;<br />    document.book.gb_comment.focus&#40;&#41;;<br />   &#125; else &#123;<br />     document.book.gb_comment.value  += text;<br /> 	document.book.gb_comment.focus&#40;&#41;;<br />   &#125;<br /> &#125;<br /> //--&gt;<br /> &lt;/script&gt;<br /> &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;2&quot; align=&quot;center&quot; width=&quot;$VARS&#91;width&#93;&quot;&gt;<br />   &lt;tr&gt;<br />    &lt;td height=&quot;45&quot;&gt;&lt;b&gt;&lt;font size=&quot;4&quot; face=&quot;$VARS&#91;font_face&#93;&quot; color=&quot;$VARS&#91;text_color&#93;&quot;&gt;$LANG&#91;BookMess3&#93;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />    &lt;td height=&quot;45&quot;&gt;&amp;nbsp;&lt;/td&gt;<br />  &lt;/tr&gt;<br />  &lt;tr&gt;<br />    &lt;td width=&quot;56%&quot; valign=&quot;bottom&quot; class=&quot;font2&quot;&gt;$LANG&#91;FormMess1&#93;&lt;/td&gt;<br />    &lt;td width=&quot;44%&quot; align=&quot;right&quot; valign=&quot;bottom&quot; class=&quot;font2&quot;&gt;&lt;b&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/return.gif&quot; width=&quot;10&quot; height=&quot;10&quot;&gt;<br />      &lt;a href=&quot;$GB_PG&#91;index&#93;&quot;&gt;$LANG&#91;BookMess4&#93;&lt;/a&gt; | &lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/lock.gif&quot; width=&quot;9&quot; height=&quot;11&quot;&gt; &lt;a href=&quot;$GB_PG&#91;admin&#93;&quot;&gt;$LANG&#91;BookMess5&#93;&lt;/a&gt;&lt;/b&gt;&lt;/td&gt;<br />  &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;form method=&quot;post&quot; action=&quot;$GB_PG&#91;addentry&#93;&quot; name=&quot;book&quot; enctype=&quot;multipart/form-data&quot; onsubmit=&quot;return checkForm&#40;&#41;&quot;&gt;<br /> &lt;table border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;4&quot; width=&quot;$VARS&#91;width&#93;&quot; align=&quot;center&quot; bgcolor=&quot;$VARS&#91;tb_bg_color&#93;&quot;&gt;<br />   &lt;tr&gt;<br />     &lt;td colspan=&quot;2&quot; bgcolor=&quot;$VARS&#91;tb_hdr_color&#93;&quot;&gt;&lt;b&gt;&lt;font size=&quot;2&quot; face=&quot;$VARS&#91;font_face&#93;&quot; color=&quot;$VARS&#91;tb_text&#93;&quot;&gt;$LANG&#91;BookMess3&#93;&#58;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/user.gif&quot; width=&quot;16&quot; height=&quot;15&quot;&gt; $LANG&#91;FormName&#93;*&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;gb_name&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/email.gif&quot; width=&quot;15&quot; height=&quot;15&quot;&gt; $LANG&#91;FormEmail&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;gb_email&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/location.gif&quot; width=&quot;16&quot; height=&quot;16&quot;&gt; $LANG&#91;FormLoc&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;gb_location&quot; size=&quot;42&quot; maxlength=&quot;30&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt;<br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/home.gif&quot; width=&quot;16&quot; height=&quot;16&quot;&gt; $LANG&#91;FormUrl&#93;&#58;&lt;/td&gt;<br />     &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;gb_url&quot; size=&quot;42&quot; value=&quot;http&#58;//&quot; maxlength=&quot;45&quot;&gt;&lt;/td&gt;<br />   &lt;/tr&gt; <br /> <br /> $OPTIONAL<br /> <br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br />     &lt;td width=&quot;25%&quot; valign=&quot;top&quot; class=&quot;font1&quot;&gt;$LANG&#91;FormMessage&#93;*&#58;<br />     &lt;br&gt;&lt;br&gt;<br />      &lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;6&quot; align=&quot;center&quot;&gt;<br />           &lt;tr align=&quot;center&quot; valign=&quot;middle&quot;&gt; <br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;-&#41;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a1.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;-&#40;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a2.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;';-&#41;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a3.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />           &lt;/tr&gt;<br />           &lt;tr align=&quot;center&quot; valign=&quot;middle&quot;&gt; <br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;o'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a4.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;D'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a5.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;p'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a6.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />           &lt;/tr&gt;<br />           &lt;tr align=&quot;center&quot; valign=&quot;middle&quot;&gt; <br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;cool&#58;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a7.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;rolleyes&#58;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a8.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;mad&#58;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a9.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />           &lt;/tr&gt;<br />           &lt;tr align=&quot;center&quot; valign=&quot;middle&quot;&gt; <br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;eek&#58;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a10.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;-&#41;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a1.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />             &lt;td&gt;&lt;a href=&quot;javascript&#58;emoticon&#40;'&#58;confused&#58;'&#41;&quot;&gt;&lt;img src=&quot;$GB_PG&#91;base_url&#93;/img/smilies/a11.gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt;&lt;/td&gt;<br />           &lt;/tr&gt;<br />           &lt;tr align=&quot;center&quot;&gt;<br />             &lt;td colspan=&quot;3&quot;&gt; <br />               &lt;div align=&quot;center&quot; class=&quot;font2&quot;&gt;&lt;a href=&quot;javascript&#58;openCentered&#40;'$LANG_CODES','codes','640','450','scrollbars=yes'&#41;&quot;&gt;$LANG&#91;FormMess4&#93;&lt;/a&gt;<br />               &lt;/div&gt;<br />             &lt;/td&gt;<br />           &lt;/tr&gt;<br />         &lt;/table&gt;<br />     &lt;/td&gt;<br />     &lt;td bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot; valign=&quot;top&quot;&gt;&lt;textarea name=&quot;gb_comment&quot; cols=&quot;41&quot; rows=&quot;11&quot; wrap=&quot;VIRTUAL&quot;&gt;&lt;/textarea&gt;&lt;br&gt;<br />      &lt;input type=&quot;checkbox&quot; name=&quot;gb_private&quot; value=&quot;1&quot;&gt; &lt;font size=&quot;1&quot; face=&quot;$VARS&#91;font_face&#93;&quot;&gt;$LANG&#91;FormPriv&#93;&lt;/font&gt;<br />     &lt;/td&gt;<br />   &lt;/tr&gt;<br /> <br />   &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	     &lt;td width=&quot;25%&quot; class=&quot;font1&quot;&gt;Image Verification&#58;&amp;nbsp;&lt;input type=&quot;hidden&quot; name=&quot;rand&quot; value=&quot;$Vrand&quot;&gt;&lt;/td&gt; <br /> 	     &lt;td&gt;Enter these characters &lt;img src=&quot;verifyimage.php?k=$Vrand&quot; alt=&quot;Enter these characters into the textbox on the right&quot; height=&quot;18&quot; width=&quot;75&quot;&gt; into this text box &lt;input type=&quot;text&quot; size=&quot;8&quot; maxlength=&quot;8&quot; name=&quot;keycode&quot; value=&quot;$_POST&#91;rand&#93;&quot;&gt;&lt;/td&gt;<br /> 	&lt;/tr&gt;<br /> 	  &lt;tr bgcolor=&quot;$VARS&#91;tb_color_1&#93;&quot;&gt;<br /> 	    &lt;td width=&quot;25%&quot;&gt;&lt;div align=&quot;left&quot; class=&quot;font2&quot;&gt;$HTML_CODE&lt;br /&gt;$SMILE_CODE&lt;br /&gt;$AG_CODE&lt;/div&gt;&lt;/td&gt;<br /> 	    &lt;td&gt;<br /> <br />       &lt;input type=&quot;submit&quot; name=&quot;gb_action&quot; value=&quot;$LANG&#91;FormSubmit&#93;&quot; class=&quot;input&quot; onclick=&quot;if&#40;flag==1&#41; return false;&quot;&gt;<br />       &lt;input type=&quot;submit&quot; name=&quot;gb_action&quot; value=&quot;$LANG&#91;FormPreview&#93;&quot; class=&quot;input&quot; onclick=&quot;if&#40;flag==1&#41; return false;&quot;&gt;<br />       &lt;input type=&quot;reset&quot; value=&quot;$LANG&#91;FormReset&#93;&quot; class=&quot;input&quot;&gt;<br />     &lt;/td&gt;<br />   &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;/form&gt;[/code]<br /> <br /> [b]add.class.php[/b]<br /> <br /> [code]<br /> &lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * Advanced Guestbook 2.3.1 &#40;PHP/MySQL&#41;<br />  * Copyright &#40;c&#41;2001 Chi Kien Uong<br />  * URL&#58; http&#58;//www.proxy2.de<br />  * ----------------------------------------------<br />  */<br /> <br /> class addentry &#123;<br /> <br />     var $db;<br />     var $ip;<br />     var $include_path;<br />     var $template;<br />     var $name = '';<br />     var $email = '';<br />     var $url = '';<br />     var $comment = '';<br />     var $location = '';<br />     var $icq = '';<br />     var $aim = '';<br />     var $gender = '';<br />     var $userfile = '';<br />     var $user_img = '';<br />     var $preview = '';<br />     var $private = '';<br />     var $image_file = '';<br />     var $image_tag = '';<br />     var $GB_TPL = array&#40;&#41;;<br />     var $table = array&#40;&#41;;<br />     var $Vrand = '';<br /> <br />     function addentry&#40;$path=''&#41; &#123;<br />         global $GB_TPL, $GB_TBL, $HTTP_SERVER_VARS;<br />         if &#40;isset&#40;$HTTP_SERVER_VARS&#91;'HTTP_X_FORWARDED_FOR'&#93;&#41; &amp;&amp; eregi&#40;&quot;^&#91;0-9&#93;&#123;1,3&#125;\\.&#91;0-9&#93;&#123;1,3&#125;\\.&#91;0-9&#93;&#123;1,3&#125;\\.&#91;0-9&#93;&#123;1,3&#125;$&quot;,$HTTP_SERVER_VARS&#91;'HTTP_X_FORWARDED_FOR'&#93;&#41;&#41; &#123;<br />             $this-&gt;ip = $HTTP_SERVER_VARS&#91;'HTTP_X_FORWARDED_FOR'&#93;;<br />         &#125; else &#123;<br />             $this-&gt;ip = getenv&#40;&quot;REMOTE_ADDR&quot;&#41;;<br />         &#125;<br />         $this-&gt;db = new guestbook_vars&#40;$path&#41;;<br />         $this-&gt;db-&gt;getVars&#40;&#41;;<br />         $this-&gt;template = &amp;$this-&gt;db-&gt;template;<br />         $this-&gt;include_path = $path;<br />         $this-&gt;GB_TPL = &amp;$GB_TPL;<br />         $this-&gt;table = &amp;$GB_TBL;<br />     &#125;<br /> <br />     function undo_htmlspecialchars&#40;$string&#41; &#123;<br />         $html = array &#40;<br />             &quot;&amp;amp;&quot;  =&gt; &quot;&amp;&quot;,<br />             &quot;&amp;quot;&quot; =&gt; &quot;\&quot;&quot;,<br />             &quot;&amp;lt;&quot;   =&gt; &quot;&lt;&quot;,<br />             &quot;&amp;gt;&quot;   =&gt; &quot;&gt;&quot;<br />         &#41;;<br />         for&#40;reset&#40;$html&#41;; $key=key&#40;$html&#41;; next&#40;$html&#41;&#41; &#123;<br />             $string = str_replace&#40;&quot;$key&quot;,&quot;$html&#91;$key&#93;&quot;,$string&#41;;<br />         &#125;<br />         return &#40;$string&#41;;<br />     &#125;<br /> <br />     function clear_tmpfiles&#40;$cachetime=1800&#41; &#123;<br />         global $GB_TMP;<br />         $delfiles = 0;<br />         $filelist = '';<br />         if &#40;is_dir&#40;&quot;$this-&gt;include_path/$GB_TMP&quot;&#41;&#41; &#123;<br />             chdir&#40;&quot;$this-&gt;include_path/$GB_TMP&quot;&#41;;<br />             $hnd = opendir&#40;&quot;.&quot;&#41;;<br />             while &#40;$file = readdir&#40;$hnd&#41;&#41; &#123;<br />                 if&#40;is_file&#40;$file&#41;&#41; &#123;<br />                     $filelist&#91;&#93; = $file;<br />                 &#125;<br />             &#125;<br />             closedir&#40;$hnd&#41;;<br />         &#125;<br />         if &#40;is_array&#40;$filelist&#41;&#41; &#123;<br />             while &#40;list &#40;$key, $file&#41; = each &#40;$filelist&#41;&#41; &#123;<br />                 $tmpfile = explode&#40;&quot;.&quot;,$file&#41;;<br />                 $tmpfile&#91;0&#93; = ereg_replace &#40;&quot;img-&quot;, &quot;&quot;, $tmpfile&#91;0&#93;&#41;;<br />                 if &#40;$tmpfile&#91;0&#93; &lt; &#40;time&#40;&#41;-$cachetime&#41;&#41; &#123;<br />                     if &#40;unlink&#40;$file&#41;&#41; &#123;<br />                         $delfiles ++;<br />                     &#125;<br />                 &#125;<br />             &#125;<br />         &#125;<br />         return $delfiles;<br />     &#125;<br /> <br />     function is_uploaded_file_readable&#40;$uploaded_file_tmp_name&#41; &#123;<br />         $check = @fopen&#40;$uploaded_file_tmp_name, &quot;rb&quot;&#41;;<br />         if &#40;$check&#41; &#123;<br />             fclose&#40;$check&#41;;<br />             return 1;   <br />         &#125; else &#123;<br />             $is_safe_mode = get_cfg_var&#40;&quot;safe_mode&quot;&#41;;<br />             if &#40;$is_safe_mode&#41; &#123;<br />                 return -1;<br />             &#125; else &#123;          <br />                 return 2;<br />             &#125;<br />         &#125;<br />     &#125;<br /> <br />     function check_entry&#40;$type=''&#41; &#123;<br />         global $GB_UPLOAD, $GB_TMP, $GB_PG;<br />         $this-&gt;db-&gt;VARS&#91;&quot;max_img_size&quot;&#93; = $this-&gt;db-&gt;VARS&#91;&quot;max_img_size&quot;&#93;*1024;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;banned_ip&quot;&#93;==1&#41; &#123;<br />             if &#40;$this-&gt;db-&gt;isBannedIp&#40;$this-&gt;ip&#41;&#41; &#123;<br />                  return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost9&quot;&#93;&#41;;<br />             &#125;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;flood_check&quot;&#93;==1&#41; &#123;<br />             if &#40;$this-&gt;db-&gt;FloodCheck&#40;$this-&gt;ip&#41;&#41; &#123;<br />                 return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost8&quot;&#93;&#41;;<br />             &#125;<br />         &#125;<br />         if &#40;is_array&#40;$this-&gt;userfile&#41; &amp;&amp; $this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93; != &quot;none&quot;&#41; &#123;<br />             $uploaded_img_file_stat = $this-&gt;is_uploaded_file_readable&#40;$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;&#41;;        <br />         &#125; else &#123;<br />             $uploaded_img_file_stat = -1;<br />         &#125;<br />         if &#40;$uploaded_img_file_stat &gt; 0&#41; &#123;<br />             $extension = array&#40;&quot;1&quot; =&gt; 'gif',&quot;2&quot; =&gt; 'jpg',&quot;3&quot; =&gt; 'png',&quot;4&quot; =&gt; 'swf'&#41;;<br />             $the_time = time&#40;&#41;;<br />             if &#40;$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;size&quot;&#93; &gt; $this-&gt;db-&gt;VARS&#91;&quot;max_img_size&quot;&#93;&#41; &#123;<br />                 return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost6&quot;&#93;&#41;;<br />             &#125; else &#123;<br />                 if &#40;$uploaded_img_file_stat == 1&#41; &#123;<br />                     $size = GetImageSize&#40;$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;&#41;;<br />                     $open_basedir_res = false;<br />                 &#125; else &#123;<br />                     $open_basedir_res = true;<br />                     if &#40;!eregi&#40;&quot;WIN&quot;,PHP_OS&#41;&#41; &#123;<br />                         exec&#40;&quot;cp &quot;.$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;.&quot; $this-&gt;include_path/$GB_TMP/img-$the_time.tmp&quot;&#41;;<br />                     &#125; else &#123;<br />                         $win_command = str_replace&#40;&quot;/&quot;,&quot;\\&quot;,$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;&#41;;<br />                         $win_loc = str_replace&#40;&quot;/&quot;,&quot;\\&quot;, &quot;$this-&gt;include_path/$GB_TMP/img-$the_time.tmp&quot;&#41;;<br />                         exec&#40;&quot;copy $win_command $win_loc&quot;&#41;;<br />                     &#125;                    <br />                     $size = GetImageSize&#40;&quot;$this-&gt;include_path/$GB_TMP/img-$the_time.tmp&quot;&#41;;  <br />                 &#125;<br />                 if &#40;$size&#91;2&#93;&gt;0 &amp;&amp; $size&#91;2&#93;&lt;4&#41; &#123;<br />                     $this-&gt;image_file = &quot;img-$the_time.&quot;.$extension&#91;$size&#91;2&#93;&#93;;<br />                     $img = new gb_image&#40;&#41;;<br />                     $img-&gt;set_destdir&#40;&quot;$this-&gt;include_path/$GB_UPLOAD&quot;&#41;;<br />                     $img-&gt;set_border_size&#40;$this-&gt;db-&gt;VARS&#91;&quot;img_width&quot;&#93;, $this-&gt;db-&gt;VARS&#91;&quot;img_height&quot;&#93;&#41;;<br />                     if &#40;$type==&quot;preview&quot;&#41; &#123;<br />                         if &#40;!$open_basedir_res&#41; &#123;<br />                             copy&#40;$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;, &quot;$this-&gt;include_path/$GB_TMP/$this-&gt;image_file&quot;&#41;;<br />                         &#125; else &#123;<br />                             rename&#40;&quot;$this-&gt;include_path/$GB_TMP/img-$the_time.tmp&quot;, &quot;$this-&gt;include_path/$GB_TMP/$this-&gt;image_file&quot;&#41;; <br />                         &#125;<br />                         $new_img_size = $img-&gt;get_img_size_format&#40;$size&#91;0&#93;, $size&#91;1&#93;&#41;;<br />                         $GB_UPLOAD = $GB_TMP;<br />                         $row&#91;'p_filename'&#93; = $this-&gt;image_file;<br />                         $row&#91;'width'&#93; = $size&#91;0&#93;;<br />                         $row&#91;'height'&#93; = $size&#91;1&#93;;<br />                         eval&#40;&quot;\$this-&gt;tmp_image = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'image'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />                     &#125; else &#123;<br />                         if &#40;!$open_basedir_res&#41; &#123;<br />                             copy&#40;$this-&gt;userfile&#91;&quot;userfile&quot;&#93;&#91;&quot;tmp_name&quot;&#93;, &quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;image_file&quot;&#41;;<br />                         &#125; else &#123;<br />                             rename&#40;&quot;$this-&gt;include_path/$GB_TMP/img-$the_time.tmp&quot;, &quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;image_file&quot;&#41;;    <br />                         &#125;<br />                         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;thumbnail&quot;&#93;==1&#41; &#123;<br />                             $min_size = 1024*$this-&gt;db-&gt;VARS&#91;&quot;thumb_min_fsize&quot;&#93;;<br />                             $img-&gt;set_min_filesize&#40;$min_size&#41;;<br />                             $img-&gt;set_prefix&#40;&quot;t_&quot;&#41;;<br />                             $img-&gt;create_thumbnail&#40;&quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;image_file&quot;,&quot;$this-&gt;image_file&quot;&#41;;<br />                         &#125;<br />                     &#125;<br />                 &#125; else &#123;<br />                     return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost7&quot;&#93;&#41;;<br />                 &#125;<br />             &#125;<br />         &#125;<br />         if &#40;!empty&#40;$this-&gt;user_img&#41;&#41; &#123;<br />             $this-&gt;image_file = trim&#40;$this-&gt;user_img&#41;;<br />         &#125;<br />         $this-&gt;name = $this-&gt;db-&gt;FormatString&#40;$this-&gt;name&#41;;<br />         $this-&gt;location = $this-&gt;db-&gt;FormatString&#40;$this-&gt;location&#41;;<br />         $this-&gt;comment = $this-&gt;db-&gt;FormatString&#40;$this-&gt;comment&#41;;<br />         $this-&gt;icq = $this-&gt;db-&gt;FormatString&#40;$this-&gt;icq&#41;;<br />         $this-&gt;aim = $this-&gt;db-&gt;FormatString&#40;$this-&gt;aim&#41;;<br />         $this-&gt;aim = htmlspecialchars&#40;$this-&gt;aim&#41;;<br />         if &#40;$this-&gt;icq &lt; 1000 || $this-&gt;icq &gt;999999999&#41; &#123;<br />             $this-&gt;icq='';<br />         &#125;<br />         if &#40;$this-&gt;name == &quot;&quot;&#41; &#123;<br />             return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost1&quot;&#93;&#41;;<br />         &#125; elseif &#40;strlen&#40;$this-&gt;comment&#41;&lt;$this-&gt;db-&gt;VARS&#91;&quot;min_text&quot;&#93; || strlen&#40;$this-&gt;comment&#41;&gt;$this-&gt;db-&gt;VARS&#91;&quot;max_text&quot;&#93;&#41; &#123;<br />             return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost3&quot;&#93;&#41;;<br />         &#125; else &#123;<br />             $this-&gt;url = trim&#40;$this-&gt;url&#41;;<br />             $this-&gt;email = trim&#40;$this-&gt;email&#41;;<br />             if &#40;!eregi&#40;&quot;^&#91;_a-z0-9-&#93;+&#40;\\.&#91;_a-z0-9-&#93;+&#41;*@&#40;&#91;0-9a-z&#93;&#91;0-9a-z-&#93;*&#91;0-9a-z&#93;\\.&#41;+&#91;a-z&#93;&#123;2,5&#125;$&quot;, $this-&gt;email&#41; &#41; &#123;<br />                 $this-&gt;email = '';<br />             &#125;<br />             if &#40;!eregi&#40;&quot;^http&#58;//&#91;_a-z0-9-&#93;+\\.&#91;_a-z0-9-&#93;+&quot;, $this-&gt;url&#41;&#41; &#123;<br />                 $this-&gt;url = '';<br />             &#125;<br />             if &#40;htmlspecialchars&#40;$this-&gt;url&#41; != &quot;$this-&gt;url&quot;&#41; &#123;<br />                 $this-&gt;url = '';<br />             &#125;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;censor&quot;&#93;==1&#41; &#123;<br />             $this-&gt;name = $this-&gt;db-&gt;CensorBadWords&#40;$this-&gt;name&#41;;<br />             $this-&gt;location = $this-&gt;db-&gt;CensorBadWords&#40;$this-&gt;location&#41;;<br />             $this-&gt;comment = $this-&gt;db-&gt;CensorBadWords&#40;$this-&gt;comment&#41;;<br />         &#125;<br />         if &#40;!$this-&gt;db-&gt;CheckWordLength&#40;$this-&gt;name&#41; || !$this-&gt;db-&gt;CheckWordLength&#40;$this-&gt;location&#41;&#41; &#123;<br />             return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost4&quot;&#93;&#41;;<br />         &#125;<br />         if &#40;!$this-&gt;db-&gt;CheckWordLength&#40;$this-&gt;comment&#41;&#41; &#123;<br />             return $this-&gt;db-&gt;gb_error&#40;$this-&gt;db-&gt;LANG&#91;&quot;ErrorPost10&quot;&#93;&#41;;<br />         &#125;<br />         return 1;<br />     &#125;<br /> <br />     function add_guest&#40;&#41; &#123;<br />         global $GB_TMP, $GB_UPLOAD, $GB_PG;<br />         if &#40;$this-&gt;preview==1 &amp;&amp; $this-&gt;user_img&#41; &#123;<br />             $img = new gb_image&#40;&#41;;<br />             $img-&gt;set_destdir&#40;&quot;$this-&gt;include_path/$GB_UPLOAD&quot;&#41;;<br />             $img-&gt;set_border_size&#40;$this-&gt;db-&gt;VARS&#91;&quot;img_width&quot;&#93;, $this-&gt;db-&gt;VARS&#91;&quot;img_height&quot;&#93;&#41;;<br />             if &#40;$this-&gt;db-&gt;VARS&#91;&quot;thumbnail&quot;&#93;==1&#41; &#123;<br />                 $min_size = 1024*$this-&gt;db-&gt;VARS&#91;&quot;thumb_min_fsize&quot;&#93;;<br />                 $img-&gt;set_min_filesize&#40;$min_size&#41;;<br />                 $img-&gt;set_prefix&#40;&quot;t_&quot;&#41;;<br />                 $img-&gt;create_thumbnail&#40;&quot;$this-&gt;include_path/$GB_TMP/$this-&gt;user_img&quot;,$this-&gt;user_img&#41;;<br />             &#125;<br />             copy&#40;&quot;$this-&gt;include_path/$GB_TMP/$this-&gt;user_img&quot;, &quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;user_img&quot;&#41;;<br />             unlink&#40;&quot;$this-&gt;include_path/$GB_TMP/$this-&gt;user_img&quot;&#41;;<br />             $this-&gt;image_file = $this-&gt;user_img;<br />         &#125;<br />         $this-&gt;name = htmlspecialchars&#40;$this-&gt;name&#41;;<br />         $this-&gt;location = htmlspecialchars&#40;$this-&gt;location&#41;;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_html&quot;&#93; == 0&#41; &#123;<br />             $this-&gt;comment = htmlspecialchars&#40;$this-&gt;comment&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;agcode&quot;&#93; == 1&#41; &#123;<br />             $this-&gt;comment = $this-&gt;db-&gt;AGCode&#40;$this-&gt;comment&#41;;<br />         &#125;<br />         if &#40;!get_magic_quotes_gpc&#40;&#41;&#41; &#123;<br />             $this-&gt;name = addslashes&#40;$this-&gt;name&#41;;<br />             $this-&gt;location = addslashes&#40;$this-&gt;location&#41;;<br />             $this-&gt;aim = addslashes&#40;$this-&gt;aim&#41;;<br />             $this-&gt;email = addslashes&#40;$this-&gt;email&#41;;<br />             $this-&gt;url = addslashes&#40;$this-&gt;url&#41;;<br />             $this-&gt;comment = addslashes&#40;$this-&gt;comment&#41;;<br />         &#125;<br />         $host = @gethostbyaddr&#40;$this-&gt;ip&#41;;<br />         $agent = getenv&#40;&quot;HTTP_USER_AGENT&quot;&#41;;<br />         $the_time = time&#40;&#41;;<br />         $sql_usertable = &#40;$this-&gt;private==1&#41; ? $this-&gt;table&#91;'priv'&#93; &#58; $this-&gt;table&#91;'data'&#93;;<br />         $this-&gt;db-&gt;query&#40;&quot;INSERT INTO $sql_usertable &#40;name,gender,email,url,date,location,host,browser,comment,icq,aim&#41; VALUES &#40;'$this-&gt;name','$this-&gt;gender','$this-&gt;email','$this-&gt;url','$the_time','$this-&gt;location','$host','$agent','$this-&gt;comment','$this-&gt;icq','$this-&gt;aim'&#41;&quot;&#41;;<br />         if &#40;!empty&#40;$this-&gt;image_file&#41; || !empty&#40;$this-&gt;user_img&#41;&#41; &#123;<br />             $size = GetImageSize&#40;&quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;image_file&quot;&#41;;<br />             if &#40;is_array&#40;$size&#41; &amp;&amp; $size&#91;2&#93;&gt;0 &amp;&amp; $size&#91;2&#93;&lt;4&#41; &#123;<br />                 $book_id = &#40;$this-&gt;private==1&#41; ? 1 &#58; 2;<br />                 $p_filesize = filesize&#40;&quot;$this-&gt;include_path/$GB_UPLOAD/$this-&gt;image_file&quot;&#41;;<br />                 $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT MAX&#40;id&#41; AS msg_id FROM $sql_usertable&quot;&#41;&#41;;<br />                 $this-&gt;db-&gt;query&#40;&quot;INSERT INTO &quot;.$this-&gt;table&#91;'pics'&#93;.&quot; &#40;msg_id,book_id,p_filename,p_size,width,height&#41; VALUES &#40;'&quot;.$this-&gt;db-&gt;record&#91;'msg_id'&#93;.&quot;',$book_id,'$this-&gt;image_file','$p_filesize','$size&#91;0&#93;','$size&#91;1&#93;'&#41;&quot;&#41;;<br />             &#125;<br />         &#125;<br />         $from_email = &#40;$this-&gt;email == &quot;&quot;&#41; ? &quot;nobody@$host&quot; &#58; $this-&gt;email;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;notify_private&quot;&#93;==1 &amp;&amp; $this-&gt;private==1&#41; &#123;<br />             @mail&#40;$this-&gt;db-&gt;VARS&#91;&quot;admin_mail&quot;&#93;,$this-&gt;db-&gt;LANG&#91;&quot;EmailAdminSubject&quot;&#93;,&quot;$this-&gt;name\n$this-&gt;host\n\n$this-&gt;comment&quot;, &quot;From&#58; &lt;&quot;.$this-&gt;name.&quot;&gt; $from_email\nX-Mailer&#58; Advanced Guestbook 2&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;notify_admin&quot;&#93;==1 &amp;&amp; $this-&gt;private==0&#41; &#123;<br />             @mail&#40;$this-&gt;db-&gt;VARS&#91;&quot;admin_mail&quot;&#93;,$this-&gt;db-&gt;LANG&#91;&quot;EmailAdminSubject&quot;&#93;,&quot;$this-&gt;name\n$this-&gt;host\n\n$this-&gt;comment&quot;, &quot;From&#58; &lt;&quot;.$this-&gt;name.&quot;&gt; $from_email\nX-Mailer&#58; Advanced Guestbook 2&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;notify_guest&quot;&#93;==1 &amp;&amp; $this-&gt;email != ''&#41; &#123;<br />             @mail&#40;$this-&gt;email,$this-&gt;db-&gt;LANG&#91;&quot;EmailGuestSubject&quot;&#93;,$this-&gt;db-&gt;VARS&#91;&quot;notify_mes&quot;&#93;, &quot;From&#58; &lt;&quot;.$this-&gt;db-&gt;VARS&#91;'admin_mail'&#93;.&quot;&gt; &quot;.$this-&gt;db-&gt;VARS&#91;'admin_mail'&#93;.&quot;\nX-Mailer&#58; Advanced Guestbook 2&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;flood_check&quot;&#93;==1&#41; &#123;<br />             $this-&gt;db-&gt;query&#40;&quot;INSERT INTO &quot;.$this-&gt;table&#91;'ip'&#93;.&quot; &#40;guest_ip,timestamp&#41; VALUES &#40;'$this-&gt;ip','$the_time'&#41;&quot;&#41;;<br />         &#125;<br />         $LANG =&amp; $this-&gt;db-&gt;LANG;<br />         $VARS =&amp; $this-&gt;db-&gt;VARS;<br />         eval&#40;&quot;\$success_html = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'success'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$success_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'footer'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         return $success_html;<br />     &#125;<br /> <br />     function form_addguest&#40;&#41; &#123;<br />         global $GB_PG, $HTTP_COOKIE_VARS;<br />         $HTML_CODE = &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_html&quot;&#93; == 1&#41; ? $this-&gt;db-&gt;LANG&#91;&quot;BookMess2&quot;&#93; &#58; $this-&gt;db-&gt;LANG&#91;&quot;BookMess1&quot;&#93;;<br />         $SMILE_CODE = &#40;$this-&gt;db-&gt;VARS&#91;&quot;smilies&quot;&#93; == 1&#41; ? $this-&gt;db-&gt;LANG&#91;&quot;FormMess2&quot;&#93; &#58; $this-&gt;db-&gt;LANG&#91;&quot;FormMess7&quot;&#93;;<br />         $AG_CODE = &#40;$this-&gt;db-&gt;VARS&#91;&quot;agcode&quot;&#93; == 1&#41; ? $this-&gt;db-&gt;LANG&#91;&quot;FormMess3&quot;&#93; &#58; $this-&gt;db-&gt;LANG&#91;&quot;FormMess6&quot;&#93;;<br />         $LANG =&amp; $this-&gt;db-&gt;LANG;<br />         $VARS =&amp; $this-&gt;db-&gt;VARS;<br />         $OPTIONS&#91;&#93; ='';<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_icq&quot;&#93;==1&#41; &#123;<br />             eval&#40;&quot;\$OPTIONS&#91;'icq'&#93; = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'frm_icq'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_aim&quot;&#93;==1&#41; &#123;<br />             eval&#40;&quot;\$OPTIONS&#91;'aim'&#93; = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'frm_aim'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_gender&quot;&#93;==1&#41; &#123;<br />             eval&#40;&quot;\$OPTIONS&#91;'gender'&#93; = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'frm_gender'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_img&quot;&#93;==1&#41; &#123;<br />             eval&#40;&quot;\$OPTIONS&#91;'img'&#93; = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'frm_image'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125;<br />         $OPTIONAL = implode&#40;&quot;\n&quot;,$OPTIONS&#41;;<br />         if &#40;isset&#40;$HTTP_COOKIE_VARS&#91;'lang'&#93;&#41; &amp;&amp; !empty&#40;$HTTP_COOKIE_VARS&#91;'lang'&#93;&#41; &amp;&amp; file_exists&#40;&quot;$this-&gt;include_path/lang/codes-&quot;.$HTTP_COOKIE_VARS&#91;'lang'&#93;.&quot;.php&quot;&#41;&#41; &#123;<br />             $LANG_CODES = &quot;$GB_PG&#91;base_url&#93;/lang/codes-&quot;.$HTTP_COOKIE_VARS&#91;'lang'&#93;.&quot;.php&quot;;<br />         &#125; elseif &#40;file_exists&#40;&quot;$this-&gt;include_path/lang/codes-&quot;.$VARS&#91;'lang'&#93;.&quot;.php&quot;&#41;&#41; &#123;<br />             $LANG_CODES = &quot;$GB_PG&#91;base_url&#93;/lang/codes-&quot;.$VARS&#91;'lang'&#93;.&quot;.php&quot;;<br />         &#125; else &#123;<br />             $LANG_CODES = &quot;$GB_PG&#91;base_url&#93;/lang/codes-english.php&quot;;<br />         &#125;<br />         eval&#40;&quot;\$addform_html = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'header'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$addform_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'form'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$addform_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'footer'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         return $addform_html;<br />     &#125;<br /> <br />     function preview_entry&#40;&#41; &#123;<br />         global $GB_PG;<br />         if &#40;get_magic_quotes_gpc&#40;&#41;&#41; &#123;<br />             $this-&gt;name = stripslashes&#40;$this-&gt;name&#41;;<br />             $this-&gt;comment = stripslashes&#40;$this-&gt;comment&#41;;<br />             $this-&gt;location = stripslashes&#40;$this-&gt;location&#41;;<br />         &#125;<br />         $this-&gt;name = htmlspecialchars&#40;$this-&gt;name&#41;;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_html&quot;&#93; == 0&#41; &#123;<br />             $message = htmlspecialchars&#40;$this-&gt;comment&#41;;<br />             $message = nl2br&#40;$message&#41;;<br />         &#125; else &#123;<br />             $message = nl2br&#40;$this-&gt;comment&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;smilies&quot;&#93; == 1&#41; &#123;<br />             $message = $this-&gt;db-&gt;emotion&#40;$message&#41;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;agcode&quot;&#93; == 1&#41; &#123;<br />             $message = $this-&gt;db-&gt;AGCode&#40;$message&#41;;<br />         &#125;<br />         $this-&gt;location = htmlspecialchars&#40;$this-&gt;location&#41;;<br />         $this-&gt;comment = htmlspecialchars&#40;$this-&gt;comment&#41;;<br />         $USER_PIC =&#40;isset&#40;$this-&gt;tmp_image&#41;&#41; ? $this-&gt;tmp_image &#58; '';<br />         $DATE = $this-&gt;db-&gt;DateFormat&#40;time&#40;&#41;&#41;;<br />         $host = @gethostbyaddr&#40;$this-&gt;ip&#41;;<br />         $AGENT = getenv&#40;&quot;HTTP_USER_AGENT&quot;&#41;;<br />         $LANG =&amp; $this-&gt;db-&gt;LANG;<br />         $VARS =&amp; $this-&gt;db-&gt;VARS;<br />         if &#40;$this-&gt;url&#41; &#123;<br />             $row&#91;'url'&#93; = $this-&gt;url;<br />             eval&#40;&quot;\$URL = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'url'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125; else &#123;<br />             $URL = '';<br />         &#125;<br />         if &#40;$this-&gt;icq &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_icq&quot;&#93;==1&#41; &#123;<br />             $row&#91;'icq'&#93; = $this-&gt;icq;<br />             eval&#40;&quot;\$ICQ = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'icq'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125; else &#123;<br />             $ICQ = '';<br />         &#125;<br />         if &#40;$this-&gt;aim &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_aim&quot;&#93;==1&#41; &#123;<br />             $row&#91;'aim'&#93; = $this-&gt;aim;<br />             eval&#40;&quot;\$AIM = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'aim'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125; else &#123;<br />             $AIM = '';<br />         &#125;<br />         if &#40;$this-&gt;email&#41; &#123;<br />             $row&#91;'email'&#93; = $this-&gt;email;<br />             eval&#40;&quot;\$EMAIL = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'email'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         &#125; else &#123;<br />             $EMAIL = '';<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_gender&quot;&#93;==1&#41; &#123;<br />             $GENDER = &#40;$this-&gt;gender==&quot;f&quot;&#41; ? &quot;&amp;nbsp;&lt;img src=\&quot;$GB_PG&#91;base_url&#93;/img/female.gif\&quot; width=\&quot;12\&quot; height=\&quot;12\&quot;&gt;&quot; &#58; &quot;&amp;nbsp;&lt;img src=\&quot;$GB_PG&#91;base_url&#93;/img/male.gif\&quot; width=\&quot;12\&quot; height=\&quot;12\&quot;&gt;&quot;;<br />         &#125; else &#123;<br />             $GENDER = '';<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;show_ip&quot;&#93; == 1&#41; &#123;<br />             $hostname = &#40; eregi&#40;&quot;^&#91;-a-z_&#93;+&quot;, $host&#41; &#41; ? &quot;Host&quot; &#58; &quot;IP&quot;;<br />             $HOST = &quot;$hostname&#58; $host\n&quot;;<br />         &#125; else &#123;<br />             $HOST = '';<br />         &#125;<br />         $HIDDEN = &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_preview\&quot; value=\&quot;1\&quot;&gt;\n&quot;;<br />         <br /> $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;keycode\&quot; value=\&quot;&quot;.$_POST&#91;&quot;keycode&quot;&#93;.&quot;\&quot;&gt;&quot;;<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;rand\&quot; value=\&quot;$Vrand\&quot;&gt;\n&quot;; //Hidden Random Value<br /> 	$HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_name\&quot; value=\&quot;&quot;.$this-&gt;name.&quot;\&quot;&gt;\n&quot;;<br /> <br />         $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_email\&quot; value=\&quot;&quot;.$this-&gt;email.&quot;\&quot;&gt;\n&quot;;<br />         $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_url\&quot; value=\&quot;&quot;.$this-&gt;url.&quot;\&quot;&gt;\n&quot;;<br />         $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_comment\&quot; value=\&quot;&quot;.$this-&gt;comment.&quot;\&quot;&gt;\n&quot;;<br />         $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_location\&quot; value=\&quot;&quot;.$this-&gt;location.&quot;\&quot;&gt;\n&quot;;<br />         if &#40;$this-&gt;image_file&#41; &#123;<br />             $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_user_img\&quot; value=\&quot;&quot;.$this-&gt;image_file.&quot;\&quot;&gt;\n&quot;;<br />         &#125;<br />         if &#40;$this-&gt;private==1&#41; &#123;<br />             $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_private\&quot; value=\&quot;&quot;.$this-&gt;private.&quot;\&quot;&gt;\n&quot;;<br />         &#125;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;allow_gender&quot;&#93;==1&#41; &#123;<br />             $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_gender\&quot; value=\&quot;&quot;.$this-&gt;gender.&quot;\&quot;&gt;\n&quot;;<br />         &#125;<br />         if &#40;$this-&gt;icq &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_icq&quot;&#93;==1&#41; &#123;<br />             $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_icq\&quot; value=\&quot;&quot;.$this-&gt;icq.&quot;\&quot;&gt;\n&quot;;<br />         &#125;<br />         if &#40;$this-&gt;aim &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_aim&quot;&#93;==1&#41; &#123;<br />             $HIDDEN .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;gb_aim\&quot; value=\&quot;&quot;.$this-&gt;aim.&quot;\&quot;&gt;\n&quot;;<br />         &#125;<br />         $row&#91;'name'&#93; = $this-&gt;name;<br />         $row&#91;'location'&#93; = $this-&gt;location;<br />         $row&#91;'email'&#93; = $this-&gt;email;<br />         eval&#40;&quot;\$GB_PREVIEW = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'prev_entry'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$preview_html = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'header'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$preview_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'preview'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$preview_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;GB_TPL&#91;'footer'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         return $preview_html;<br />     &#125;<br /> <br />     function process&#40;$action=''&#41; &#123;<br />         switch &#40;$action&#41; &#123;<br />             case $this-&gt;db-&gt;LANG&#91;&quot;FormSubmit&quot;&#93;&#58;<br />                 if &#40;$this-&gt;preview==1&#41; &#123;<br />                     $this-&gt;comment = $this-&gt;undo_htmlspecialchars&#40;$this-&gt;comment&#41;;<br />                     $this-&gt;name = $this-&gt;undo_htmlspecialchars&#40;$this-&gt;name&#41;;<br />                 &#125;<br />                 $this-&gt;clear_tmpfiles&#40;&#41;;<br />                 $status = $this-&gt;check_entry&#40;&#41;;<br />                 return &#40;$status == 1&#41; ? $this-&gt;add_guest&#40;&#41; &#58; $status;<br />                 break;<br /> <br />             case $this-&gt;db-&gt;LANG&#91;&quot;FormPreview&quot;&#93;&#58;<br />                 $status = $this-&gt;check_entry&#40;&quot;preview&quot;&#41;;<br />                 return &#40;$status == 1&#41; ? $this-&gt;preview_entry&#40;&#41; &#58; $status;<br />                 break;<br /> <br />             default&#58;<br />                 return $this-&gt;form_addguest&#40;&#41;;<br />         &#125;<br />     &#125;<br /> <br /> &#125;<br /> <br /> ?&gt;<br /> [/code]<br /> <br /> I am pretty sure I've followed to the letter but as everything in life I could be wrong. Did I say thank you for helping me. :D]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9157.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9157.php</link>
				<pubDate><![CDATA[Thu, 15 Jul 2004 23:37:54]]> GMT</pubDate>
				<author><![CDATA[ Sam Emme]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]    function form_addguest&#40;&#41; &#123;<br />         global $GB_PG, $HTTP_COOKIE_VARS; [/code]<br /> should be<br /> [code]    function form_addguest&#40;&#41; &#123;<br />         global $GB_PG, $HTTP_COOKIE_VARS, $Vrand; [/code]<br /> <br /> find<br /> [code]    function preview_entry&#40;&#41; &#123;<br />         global $GB_PG; [/code]<br /> <br /> and make it<br /> [code]    function preview_entry&#40;&#41; &#123;<br />         global $GB_PG,$Vrand; [/code]<br /> <br /> I left the first instruction out and only discovered the preview error yesterday.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9211.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9211.php</link>
				<pubDate><![CDATA[Sat, 17 Jul 2004 14:42:20]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>partially working image verification - help!</title>
				<description><![CDATA[ I have installed and updated all the necessary files, but must have missed something somewhere.  <br /> In adding a new guestbook (v 2.3.1) entry, the form is ok - shows verification line, generated Image numbers, and acceptance box.  If I do not enter anything into the acceptance box, ie leave blank, I get the pop-up saying I must enter the characters - ok.  <br /> If I enter just 1 character, or any amount of characters, whether they be the random image chars or not, the entry passes the test and gets added to the guestbook.<br /> Initially in the form.php I had to add the $GB_PG[base_url] to get the Image to display.  ie :<br /> [b]&lt;tr bgcolor="$VARS[tb_color_1]"&gt;<br />   &lt;td width="25%" class="font1"&gt;Image Verification:&amp;nbsp;&lt;input type="hidden" name="rand" value="$Vrand"&gt;&lt;/td&gt;<br />   &lt;td&gt;Enter these characters <br /> &lt;img src="$GB_PG[base_url]/verifyimage.php?k=$Vrand" alt="Enter these characters into the textbox on the right" height="18" width="75"&gt; into this text box &lt;input type="text" size="8" maxlength="8" name="keycode" value="$_POST[rand]"&gt;&lt;/td&gt;<br /> &lt;/tr&gt;[/b]<br /> <br /> Any other ideas?<br /> <br /> Thanks in anticipation.<br /> <br /> Paul ( www.1820Settlers.com )]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9363.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9363.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 11:29:53]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ If it's not verifying if the code is correct or not then the error must lie in the the lib/add.class.php file. Check that you have added everything to that as per the instructions.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9364.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9364.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 12:42:24]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Carbonize,<br /> <br /> I've checked my add.class.php code and compared it to the earlier post above, plus the corrections, and there is no difference.  Still won't verify.  Any other pointers?<br /> <br /> Paul]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9369.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9369.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 13:50:14]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Redownload the verification.zip file then go through the instructions step by step just to make sure. ALso make sure you have the verify.php and verifyimage.php fils in the same folder as addentry.php. I'm at work right now but if you still can't get it to work I will try and upload a zip containing pre modded files.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9371.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9371.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 15:09:33]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Started afresh..  Re-extracted the base files from the guestbook original download.  Downloaded your verification.zip again, and went very slowly cut'n'paste all the requirements.  ftp'd the files up to correct directories on website.  Exactly the same results.  Did not display the generated Image on first entry to the 'sign the guestbook'.  Added the $GB_PG[base_url] as per earlier post, , re-ftp'd, and then it displayed the Image.  Something I didn't notice before was that when I 'previewed' the entry and then clicked Go Back, the Image is not redisplayed unless I refresh the page.<br /> Me thinks it has to be something to do with the path or folder structure?<br /> <br /> <br /> PaulTT   www.1820settlers.com]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9376.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9376.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 20:03:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Send me the three files addentry.php  lib/add.class.php and templates/form.php I think I know what is missing but I want to make sure.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9378.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9378.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 20:52:09]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The above post was me  <img src="https://proxy2.de/forum//images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9379.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9379.php</link>
				<pubDate><![CDATA[Sat, 24 Jul 2004 21:51:37]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Do you know why this and the other scripts will not work in phpnuke?<br /> <br /> I have two guestbooks, one in a phpnuke module.  Using duplicate copies of the files, the first guestbook is fine, but the one in th phpnuke module won't show the image.<br /> <br /> Same problem with other scripts, like admin logout redirect and renaming the admin file.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9771.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9771.php</link>
				<pubDate><![CDATA[Tue, 10 Aug 2004 21:08:18]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I just noticed that PaulTT www.1820settlers.com is a phpnuke site.  Can somebody give me the 411?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9774.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9774.php</link>
				<pubDate><![CDATA[Tue, 10 Aug 2004 21:43:27]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I'm wondering if PHPNuke didn't change something since AG 2.3.1 was released as AG 2.3.1 was written to integrate into it form what I have seen in the code.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9777.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9777.php</link>
				<pubDate><![CDATA[Tue, 10 Aug 2004 22:37:00]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I am not using the Advanced Guestbook for Phpnuke.  I am actually using the basic program.  I just put it in a phpnuke module myself. ( This was before I knew there was such a thing as Advanced Guestbook for Phpnuke.) I believe the only thing I changed was one file where it says something like "... is running in a postnuke or phpnuke module; false".  I changed it to "true" and I think I had to change the path.  <br /> <br /> I noticed with the Admin logout redirect, the problem seemed to be the path.  I tried changing it myself, but couldn't get it to work, probably because I really don't know php.<br /> <br /> It seemed that earlier in this thread Paul was having problems which he thought were related to the path.  He sent you the files, and I guess you fixed them, because the guestbook on his site has the image.  I sent him an email requesting info, but there is no guarantee he will respond.<br /> <br /> I was wondering if you recalled what you did to help him solve his problem?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9780.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9780.php</link>
				<pubDate><![CDATA[Tue, 10 Aug 2004 22:54:01]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ think I would have to install PHP Nuke to fix this one. Images are easy to fix as you can right click to get the properties and see where it is pointing to. Pauls problem is a weird one as the files are correct and it appears to be working right so I need to delve into how the book interacts with the CMS.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9782.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9782.php</link>
				<pubDate><![CDATA[Tue, 10 Aug 2004 23:16:24]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thank you, but I don't want you to have to install Phpnuke - we're talking huge.  It would be much simpler to just not allow image upload until I figure this one out.<br /> <br /> Btw, how vulnerable is it having image upload without the verification?  Will maybe excluding certain file types get around this?<br /> <br /> As always, your expertise is appreciated.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9786.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9786.php</link>
				<pubDate><![CDATA[Wed, 11 Aug 2004 01:01:10]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ The guestbook already limits the file types they can upload. The image verification is just to stop spam.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3355/9791.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3355/9791.php</link>
				<pubDate><![CDATA[Wed, 11 Aug 2004 10:15:01]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>