<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Help with admin.class.php"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Help with admin.class.php"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Help with admin.class.php</title>
				<description><![CDATA[ Hi All<br /> <br /> im new on this forum :)<br /> Recently I installed the Advaced book into mywebsite<br /> but now I got a problem when I log as Administrator into the G Book<br /> The following code appears:<br /> <br /> [code]Warning&#58; Cannot modify header information - headers already sent by &#40;output started at ../public_html/librivizitor/admin.php&#58;1&#41; in ../public_html/librivizitor/lib/admin.class.php on line 33<br /> <br /> Warning&#58; Cannot modify header information - headers already sent by &#40;output started at ../public_html/librivizitor/admin.php&#58;1&#41; in ../public_html/librivizitor/lib/admin.class.php on line 34<br /> <br /> Warning&#58; Cannot modify header information - headers already sent by &#40;output started at ../public_html/librivizitor/admin.php&#58;1&#41; in ../public_html/librivizitor/lib/admin.class.php on line 35<br /> <br /> Warning&#58; Cannot modify header information - headers already sent by &#40;output started at ../public_html/librivizitor/admin.php&#58;1&#41; in ../public_html/librivizitor/lib/admin.class.php on line 36[/code]<br /> <br /> How can I remove that!?<br /> <br /> <br /> [b]2nd problem:[/b]<br /> <br /> For some reason the Time is not beeing displayed right on the G-book<br /> The date is allright but not the time... ( i live in England)<br /> <br /> How can I change the time!?<br /> <br /> <br /> <br /> Thanks]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5183/18825.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5183/18825.php</link>
				<pubDate><![CDATA[Fri, 25 Nov 2005 05:30:19]]> GMT</pubDate>
				<author><![CDATA[ Bucki]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ 1 - You probably have white space either before the opening &lt;?php or after the closing ?&gt; in config.inc.php file found in admin folder.<br /> <br /> 2 - Adin - Style set the time offset.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5183/18827.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5183/18827.php</link>
				<pubDate><![CDATA[Fri, 25 Nov 2005 09:42:49]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]1 - You probably have white space either before the opening &lt;?php or after the closing ?&gt; in config.inc.php file found in admin folder.<br /> <br /> 2 - Adin - Style set the time offset.[/quote]<br /> <br /> <br /> Cheers for reply mate<br /> <br /> <br /> Ermm I did check for any spaces and there is non!!  :? <br /> <br /> [code]&lt;?php<br /> /**<br />  * ----------------------------------------------<br />  * Advanced Guestbook 2.3.4 &#40;PHP/MySQL&#41;<br />  * Copyright &#40;c&#41; Chi Kien Uong<br />  * URL&#58; http&#58;//www.proxy2.de<br />  * ----------------------------------------------<br />  */<br /> class gb_admin &#123;<br /> <br />     var $db;<br />     var $session;<br />     var $SELF;<br />     var $uid;<br />     var $VARS;<br />     var $table;<br /> <br />     function gb_admin&#40;$session,$uid&#41; &#123;<br />         global $_SERVER;<br />         $this-&gt;session = $session;<br />         $this-&gt;uid = $uid;<br />         $this-&gt;SELF = basename&#40;$_SERVER&#91;&quot;PHP_SELF&quot;&#93;&#41;;<br />     &#125;<br /> <br />     function get_updated_vars&#40;&#41; &#123;<br />         $this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;table&#91;'cfg'&#93;&#41;;<br />         $this-&gt;VARS = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />         $this-&gt;db-&gt;free_result&#40;$this-&gt;db-&gt;result&#41;;<br />     &#125;<br /> <br />     function NoCacheHeader&#40;&#41; &#123;<br />         header&#40;&quot;Expires&#58; Mon, 26 Jul 1997 05&#58;00&#58;00 GMT&quot;&#41;;<br />         header&#40;&quot;Last-Modified&#58; &quot; . gmdate&#40;&quot;D, d M Y H&#58;i&#58;s&quot;&#41; . &quot;GMT&quot;&#41;;<br />         header&#40;&quot;Cache-Control&#58; no-cache, must-revalidate&quot;&#41;;<br />         header&#40;&quot;Pragma&#58; no-cache&quot;&#41;;<br />     &#125;<br /> <br />     function show_panel&#40;$panel&#41; &#123;<br />         global $smilie_list, $smilie_data;<br />         $this-&gt;NoCacheHeader&#40;&#41;;<br />         include_once &quot;./admin/panel_$panel.php&quot;;<br />         include_once &quot;./admin/footer.inc.php&quot;;<br />     &#125;<br /> <br />     function scan_smilie_dir&#40;&#41; &#123;<br />         $smilies = '';<br />         chdir&#40;&quot;./img/smilies&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 />                 if &#40;$file != &quot;.&quot; &amp;&amp; $file != &quot;..&quot;&#41; &#123;<br />                     if &#40;ereg&#40;&quot;.gif|.jpg|.png|.jpeg&quot;,$file&#41;&#41; &#123;<br />                         $smilie_list&#91;&#93; = $file;<br />                     &#125;<br />                 &#125;<br />             &#125;<br />         &#125;<br />         closedir&#40;$hnd&#41;;<br />         if &#40;isset&#40;$smilie_list&#41;&#41; &#123;<br />             asort&#40;$smilie_list&#41;;<br />             for &#40;$i=0;$i&lt;sizeof&#40;$smilie_list&#41;;$i++&#41; &#123;<br />                 $size = GetImageSize&#40;$smilie_list&#91;$i&#93;&#41;;<br />                 if &#40;is_array&#40;$size&#41;&#41; &#123;<br />                     $smilies&#91;$smilie_list&#91;$i&#93;&#93; = &quot;&lt;img src=\&quot;img/smilies/$smilie_list&#91;$i&#93;\&quot; $size&#91;3&#93;&gt;&quot;;<br />                 &#125;<br />             &#125;<br />         &#125;<br />         chdir&#40;&quot;../../&quot;&#41;;<br />         return $smilies;<br />     &#125;<br /> <br />     function show_entry&#40;$tbl=&quot;gb&quot;&#41; &#123;<br />         global $entry, $record, $GB_UPLOAD;<br />         $entry = intval&#40;$entry&#41;;<br />         $record = intval&#40;$record&#41;;<br />         if &#40;$tbl==&quot;priv&quot;&#41; &#123;<br />             $gb_tbl = $this-&gt;table&#91;'priv'&#93;;<br />             $book_id = 1;<br />         &#125; else &#123;<br />             $gb_tbl = $this-&gt;table&#91;'data'&#93;;<br />             $tbl=&quot;gb&quot;;<br />             $book_id = 2;<br />         &#125;<br />         $entries_per_page = intval&#40;$this-&gt;VARS&#91;&quot;entries_per_page&quot;&#93;&#41;;<br />         if&#40;!isset&#40;$entry&#41;&#41; &#123;<br />             $entry = 0;<br />         &#125;<br />         if&#40;!isset&#40;$record&#41;&#41; &#123;<br />             $record = 0;<br />         &#125;<br />         $next_page = $entry+$entries_per_page;<br />         $prev_page = $entry-$entries_per_page;<br />         $this-&gt;db-&gt;query&#40;&quot;select count&#40;*&#41; total from $gb_tbl&quot;&#41;;<br />         $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />         $total = $this-&gt;db-&gt;record&#91;'total'&#93;;<br />         if &#40;$record &gt; 0 &amp;&amp; $record &lt;= $total&#41; &#123;<br />             $entry = $total-$record;<br />             $next_page = $entry+$entries_per_page;<br />             $prev_page = $entry-$entries_per_page;<br />         &#125;<br />         $result = $this-&gt;db-&gt;query&#40;&quot;select x.*, y.p_filename, y.width, y.height from $gb_tbl 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=$book_id&#41; order by id desc limit $entry, $entries_per_page&quot;&#41;;<br />         $img = new gb_image&#40;&#41;;<br />         $img-&gt;set_border_size&#40;$this-&gt;VARS&#91;&quot;img_width&quot;&#93;, $this-&gt;VARS&#91;&quot;img_height&quot;&#93;&#41;;<br />         $this-&gt;NoCacheHeader&#40;&#41;;<br />         include_once &quot;./admin/panel_easy.php&quot;;<br />         include_once &quot;./admin/footer.inc.php&quot;;<br />     &#125;<br /> <br />     function del_entry&#40;$entry_id,$tbl=&quot;gb&quot;&#41; &#123;<br />         global $GB_UPLOAD;<br />         $entry_id = intval&#40;$entry_id&#41;;<br />         switch &#40;$tbl&#41; &#123;<br />             case &quot;gb&quot; &#58;<br />                 $this-&gt;db-&gt;query&#40;&quot;select p_filename from &quot;.$this-&gt;table&#91;'pics'&#93;.&quot; WHERE &#40;msg_id = '$entry_id' and book_id=2&#41;&quot;&#41;;<br />                 $result = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />                 if &#40;$result&#91;&quot;p_filename&quot;&#93;&#41; &#123;<br />                     if &#40;file_exists&#40;&quot;./$GB_UPLOAD/$result&#91;p_filename&#93;&quot;&#41;&#41; &#123;<br />                         unlink &#40;&quot;./$GB_UPLOAD/$result&#91;p_filename&#93;&quot;&#41;;<br />                     &#125;<br />                     if &#40;file_exists&#40;&quot;./$GB_UPLOAD/t_$result&#91;p_filename&#93;&quot;&#41;&#41; &#123;<br />                         unlink &#40;&quot;./$GB_UPLOAD/t_$result&#91;p_filename&#93;&quot;&#41;;<br />                     &#125;<br />                 &#125;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'data'&#93;.&quot; WHERE &#40;id = '$entry_id'&#41;&quot;&#41;;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'com'&#93;.&quot; WHERE &#40;id = '$entry_id'&#41;&quot;&#41;;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'pics'&#93;.&quot; WHERE &#40;msg_id = '$entry_id' and book_id=2&#41;&quot;&#41;;<br />                 break;<br /> <br />             case &quot;priv&quot; &#58;<br />                 $this-&gt;db-&gt;query&#40;&quot;select p_filename from &quot;.$this-&gt;table&#91;'pics'&#93;.&quot; WHERE &#40;msg_id = '$entry_id' and book_id=1&#41;&quot;&#41;;<br />                 $result = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />                 if &#40;$result&#91;&quot;p_filename&quot;&#93;&#41; &#123;<br />                     if &#40;file_exists&#40;&quot;./$GB_UPLOAD/$result&#91;p_filename&#93;&quot;&#41;&#41; &#123;<br />                         unlink &#40;&quot;./$GB_UPLOAD/$result&#91;p_filename&#93;&quot;&#41;;<br />                     &#125;<br />                     if &#40;file_exists&#40;&quot;./$GB_UPLOAD/t_$result&#91;p_filename&#93;&quot;&#41;&#41; &#123;<br />                         unlink &#40;&quot;./$GB_UPLOAD/t_$result&#91;p_filename&#93;&quot;&#41;;<br />                     &#125;<br />                 &#125;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'priv'&#93;.&quot; WHERE &#40;id = '$entry_id'&#41;&quot;&#41;;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'pics'&#93;.&quot; WHERE &#40;msg_id = '$entry_id' and book_id=1&#41;&quot;&#41;;<br />                 break;<br /> <br />             case &quot;com&quot; &#58;<br />                 $this-&gt;db-&gt;query&#40;&quot;DELETE FROM &quot;.$this-&gt;table&#91;'com'&#93;.&quot; WHERE &#40;com_id = '$entry_id'&#41;&quot;&#41;;<br />                 break;<br />         &#125;<br />     &#125;<br /> <br />     function update_record&#40;$entry_id,$tbl=&quot;gb&quot;&#41; &#123;<br />         global $_POST;<br />         $gb_tbl = &#40;$tbl==&quot;priv&quot;&#41; ? $this-&gt;table&#91;'priv'&#93; &#58; $this-&gt;table&#91;'data'&#93;;<br />         reset&#40;$_POST&#41;;<br />         if &#40;!get_magic_quotes_gpc&#40;&#41; &#41; &#123;<br />             while &#40;list&#40;$var, $value&#41;=each&#40;$_POST&#41;&#41; &#123;<br />                 $_POST&#91;$var&#93; = addslashes&#40;$value&#41;;<br />             &#125;<br />         &#125;<br />         reset&#40;$_POST&#41;;<br />         while &#40;list&#40;$var, $value&#41;=each&#40;$_POST&#41;&#41; &#123;<br />             $_POST&#91;$var&#93;=trim&#40;$value&#41;;<br />         &#125;<br />         if &#40;!eregi&#40;&quot;.+@&#91;-a-z0-9_&#93;+&quot;, $_POST&#91;'email'&#93;&#41;&#41; &#123;<br />             $_POST&#91;'email'&#93; = '';<br />         &#125;<br />         if &#40;!eregi&#40;&quot;^http&#58;//&#91;-a-z0-9_&#93;+&quot;, $_POST&#91;'url'&#93;&#41;&#41; &#123;<br />             $_POST&#91;'url'&#93; = '';<br />         &#125;<br />         $sqlquery= &quot;UPDATE $gb_tbl set name='$_POST&#91;name&#93;', email='$_POST&#91;email&#93;', gender='$_POST&#91;gender&#93;', url='$_POST&#91;url&#93;', location='$_POST&#91;location&#93;', &quot;;<br />         $sqlquery.=&quot;host='$_POST&#91;host&#93;', browser='$_POST&#91;browser&#93;', comment='$_POST&#91;comment&#93;', icq='$_POST&#91;icq&#93;', aim='$_POST&#91;aim&#93;' WHERE &#40;id = '$entry_id'&#41;&quot;;<br />         $this-&gt;db-&gt;query&#40;$sqlquery&#41;;<br />     &#125;<br /> <br />     function show_form&#40;$entry_id,$tbl=&quot;gb&quot;&#41; &#123;<br />         global $record;<br />         $record = intval&#40;$record&#41;;<br />         $gb_tbl = &#40;$tbl==&quot;priv&quot;&#41; ? $this-&gt;table&#91;'priv'&#93; &#58; $this-&gt;table&#91;'data'&#93;;<br />         $this-&gt;db-&gt;query&#40;&quot;select * from $gb_tbl where &#40;id = '$entry_id'&#41;&quot;&#41;;<br />         $row = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />         for&#40;reset&#40;$row&#41;; $key=key&#40;$row&#41;; next&#40;$row&#41;&#41; &#123;<br />             $row&#91;$key&#93; = htmlspecialchars&#40;$row&#91;$key&#93;&#41;;<br />         &#125;<br />         $this-&gt;NoCacheHeader&#40;&#41;;<br />         include_once &quot;./admin/panel_edit.php&quot;;<br />         include_once &quot;./admin/footer.inc.php&quot;;<br />     &#125;<br /> <br />     function edit_template&#40;$tpl_name,$tpl_save&#41; &#123;<br />         global $_POST, $GB_TPL;<br />         $this-&gt;NoCacheHeader&#40;&#41;;<br />         $filename = &quot;./templates/$tpl_name&quot;;<br />         if &#40;file_exists&#40;&quot;$filename&quot;&#41; &amp;&amp; $tpl_name != ''&#41; &#123;<br />             if &#40;$tpl_save == &quot;update&quot;&#41; &#123;<br />                 if &#40;get_magic_quotes_gpc&#40;&#41;&#41; &#123;<br />                    $_POST&#91;'gb_template'&#93; = stripslashes&#40;$_POST&#91;'gb_template'&#93;&#41;;<br />                 &#125;<br />                 $fd = fopen &#40;$filename, &quot;w&quot;&#41;;<br />                 fwrite&#40;$fd,$_POST&#91;'gb_template'&#93;&#41;;<br />                 $gb_template = $_POST&#91;'gb_template'&#93;;<br />             &#125; else &#123;<br />                 $fd = fopen &#40;$filename, &quot;r&quot;&#41;;<br />                 $gb_template = fread &#40;$fd, filesize &#40;$filename&#41;&#41;;<br />             &#125;<br />             fclose &#40;$fd&#41;;<br />         &#125; else &#123;<br />             $gb_template ='';<br />         &#125;<br />         include_once &quot;./admin/panel_template.php&quot;;<br />         include_once &quot;./admin/footer.inc.php&quot;;<br />     &#125;<br /> <br />     function show_settings&#40;$cat&#41; &#123;<br />         $this-&gt;db-&gt;query&#40;&quot;select * from &quot;.$this-&gt;table&#91;'words'&#93;&#41;;<br />         while &#40;$this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;&#41; &#123;<br />             $badwords&#91;&#93; = $this-&gt;db-&gt;record&#91;&quot;word&quot;&#93;;<br />         &#125;<br />         $this-&gt;db-&gt;free_result&#40;$this-&gt;db-&gt;result&#41;;<br />         $this-&gt;db-&gt;query&#40;&quot;select * from &quot;.$this-&gt;table&#91;'ban'&#93;&#41;;<br />         while &#40;$this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;&#41; &#123;<br />             $banned_ips&#91;&#93; = $this-&gt;db-&gt;record&#91;&quot;ban_ip&quot;&#93;;<br />         &#125;<br />         $this-&gt;db-&gt;free_result&#40;$this-&gt;db-&gt;result&#41;;<br />         $this-&gt;db-&gt;query&#40;&quot;select * from &quot;.$this-&gt;table&#91;'auth'&#93;.&quot; where ID=$this-&gt;uid&quot;&#41;;<br />         $row = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;result&#41;;<br />         $this-&gt;NoCacheHeader&#40;&#41;;<br />         if &#40;$cat == &quot;general&quot;&#41; &#123;<br />             include_once &quot;./admin/panel_main.php&quot;;<br />         &#125; elseif &#40;$cat == &quot;style&quot;&#41; &#123;<br />             include_once &quot;./admin/panel_style.php&quot;;<br />         &#125; elseif &#40;$cat == &quot;pwd&quot;&#41; &#123;<br />             include_once &quot;./admin/panel_pwd.php&quot;;<br />         &#125;<br />         include_once &quot;./admin/footer.inc.php&quot;;<br />     &#125;<br /> <br /> &#125;<br /> <br /> ?&gt;[/code]<br /> <br /> 2nd:<br /> <br /> Time offset is [b]0[/b]<br /> Date Format is [b]Exp. European Format (Monday, 25 April 2000) [/b]<br /> Time Format is [b]User 24-Hour Format Time (eg, 23:15)[/b] <br /> <br /> in G Book its showing: [b]E shtunë, 25. Nëntor 2005 05:04[/b]<br /> <br /> Its in my language - eng. trans. -&gt; Saturday, 25th Nov 2005 05:04<br /> <br /> So its totaly different, even dhe days :S<br /> Its Friday today isnt it, and not Saturday... less I missed one day out lol<br /> <br /> So ermm is this time error in the "translation" script!?<br /> <br /> <br /> <br /> Cheers]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5183/18833.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5183/18833.php</link>
				<pubDate><![CDATA[Fri, 25 Nov 2005 14:07:57]]> GMT</pubDate>
				<author><![CDATA[ Bucki]]></author>
			</item>
	</channel>
</rss>