<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "PARSE ERROR: Help with Advanced Guestbook"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "PARSE ERROR: Help with Advanced Guestbook"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>PARSE ERROR: Help with Advanced Guestbook</title>
				<description><![CDATA[ Hi guys!<br /> <br /> Please check out http://www.smallvilleph.com/gbook There's an error on the top and I can't seem to fix it. I'm guessing it has to do with the databade (maybe book_data). It says:<br /> <br /> [code]Parse error&#58; parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/httpd/vhosts/smallvilleph.com/httpdocs/gbook/lib/gb.class.php&#40;117&#41; &#58; eval&#40;&#41;'d code on line 2<br /> <br /> Parse error&#58; parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/httpd/vhosts/smallvilleph.com/httpdocs/gbook/lib/gb.class.php&#40;117&#41; &#58; eval&#40;&#41;'d code on line 2[/code]<br /> <br /> Also, if I try posting an entry, even if I have entered my name, it says I haven't so the entry cannot be added.<br /> <br /> Can anybody please help? The guestbook was working fine for quite some time but it it's like that.<br /> <br /> Hope to hear some good responses from you guys!!! Thansk a lot!!![/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3836/11620.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3836/11620.php</link>
				<pubDate><![CDATA[Wed, 10 Nov 2004 11:33:34]]> GMT</pubDate>
				<author><![CDATA[ chrstne912]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ btw, in case somebody asks for the gb.class file, here's what i have on hte code:<br /> <br /> [code]&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 guestbook &#123;<br /> <br />     var $total;<br />     var $db;<br />     var $template;<br />     var $path;<br /> <br />     function guestbook&#40;$path=''&#41; &#123;<br />         $this-&gt;db = new guestbook_vars&#40;$path&#41;;<br />         $this-&gt;db-&gt;getVars&#40;&#41;;<br />         $this-&gt;total = 0;<br />         $this-&gt;path = $path;<br />         $this-&gt;template = &amp;$this-&gt;db-&gt;template;<br />     &#125;<br /> <br />     function get_nav&#40;$entry=0&#41; &#123;<br />         global $HTTP_SERVER_VARS, $GB_PG;<br />         $self = &#40;IS_MODULE &amp;&amp; eregi&#40;&quot;\?&quot;,$GB_PG&#91;&quot;index&quot;&#93;&#41;&#41; ? &quot;$GB_PG&#91;index&#93;&amp;entry=&quot; &#58; basename&#40;$HTTP_SERVER_VARS&#91;'PHP_SELF'&#93;&#41;.&quot;?entry=&quot;;<br />         $next_page = $entry+$this-&gt;db-&gt;VARS&#91;'entries_per_page'&#93;;<br />         $prev_page = $entry-$this-&gt;db-&gt;VARS&#91;'entries_per_page'&#93;;<br />         $navigation = '';<br />         if &#40;$prev_page &gt;= 0&#41; &#123;<br />             $navigation = &quot;   &lt;img src=\&quot;$GB_PG&#91;base_url&#93;/img/back.gif\&quot; width=\&quot;16\&quot; height=\&quot;14\&quot;&gt;&lt;a href=\&quot;$self$prev_page\&quot;&gt;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;NavPrev&quot;&#93;.&quot;&lt;/a&gt;\n&quot;;<br />         &#125;<br />         if &#40;$next_page &lt; $this-&gt;total&#41; &#123;<br />             $navigation = $navigation.&quot;   &amp;nbsp;&amp;nbsp;&lt;a href=\&quot;$self$next_page\&quot;&gt;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;NavNext&quot;&#93;.&quot;&lt;/a&gt;&lt;img src=\&quot;$GB_PG&#91;base_url&#93;/img/next.gif\&quot; width=\&quot;16\&quot; height=\&quot;14\&quot;&gt;\n&quot;;<br />         &#125;<br />         return $navigation;<br />     &#125;<br /> <br />     function show_entries&#40;$entry=0&#41; &#123;<br />         global $GB_PG;<br />         $LANG =&amp; $this-&gt;db-&gt;LANG;<br />         $VARS =&amp; $this-&gt;db-&gt;VARS;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;select count&#40;*&#41; as total from &quot;.$this-&gt;db-&gt;table&#91;'data'&#93;&#41;&#41;;<br />         $this-&gt;total = $this-&gt;db-&gt;record&#91;&quot;total&quot;&#93;;<br />         $TPL = $this-&gt;get_entries&#40;$entry,$this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;&#41;;<br />         $TPL&#91;'GB_TOTAL'&#93; = $this-&gt;total;<br />         $TPL&#91;'GB_JUMPMENU'&#93; = implode&#40;&quot;\n&quot;,$this-&gt;generate_JumpMenu&#40;&#41;&#41;;<br />         $TPL&#91;'GB_TIME'&#93; = $this-&gt;db-&gt;DateFormat&#40;time&#40;&#41;&#41;;<br />         $TPL&#91;'GB_NAVIGATION'&#93; = $this-&gt;get_nav&#40;$entry&#41;;<br />         $TPL&#91;'GB_HTML_CODE'&#93; = &#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 />         eval&#40;&quot;\$guestbook_html = \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'header'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$guestbook_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'body'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         eval&#40;&quot;\$guestbook_html .= \&quot;&quot;.$this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'footer'&#93;&#41;.&quot;\&quot;;&quot;&#41;;<br />         return $guestbook_html;<br />     &#125;<br /> <br />     function generate_JumpMenu&#40;&#41; &#123;<br />         $menu_array&#91;&#93; = &quot;&lt;select name=\&quot;entry\&quot; class=\&quot;select\&quot;&gt;&quot;;<br />         $menu_array&#91;&#93; = &quot;&lt;option value=\&quot;0\&quot; selected&gt;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;FormSelect&quot;&#93;.&quot;&lt;/option&gt;&quot;;<br />         if &#40;$this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93; &lt; $this-&gt;total&#41; &#123;<br />             $remain = $this-&gt;total % $this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;;<br />             $i = $this-&gt;total-$remain;<br />             while &#40;$i &gt; 0&#41; &#123;<br />                 $num_max = $i;<br />                 $num_min = $num_max-$this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;;<br />                 $num_min++;<br />                 $menu_array&#91;&#93; = &quot;&lt;option value=\&quot;$remain\&quot;&gt;$num_min-$num_max&lt;/option&gt;&quot;;<br />                 $i = $num_min-1;<br />                 $remain += $this-&gt;db-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;;<br />            &#125;<br />         &#125;<br />         $menu_array&#91;&#93; = &quot;&lt;/select&gt;&quot;;<br />         $menu_array&#91;&#93; = &quot;&lt;input type=\&quot;submit\&quot; value=\&quot;&quot;.$this-&gt;db-&gt;LANG&#91;&quot;FormButton&quot;&#93;.&quot;\&quot; class=\&quot;input\&quot;&gt;&quot;;<br />         return $menu_array;<br />     &#125;<br /> <br />     function get_entries&#40;$entry,$last_entry&#41; &#123;<br />         global $GB_UPLOAD, $GB_PG;<br />         $img = new gb_image&#40;&#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 />         $LANG =&amp; $this-&gt;db-&gt;LANG;<br />         $id = $this-&gt;total-$entry;<br />         $HOST = '';<br />         $COMMENT = '';<br />         $GB_ENTRIES = '';<br />         $i=0;<br />         $template&#91;'entry'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'entry'&#93;&#41;;<br />         $template&#91;'com'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'com'&#93;&#41;;<br />         $template&#91;'url'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'url'&#93;&#41;;<br />         $template&#91;'icq'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'icq'&#93;&#41;;<br />         $template&#91;'aim'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'aim'&#93;&#41;;<br />         $template&#91;'email'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'email'&#93;&#41;;<br />         $template&#91;'image'&#93; = $this-&gt;template-&gt;get_template&#40;$this-&gt;db-&gt;GB_TPL&#91;'image'&#93;&#41;;<br />         $result = $this-&gt;db-&gt;query&#40;&quot;select x.*, y.p_filename, y.width, y.height, z.comments from &quot;.$this-&gt;db-&gt;table&#91;'data'&#93;.&quot; x left join &quot;.$this-&gt;db-&gt;table&#91;'pics'&#93;.&quot; y on &#40;x.id=y.msg_id and y.book_id=2&#41; left join &quot;.$this-&gt;db-&gt;table&#91;'com'&#93;.&quot; z on &#40;x.id=z.id&#41; group by x.id order by x.id desc limit $entry, $last_entry&quot;&#41;;<br />         while &#40;$row = $this-&gt;db-&gt;fetch_array&#40;$result&#41;&#41; &#123;<br />             $DATE = $this-&gt;db-&gt;DateFormat&#40;$row&#91;'date'&#93;&#41;;<br />             $MESSAGE = nl2br&#40;$row&#91;'comment'&#93;&#41;;<br />             if &#40;$row&#91;'p_filename'&#93; &amp;&amp; ereg&#40;&quot;^img-&quot;,$row&#91;'p_filename'&#93;&#41;&#41; &#123;<br />                 if &#40;file_exists&#40;&quot;$this-&gt;path/$GB_UPLOAD/t_$row&#91;p_filename&#93;&quot;&#41;&#41; &#123;<br />                     $row&#91;'p_filename'&#93; = &quot;t_$row&#91;p_filename&#93;&quot;;<br />                 &#125;<br />                 $new_img_size = $img-&gt;get_img_size_format&#40;$row&#91;'width'&#93;, $row&#91;'height'&#93;&#41;;<br />                 eval&#40;&quot;\$USER_PIC = \&quot;&quot;.$template&#91;'image'&#93;.&quot;\&quot;;&quot;&#41;;<br />             &#125; else &#123;<br />                 $USER_PIC = '';<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;!$row&#91;'location'&#93;&#41; &#123;<br />                 $row&#91;'location'&#93; = &quot;-&quot;;<br />             &#125;<br />             $bgcolor = &#40;$i % 2&#41; ? $this-&gt;db-&gt;VARS&#91;&quot;tb_color_2&quot;&#93; &#58; $this-&gt;db-&gt;VARS&#91;&quot;tb_color_1&quot;&#93;;<br />             $i++;<br />             if &#40;$row&#91;'url'&#93;&#41; &#123;<br />                 eval&#40;&quot;\$URL = \&quot;&quot;.$template&#91;'url'&#93;.&quot;\&quot;;&quot;&#41;;<br />             &#125; else &#123;<br />                 $URL = '';<br />             &#125;<br />             if &#40;$row&#91;'icq'&#93; &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_icq&quot;&#93;==1&#41; &#123;<br />                 eval&#40;&quot;\$ICQ = \&quot;&quot;.$template&#91;'icq'&#93;.&quot;\&quot;;&quot;&#41;;<br />             &#125; else &#123;<br />                 $ICQ = '';<br />             &#125;<br />             if &#40;$row&#91;'aim'&#93; &amp;&amp; $this-&gt;db-&gt;VARS&#91;&quot;allow_aim&quot;&#93;==1&#41; &#123;<br />                 eval&#40;&quot;\$AIM = \&quot;&quot;.$template&#91;'aim'&#93;.&quot;\&quot;;&quot;&#41;;<br />             &#125; else &#123;<br />                 $AIM = '';<br />             &#125;<br />             if &#40;$row&#91;'email'&#93;&#41; &#123;<br />                 $encemail = bin2hex&#40;$row&#91;'email'&#93;&#41;;<br /> 			$hidemail = str_replace&#40;'@', '&#91;at&#93;', $row&#91;'email'&#93;&#41;;<br /> 			$hidemail = str_replace&#40;'.', '&#91;dot&#93;', $hidemail&#41;;<br /> 			eval&#40;&quot;\$EMAIL = \&quot;&quot;.$template&#91;'email'&#93;.&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;$row&#91;'gender'&#93;==&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;, $row&#91;'host'&#93;&#41; &#41; ? &quot;Host&quot; &#58; &quot;IP&quot;;<br />                 $HOST = &quot;$hostname&#58; $row&#91;host&#93;\n&quot;;<br />             &#125;<br />             if &#40;$row&#91;'comments'&#93;&#41; &#123;<br />                 $this-&gt;db-&gt;query&#40;&quot;select * from &quot;.$this-&gt;db-&gt;table&#91;'com'&#93;.&quot; where id='$row&#91;id&#93;' order by com_id asc&quot;&#41;;<br />                 while &#40;$com = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;&#41; &#123;<br />                     $com&#91;'comments'&#93; = nl2br&#40;$com&#91;'comments'&#93;&#41;;<br />                     eval&#40;&quot;\$COMMENT .= \&quot;&quot;.$template&#91;'com'&#93;.&quot;\&quot;;&quot;&#41;;<br />                 &#125;<br />             &#125;<br />             $GB_COMMENT = &#40;IS_MODULE &amp;&amp; eregi&#40;&quot;\?&quot;,$GB_PG&#91;&quot;comment&quot;&#93;&#41;&#41; ? &quot;$GB_PG&#91;comment&#93;&amp;gb_id=$row&#91;id&#93;&quot; &#58; &quot;$GB_PG&#91;comment&#93;?gb_id=$row&#91;id&#93;&quot;; <br />             eval&#40;&quot;\$GB_ENTRIES .= \&quot;&quot;.$template&#91;'entry'&#93;.&quot;\&quot;;&quot;&#41;;<br />             $COMMENT = &quot;&quot;;<br />             $id--;<br />         &#125;<br />         $TPL&#91;'GB_ENTRIES'&#93; = $GB_ENTRIES;<br />         return $TPL;<br />     &#125;<br /> <br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> again, thanks a lot!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3836/11621.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3836/11621.php</link>
				<pubDate><![CDATA[Wed, 10 Nov 2004 12:00:24]]> GMT</pubDate>
				<author><![CDATA[ chrstne912]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Did you make any changes before this happened?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3836/11622.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3836/11622.php</link>
				<pubDate><![CDATA[Wed, 10 Nov 2004 12:02:21]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Carbonize!<br /> <br /> Actually, I didn't. I checked the gbook and it's ben like that for about a month or so. <br /> <br /> Thanks for the reply!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3836/11624.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3836/11624.php</link>
				<pubDate><![CDATA[Wed, 10 Nov 2004 12:05:13]]> GMT</pubDate>
				<author><![CDATA[ chrstne912]]></author>
			</item>
	</channel>
</rss>