<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Coding-Talk</title>
		<link>http://coding-talk.com/</link>
		<description>Coding forums for web and wap development, design, search engine optimization and server configuration.</description>
		<language>en</language>
		<lastBuildDate>Wed, 22 May 2013 10:53:57 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://coding-talk.com/images/misc/rss.png</url>
			<title>Coding-Talk</title>
			<link>http://coding-talk.com/</link>
		</image>
		<item>
			<title>Tnchat.In Script</title>
			<link>http://coding-talk.com/f16/tnchat-in-script-31254/</link>
			<pubDate>Wed, 22 May 2013 04:42:06 GMT</pubDate>
			<description>Hi Friends Here is the Tnchat.In Script Try It :-) Itz nice  mobplazza.tk (http://www.mobplazza.tk/view.php?id=189) 
 
Added after 14 minutes: 
...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi Friends Here is the Tnchat.In Script Try It :-) Itz nice  <b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><br />
<br />
<i>Added after 14 minutes</i>:<br />
<br />
<b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><!-- google_ad_section_end --></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://coding-talk.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://coding-talk.com/attachment.php?attachmentid=5541&amp;d=1369197673">Tnchat.In Script (www.mobplazza.tk).zip</a> 
(2.04 MB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://coding-talk.com/f16/">Scripts Forum</category>
			<dc:creator>barathsri</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f16/tnchat-in-script-31254/</guid>
		</item>
		<item>
			<title>Selling Viral Video site script</title>
			<link>http://coding-talk.com/f28/selling-viral-video-site-script-31253/</link>
			<pubDate>Wed, 22 May 2013 02:27:45 GMT</pubDate>
			<description>This is the viral video script throgh which you can earn alot and it will get you more traffic via facebook integration, People must share the video...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->This is the viral video script throgh which you can earn alot and it will get you more traffic via facebook integration, People must share the video inorder to view it...it Goes Viral!!!!!!!!!!!!!!<br />
<br />
<b><font color="#0000CD">Requirements</font></b><br />
<br />
MySQL (Version 5 or higher)<br />
PHP (Version 5 or higher)<br />
Apache Mod_Rewrite Enabled<br />
cURL Enable<br />
<br />
<b><font color="#0000CD">Main features</font>:</b><br />
<br />
SEO friendly URL’s<br />
100% Unencrypted source code.<br />
Easily customizable.<br />
Free updates and support for one year.<br />
Your own branding without a extra charge.<br />
Made with HTML 5.<br />
<br />
<b><font color="#0000CD">Frontend features:</font></b><br />
<br />
Web 2.0 professional silky look<br />
2 Featured videos on homepage<br />
20 Recent videos on homepage<br />
10 Popular videos on homepage (Based on views)<br />
Genx Share to Watch™ (Users must share in Facebook before watch)<br />
Facebook comments<br />
Facebook iLike social share button<br />
Google + 1 social share button<br />
<br />
<b>Backend features (Admin):</b><br />
<br />
Upload logo directly from admin panel<br />
Add Meta tags and Meta description directly from admin panel<br />
Add Facebook Page, Twitter and Facebook App ID directly from admin panel<br />
Add/Manage categories (Unlimited categories)<br />
Add/Manage videos<br />
Add videos by Youtube URL<br />
Add videos by Youtube Search (Using Youtube API) directly from admin panel<br />
Update ads (Google Adsense/HTML Javascript based ads) directly from admin panel<br />
Admin login update<br />
Manage pages (DMCA, Contact us, Terms and Conditions, Privacy) using WYSIWYG Editor<br />
Ajax based admin panel<br />
You don’t need to touch the code to do 99% of the things after you install this script.<br />
<br />
Demo: <b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><br />
<br />
<b><font size="4">Price: 20$</font></b><!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f28/">Marketplace</category>
			<dc:creator>tubemates</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f28/selling-viral-video-site-script-31253/</guid>
		</item>
		<item>
			<title>Website suspension</title>
			<link>http://coding-talk.com/f60/website-suspension-31250/</link>
			<pubDate>Tue, 21 May 2013 22:04:41 GMT</pubDate>
			<description>Please masters in the house i was refer here by @Ghost 
i am new in php. Please my website has been suspended because i install a malicious script....</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Please masters in the house i was refer here by @Ghost<br />
i am new in php. Please my website has been suspended because i install a malicious script. My problem is that i don't even know wether a script is malicious or not. <br />
Please can anybody be kind enough to tell me how i can detect or know if a script contain a malicious or hacking codes that can lead to suspension? I want to start another website now but am afraid of being suspended again.<br />
Please am waiting for your honourable response. Thanx in advance sirs<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f60/">General Discussion</category>
			<dc:creator>Storm</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f60/website-suspension-31250/</guid>
		</item>
		<item>
			<title>Filez.Asia - 4Shared Multi Search, 4Shared Generator link, ADF.LY Generator Link</title>
			<link>http://coding-talk.com/f68/filez-asia-4shared-multi-search-4shared-generator-link-adf-ly-generator-link-31248/</link>
			<pubDate>Tue, 21 May 2013 20:57:40 GMT</pubDate>
			<description>4Shared Multi Search (http://filez.asia) - 4Shared Multi Search, 4Shared Generator link, ADF.LY Generator Link 
download from 4shared like a premium...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start --><b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b> - 4Shared Multi Search, 4Shared Generator link, ADF.LY Generator Link<br />
download from 4shared like a premium User without waiting 20 seconds, bypass adf.ly free for all<br />
Generator Link does not for illegal downloading allowed, but its only for helping who they are people get files is easier.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f68/">Sites / Links</category>
			<dc:creator>gammz</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f68/filez-asia-4shared-multi-search-4shared-generator-link-adf-ly-generator-link-31248/</guid>
		</item>
		<item>
			<title>New Traffic Exchange TOP sites</title>
			<link>http://coding-talk.com/f28/new-traffic-exchange-top-sites-31247/</link>
			<pubDate>Tue, 21 May 2013 20:02:27 GMT</pubDate>
			<description>Come add your WAP sites to wap-sites.com 
All WAP sites are welcome as long they are legal and written in english.(No pornsites) 
The more Unique WAP...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Come add your WAP sites to wap-sites.com<br />
All WAP sites are welcome as long they are legal and written in english.(No pornsites)<br />
The more Unique WAP traffic you send us! The higher your WAP site will be ranked.<br />
NO spamming, No tricks, auto-installs, redirects and any other funny stuff! Don't try to cheat, our anti-cheat systems will expose you and ban you for life. Play fair and you will get lots of great WAP site traffic from us!<br />
<br />
<b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f28/">Marketplace</category>
			<dc:creator>dobson</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f28/new-traffic-exchange-top-sites-31247/</guid>
		</item>
		<item>
			<title>Keeponline.in Webhosting and domain modules for whmch</title>
			<link>http://coding-talk.com/f16/keeponline-in-webhosting-and-domain-modules-for-whmch-31246/</link>
			<pubDate>Tue, 21 May 2013 19:03:38 GMT</pubDate>
			<description>Keeponline.in Webhosting and domain modules for whmch. you sale keeponline products via your website without any investment.</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Keeponline.in Webhosting and domain modules for whmch. you sale keeponline products via your website without any investment.<!-- google_ad_section_end --></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://coding-talk.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://coding-talk.com/attachment.php?attachmentid=5540&amp;d=1369162683">keeponline-modules-for-whmch.zip</a> 
(85.0 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://coding-talk.com/f16/">Scripts Forum</category>
			<dc:creator>Neha Jain</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f16/keeponline-in-webhosting-and-domain-modules-for-whmch-31246/</guid>
		</item>
		<item>
			<title>I need Good Video Converter With Watermark Facility</title>
			<link>http://coding-talk.com/f29/i-need-good-video-converter-with-watermark-facility-31242/</link>
			<pubDate>Tue, 21 May 2013 03:12:39 GMT</pubDate>
			<description>Hi Friends,I am Ready to Give Money To u.But I need Good Video Converter With Watermark Facility.It Must Need to convert Fast and Good Quality....</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi Friends,I am Ready to Give Money To u.But I need Good Video Converter With Watermark Facility.It Must Need to convert Fast and Good Quality. Example download this video:<br />
<b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b> <br />
And Listen this video with Core codec Player In Mobile.If u Have this kind of Software Please Demo With One Song. i will purchase.It must need watermark facility <br />
Any one can give<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f29/">REQUEST FORUM</category>
			<dc:creator>mekannan</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f29/i-need-good-video-converter-with-watermark-facility-31242/</guid>
		</item>
		<item>
			<title>Copying big file using SSH</title>
			<link>http://coding-talk.com/f60/copying-big-file-using-ssh-31238/</link>
			<pubDate>Mon, 20 May 2013 08:20:17 GMT</pubDate>
			<description>Hello 
 
I need to copy a big .TAR file using SSH to another hosting account 
 
situation is I have a 24gb tar file on my own server, now i need to...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello<br />
<br />
I need to copy a big .TAR file using SSH to another hosting account<br />
<br />
situation is I have a 24gb tar file on my own server, now i need to transfer this file to hostagtor, I have SSH access of both side<br />
My net speed it too slow only 1MB:P so i think i must have to do it using SSH<br />
<br />
I don't understand much about SSH, Some one please let me know how can I do it easily.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f60/">General Discussion</category>
			<dc:creator>razib</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f60/copying-big-file-using-ssh-31238/</guid>
		</item>
		<item>
			<title>Latest Adult Grabber Of PORNHUB.COM</title>
			<link>http://coding-talk.com/f16/latest-adult-grabber-of-pornhub-com-31236/</link>
			<pubDate>Mon, 20 May 2013 04:24:17 GMT</pubDate>
			<description>Latest Adult Grabber Of PORNHUB.COM</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Latest Adult Grabber Of PORNHUB.COM<!-- google_ad_section_end --></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://coding-talk.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://coding-talk.com/attachment.php?attachmentid=5537&amp;d=1369023727">phub.zip</a> 
(8.7 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://coding-talk.com/f16/">Scripts Forum</category>
			<dc:creator>deep</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f16/latest-adult-grabber-of-pornhub-com-31236/</guid>
		</item>
		<item>
			<title>A technical Blog</title>
			<link>http://coding-talk.com/f68/a-technical-blog-31227/</link>
			<pubDate>Sat, 18 May 2013 10:41:38 GMT</pubDate>
			<description>Hello my friends i make a blog for lol facts about technology  
Please review and send me some suggestion so i can improve this 
Techlol.com - LoL...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello my friends i make a blog for lol facts about technology <br />
Please review and send me some suggestion so i can improve this<br />
<b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f68/">Sites / Links</category>
			<dc:creator>Lue_chin</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f68/a-technical-blog-31227/</guid>
		</item>
		<item>
			<title>ip to location php class</title>
			<link>http://coding-talk.com/f16/ip-to-location-php-class-31226/</link>
			<pubDate>Sat, 18 May 2013 08:56:50 GMT</pubDate>
			<description>download the lite ip2location database and start your ip2location site</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->download the lite ip2location database and start your ip2location site<!-- google_ad_section_end --></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://coding-talk.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://coding-talk.com/attachment.php?attachmentid=5534&amp;d=1368867371">ip2location-php-2013-04-29.zip</a> 
(7.2 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://coding-talk.com/f16/">Scripts Forum</category>
			<dc:creator>charith7788</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f16/ip-to-location-php-class-31226/</guid>
		</item>
		<item>
			<title>html to pdf class</title>
			<link>http://coding-talk.com/f16/html-to-pdf-class-31223/</link>
			<pubDate>Sat, 18 May 2013 02:25:46 GMT</pubDate>
			<description>make ur site as a free html to pdf convert 
 
 
---Quote (Originally by charith7788)--- 
make ur site as a free html to pdf convert 
---End Quote---...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->make ur site as a free html to pdf convert<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			<div>
				Originally Posted by <strong>charith7788</strong>
				<b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b>
			</div>
			<div class="message">make ur site as a free html to pdf convert</div>
			
		<hr />
	</div>
</div><b><font color=red>[Only registered and activated users can see links. <a href="register.php">Click Here To Register...</a>]</font></b><!-- google_ad_section_end --></div>


	<div style="padding:10px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Files</legend>
			<ul>
			<li>
	<img class="inlineimg" src="http://coding-talk.com/images/attach/zip.gif" alt="File Type: zip" />
	<a href="http://coding-talk.com/attachment.php?attachmentid=5533&amp;d=1368867037">html_to_pdf-2006-04-19.zip</a> 
(2.2 KB)
</li>
			</ul>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="http://coding-talk.com/f16/">Scripts Forum</category>
			<dc:creator>charith7788</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f16/html-to-pdf-class-31223/</guid>
		</item>
		<item>
			<title>wall on profile and status comments and likes</title>
			<link>http://coding-talk.com/f14/wall-on-profile-and-status-comments-and-likes-31222/</link>
			<pubDate>Fri, 17 May 2013 22:58:17 GMT</pubDate>
			<description>as the topic sugests lol im guna share this code i came up with there are a couple bugs ill work on it a bit more this week 
 
but for those of you...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->as the topic sugests lol im guna share this code i came up with there are a couple bugs ill work on it a bit more this week<br />
<br />
but for those of you who want status comments and a profile wall where users can like unlike posts  here is the code in beta mode at the moment<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;?php<br />
&nbsp;sql tables<br />
<br />
&nbsp;--<br />
-- Table structure for table `wallcomlike`<br />
--<br />
<br />
CREATE TABLE IF NOT EXISTS `wallcomlike` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `who` int(11) NOT NULL,<br />
&nbsp; `refid` int(11) NOT NULL,<br />
&nbsp; `sent` int(100) NOT NULL DEFAULT '0',<br />
&nbsp; PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;<br />
<br />
--<br />
-- Dumping data for table `wallcomlike`<br />
--<br />
-- Table structure for table `status`<br />
--<br />
<br />
CREATE TABLE IF NOT EXISTS `status` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `user` int(11) NOT NULL,<br />
&nbsp; `text` varchar(255) NOT NULL,<br />
&nbsp; `sent` int(100) NOT NULL DEFAULT '0',<br />
&nbsp; `who` char(100) NOT NULL,<br />
&nbsp; PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;<br />
<br />
--<br />
-- Dumping data for table `status`<br />
--<br />
<br />
INSERT INTO `status` (`id`, `user`, `text`, `sent`, `who`) VALUES<br />
(1, 1, 'testststts', 1368786866, ''),<br />
(2, 1, 'testststts', 1368786866, ''),<br />
(3, 1, 'blah fkn blah', 1368786949, ''),<br />
(4, 1, 'wwrwr', 1368787186, '');<br />
<br />
-- --------------------------------------------------------<br />
<br />
--<br />
-- Table structure for table `statuscomment`<br />
--<br />
<br />
CREATE TABLE IF NOT EXISTS `statuscomment` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `who` int(11) NOT NULL,<br />
&nbsp; `refid` int(11) NOT NULL,<br />
&nbsp; `text` varchar(255) NOT NULL,<br />
&nbsp; `sent` int(100) NOT NULL DEFAULT '0',<br />
&nbsp; PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;<br />
<br />
--<br />
-- Dumping data for table `statuscomment`<br />
--<br />
<br />
INSERT INTO `statuscomment` (`id`, `who`, `refid`, `text`, `sent`) VALUES<br />
(3, 1, 5, 'iohoih', 1368787009),<br />
(4, 1, 1, 'wwewwe', 1368787207);<br />
<br />
-- --------------------------------------------------------<br />
<br />
--<br />
-- Table structure for table `statuslike`<br />
--<br />
<br />
CREATE TABLE IF NOT EXISTS `statuslike` (<br />
&nbsp; `id` int(11) NOT NULL AUTO_INCREMENT,<br />
&nbsp; `who` int(11) NOT NULL,<br />
&nbsp; `refid` int(11) NOT NULL,<br />
&nbsp; `sent` int(100) NOT NULL DEFAULT '0',<br />
&nbsp; PRIMARY KEY (`id`)<br />
) ENGINE=MyISAM&nbsp; DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;<br />
<br />
--<br />
-- Dumping data for table `statuslike`<br />
--<br />
--------------------------------------------------------------<br />
<br />
<br />
/////////////////////////////////////////////<br />
in core add<br />
function cansignwall($uid, $who)<br />
{<br />
&nbsp; if(arebuds($uid, $who))<br />
&nbsp; {<br />
&nbsp; &nbsp; return true;<br />
&nbsp; }<br />
<br />
&nbsp; if(getplusses($uid)&gt;=75)<br />
&nbsp; {<br />
&nbsp; &nbsp; return true;<br />
&nbsp; }<br />
&nbsp; return false;<br />
}<br />
///////////////////////////////////////////////////////////////////////////<br />
main script for statuses<br />
<br />
&nbsp;if($action==&quot;main&quot;)<br />
{<br />
addvisitor();<br />
&nbsp; addonline(getuid_sid($sid),&quot;Buddies Menu&quot;,&quot;buddies.php?mzonez=$action&quot;);<br />
&nbsp; //saveuinfo($sid);<br />
&nbsp; $nick = getnick_sid($sid);<br />
&nbsp; $who = $_GET[&quot;who&quot;];<br />
&nbsp; echo &quot;&lt;head&gt;&quot;;<br />
&nbsp; echo &quot;&lt;title&gt;$nick@$sitename&lt;/title&gt;&quot;;<br />
&nbsp; echo &quot;&lt;/head&gt;&quot;;<br />
&nbsp; echo &quot;&lt;body&gt;&quot;;<br />
pagehead();<br />
&nbsp; navstart(&quot;Buddies Menu&quot;);<br />
&nbsp; echo &quot;Buddies Is Under Construction&lt;br /&gt;&quot; ;<br />
&nbsp; &nbsp;  $uid = getuid_sid($sid);<br />
&nbsp; $statmsg = mysql_fetch_array(mysql_query(&quot;SELECT id, user, text, sent, who FROM status WHERE user='&quot;.$uid.&quot;'&quot;));<br />
<br />
&nbsp; $noim = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuscomment WHERE refid='&quot;.$uid.&quot;'&quot;));<br />
&nbsp; $lnk = &quot;&lt;a href=\&quot;buddies.php?action=comments&amp;amp;id=$uid\&quot;&gt;[$noim[0]]&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&#8226; Your Status: $statmsg[2] $lnk&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;div class=\&quot;hr\&quot;&gt;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;form action=\&quot;buddies.php?action=upstatus&amp;amp;who=$who&amp;amp;stat=1\&quot; method=\&quot;post\&quot;&gt;&quot;;<br />
&nbsp;echo &quot;Whats on your mind?&lt;br/&gt;&lt;textarea rows=\&quot;2\&quot; cols=\&quot;12\&quot; name=\&quot;pmtext\&quot; maxlength=\&quot;250\&quot;/&gt;&lt;/textarea&gt;&lt;br/&gt;&quot;;<br />
&nbsp; echo &quot;&lt;input type=\&quot;submit\&quot; value=\&quot;Update\&quot;/&gt;&lt;/form&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; if($page==&quot;&quot; || $page&lt;=0)$page=1;<br />
<br />
&nbsp; &nbsp; $num_items = getnbuds($uid); //changable<br />
<br />
&nbsp; &nbsp; $items_per_page= 5;<br />
<br />
&nbsp; &nbsp; $num_pages = ceil($num_items/$items_per_page);<br />
<br />
&nbsp; &nbsp; if(($page&gt;$num_pages)&amp;&amp;$page!=1)$page= $num_pages;<br />
<br />
&nbsp; &nbsp; $limit_start = ($page-1)*$items_per_page;<br />
<br />
<br />
<br />
&nbsp; &nbsp; //changable sql<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $tm24 = time() - (60*60);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt, a.sex FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='&quot;.$uid.&quot;' OR b.tid='&quot;.$uid.&quot;') AND b.agreed='1' GROUP BY 1,2&nbsp; ORDER BY a.lastact='&quot;.$tm24.&quot;' DESC LIMIT $limit_start, $items_per_page&quot;;<br />
<br />
<br />
<br />
&nbsp; &nbsp; $items = mysql_query($sql);<br />
<br />
&nbsp; &nbsp; echo mysql_error();<br />
<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;0)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; while ($item = mysql_fetch_array($items))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if($uid!=$item[2])<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(isonline($item[2]))<br />
<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/online.png\&quot; alt=\&quot;\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; $uact = &quot;WHERE: &quot;;<br />
<br />
&nbsp; &nbsp; $plc = mysql_fetch_array(mysql_query(&quot;SELECT place FROM ibwf_online WHERE userid='&quot;.$item[2].&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; $uact .= $plc[0];<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/ofline.png\&quot; alt=\&quot;\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; $uact = &quot;Last Active: &quot;;<br />
<br />
&nbsp; &nbsp; $itime = $item[0] + (addhours());<br />
<br />
&nbsp; &nbsp; $ladt = date(&quot;d/m/Y h:i:s A&quot;, $itime);<br />
<br />
&nbsp; &nbsp; $uact .= $ladt;<br />
<br />
&nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;$iml&lt;a href=\&quot;profile.php?action=viewuser&amp;amp;who=$item[2]\&quot;&gt;$item[1]&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;$lnk&lt;br/&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; $itime = $item[5] + (addhours());<br />
<br />
&nbsp; &nbsp; &nbsp; $bs = date(&quot;d/m/Y h:i:s A&quot;,$itime);<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;Buddy since:$bs&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;$uact&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;Mood: &quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; //$bdmsg = mysql_fetch_array(mysql_query(&quot;SELECT id, user, text, sent, who FROM status WHERE user='&quot;.$item[2].&quot;'&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $bmsg = mysql_fetch_array(mysql_query(&quot;SELECT id, user, text, sent, who FROM status WHERE user='&quot;.$item[2].&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp;  $noim2 = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuscomment WHERE refid='&quot;.$item[2].&quot;'&quot;));<br />
&nbsp; $lnk2 = &quot;&lt;a href=\&quot;buddies.php?action=comments&amp;amp;id=$item[2]\&quot;&gt;W&lt;/a&gt;:[$noim2[0]]&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;$bmsg[2] $lnk2&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;smilies/cry.gif\&quot; alt=\&quot;-\&quot;/&gt;Awwww You Have No Freinds !&lt;br /&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp;  $nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt; | Buddies Menu&lt;br/&gt;&quot;;<br />
<br />
pagefoot();<br />
<br />
&nbsp;}<br />
<br />
&nbsp;else if($action==&quot;upstatus&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing&nbsp; List&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Updating Status&quot;);<br />
&nbsp; &nbsp; &nbsp;  $who = $_GET[&quot;who&quot;];<br />
&nbsp; &nbsp; &nbsp;  $nick = getnick_uid($who);<br />
&nbsp; &nbsp; &nbsp;  $pmtext = $_POST[&quot;pmtext&quot;];<br />
&nbsp; &nbsp; &nbsp;  $crdate = time();<br />
&nbsp; &nbsp; &nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; &nbsp; &nbsp;  $res = false;<br />
&nbsp; &nbsp; &nbsp; if(trim($pmtext)!=&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; $res = mysql_query(&quot;INSERT into status SET user='&quot;.$uid.&quot;', text='&quot;.$pmtext.&quot;', sent='&quot;.$crdate.&quot;'&quot;);<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp;  if($res)<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; //////////////////////////////<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;O\&quot;/&gt;&lt;b&gt;Status Post Successfully&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; //////////////////////////////<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;X\&quot;/&gt;&lt;b&gt;Error Updating Status&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;comments&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing&nbsp; List&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Status Comments&quot;);<br />
<br />
&nbsp; &nbsp; $id = $_GET[&quot;id&quot;];<br />
&nbsp; &nbsp; $who = $_GET[&quot;who&quot;];<br />
&nbsp; &nbsp; &nbsp;  $stat = $_GET[&quot;stat&quot;];<br />
<br />
&nbsp; &nbsp; &nbsp;  $status = mysql_fetch_array(mysql_query(&quot;SELECT user, text, sent FROM status WHERE id='&quot;.$_GET[&quot;id&quot;].&quot;'&quot;));<br />
&nbsp; &nbsp; $online = mysql_fetch_array(mysql_query(&quot;SELECT sex, uicon FROM ibwf_users WHERE id='&quot;.$status[0].&quot;'&quot;));<br />
<br />
&nbsp;if($online[1]==&quot;&quot;)<br />
&nbsp;{<br />
&nbsp;$seximg = &quot;&quot;;<br />
}else{<br />
&nbsp;$seximg = &quot;&lt;img src=\&quot;$online[1]\&quot; alt=\&quot;*\&quot;/&gt;&quot;;<br />
&nbsp;}<br />
<br />
&nbsp; $tmstamp = $status[2];<br />
&nbsp; $remain = time() - $tmstamp;<br />
&nbsp; $idle = gettimemsg2($remain);<br />
&nbsp; $back = &quot;$idle ago&quot;;<br />
&nbsp; $foto = idle($status[0], 45, 45);<br />
&nbsp; $cname = cname($status[0]);<br />
&nbsp; if(($cname == &quot;000000&quot;)||($cname == &quot;&quot;)){ $texto = &quot;&quot;;<br />
&nbsp;$textc = &quot;&quot;; }else{ $texto = &quot;&lt;font color=\&quot;$cname\&quot;&gt;&quot;;<br />
&nbsp;$textc = &quot;&lt;/font&gt;&quot;; }<br />
&nbsp;$ctext = ctext($status[0]);<br />
&nbsp;if(($ctext == &quot;000000&quot;)||($ctext == &quot;&quot;)){ $textoo = &quot;&quot;;<br />
&nbsp;$textco = &quot;&quot;; }else{ $textoo = &quot;&lt;font color=\&quot;$ctext\&quot;&gt;&quot;;<br />
&nbsp;$textco = &quot;&lt;/font&gt;&quot;; }<br />
&nbsp; $pmtext = parsepm($status[1], $sid);<br />
<br />
&nbsp; &nbsp; &nbsp; if(candelw($uid, $midd))<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&lt;a href=\&quot;buddies.php?action=delstatus&amp;amp;midd=$id\&quot;&gt;[x]&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp; $statlike = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuslike WHERE who='&quot;.$uid.&quot;' AND refid='&quot;.$_GET[&quot;id&quot;].&quot;'&quot;));<br />
<br />
&nbsp; if($statlike[0]==0)<br />
&nbsp;{<br />
&nbsp;$like = &quot;&lt;a href=\&quot;buddies.php?action=statuslike&amp;amp;id=$id&amp;amp;do=like&amp;amp;stat=2\&quot;&gt;Like&lt;/a&gt;&quot;;<br />
&nbsp;}else{<br />
&nbsp;$like = &quot;&lt;a href=\&quot;buddies.php?action=statusunlike&amp;amp;id=$id&amp;amp;stat=1\&quot;&gt;Unlike&lt;/a&gt;&quot;;<br />
}<br />
<br />
&nbsp; $statlikess = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuslike WHERE refid='&quot;.$uid.&quot;'&quot;));<br />
&nbsp; &nbsp;  $statmsg = mysql_fetch_array(mysql_query(&quot;SELECT id, user, text, sent, who FROM status WHERE user='&quot;.$id.&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&#8226; Your Status: $statmsg[2] $delnk&lt;br /&gt;&quot;;<br />
&nbsp; //$comment = &quot;&lt;a href=\&quot;buddies.php?action=addcom&amp;amp;id=$id\&quot;&gt;Comments&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;$seximg&lt;a href=\&quot;prov.php?show=viewuser&amp;amp;who=$status[0]\&quot;&gt;$texto&quot;.getnick_uid($status[0]).&quot;$textc&lt;/a&gt; $textoo$pmtext$textco $delnk&quot;;<br />
&nbsp; &nbsp; &nbsp; //echo &quot;&lt;table&gt;&lt;tr&gt;&lt;td&gt;$foto&lt;/td&gt;&lt;td&gt;$lnk&lt;br/&gt;$back &#8226; $comment &#8226; $like&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class=\&quot;hr\&quot;&gt;&lt;/div&gt;&lt;br/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $uid = getuid_sid($sid);<br />
&nbsp; $statmsg = mysql_fetch_array(mysql_query(&quot;SELECT id, user, text, sent, who FROM status WHERE user='&quot;.$uid.&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; //echo &quot;&#8226; Your Status: $statmsg[2] &lt;br /&gt;&quot;;<br />
<br />
&nbsp; &nbsp; $statlikess = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuslike WHERE refid='&quot;.$id.&quot;'&quot;));<br />
<br />
&nbsp; $comment = &quot;&lt;a href=\&quot;index.php?show=addcom&amp;amp;id=$id\&quot;&gt;Comments&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;$seximg&lt;a href=\&quot;prov.php?show=viewuser&amp;amp;who=$status[0]\&quot;&gt;$texto&quot;.getnick_uid($status[0]).&quot;$textc&lt;/a&gt; $textoo$pmtext$textco $delnk&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;$lnk&lt;br /&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; //echo &quot;&lt;table&gt;&lt;tr&gt;&lt;td&gt;$foto&lt;/td&gt;&lt;td&gt;$lnk&lt;br/&gt;$back &#8226; $comment &#8226; $like&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br/&gt;&lt;hr&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if($page==&quot;&quot; || $page&lt;=0)$page=1;<br />
&nbsp; $noi = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuscomment WHERE refid='&quot;.$id.&quot;'&quot;));<br />
&nbsp; &nbsp; $num_items = $noi[0]; //changable<br />
&nbsp; &nbsp; $items_per_page= 8;<br />
&nbsp; &nbsp; $num_pages = ceil($num_items/$items_per_page);<br />
&nbsp; &nbsp; if(($page&gt;$num_pages)&amp;&amp;$page!=1)$page= $num_pages;<br />
&nbsp; &nbsp; $limit_start = ($page-1)*$items_per_page;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT id, who, refid, text, sent&nbsp; FROM statuscomment WHERE refid='&quot;.$id.&quot;' ORDER BY sent DESC LIMIT $limit_start, $items_per_page&quot;;<br />
&nbsp; &nbsp; $items = mysql_query($sql);<br />
<br />
&nbsp; &nbsp; echo mysql_error();<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;0)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; while ($item = mysql_fetch_array($items))<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; $online = mysql_fetch_array(mysql_query(&quot;SELECT sex, uicon FROM ibwf_users WHERE id='&quot;.$item[1].&quot;'&quot;));<br />
&nbsp; &nbsp; &nbsp;  //echo &quot;$item[0]&lt;br /&gt;&quot;;<br />
&nbsp;if($online[1]==&quot;&quot;)<br />
&nbsp;{<br />
&nbsp;$seximg = &quot;&quot;;<br />
}else{<br />
&nbsp;$seximg = &quot;&lt;img src=\&quot;$online[1]\&quot; alt=\&quot;*\&quot;/&gt;&quot;;<br />
&nbsp;}<br />
&nbsp; $foto = idle($item[1], 45, 45);&nbsp; &nbsp; &nbsp; $snick = getnick_uid($item[1]);<br />
&nbsp; $cname = cname($item[1]);<br />
&nbsp;if(($cname == &quot;000000&quot;)||($cname == &quot;&quot;))<br />
&nbsp;{<br />
&nbsp;$fonto = &quot;&quot;;<br />
&nbsp;$fontc = &quot;&quot;;<br />
&nbsp;}else{<br />
&nbsp;$fonto = &quot;&lt;font color=\&quot;$cname\&quot;&gt;&quot;;<br />
&nbsp;$fontc = &quot;&lt;/font&gt;&quot;;<br />
&nbsp;}<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;$seximg&lt;a href=\&quot;profile.php?action=viewuser&amp;amp;who=$item[1]\&quot;&gt;$fonto$snick$fontc&lt;/a&gt;&quot;;<br />
&nbsp; $remain = time() - $item[4];<br />
&nbsp; $idle = gettimemsg2($remain);<br />
&nbsp; $bila = &quot;$idle ago&quot;;<br />
&nbsp; &nbsp; &nbsp; if(candelwc($uid, $item[1], $id))<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&lt;a href=\&quot;buddies.php?action=delstatcom&amp;&amp;amp;mid=$item[0]&amp;amp;midd=$id\&quot;&gt;[x]&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; }else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; }<br />
&nbsp;$ctext = ctext($item[1]);<br />
&nbsp;if(($ctext == &quot;000000&quot;)||($ctext == &quot;&quot;)){ $textoo = &quot;&quot;;<br />
&nbsp;$textco = &quot;&quot;; }else{ $textoo = &quot;&lt;font color=\&quot;$ctext\&quot;&gt;&quot;;<br />
&nbsp;$textco = &quot;&lt;/font&gt;&quot;; }<br />
&nbsp; &nbsp; &nbsp; $text = parsepm($item[3], $uid);<br />
&nbsp; &nbsp; &nbsp; $statlike = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuslike WHERE who='&quot;.$uid.&quot;' AND refid='&quot;.$_GET[&quot;id&quot;].&quot;'&quot;));<br />
<br />
&nbsp; if($statlike[0]==0)<br />
&nbsp;{<br />
&nbsp;$like = &quot;&lt;a href=\&quot;buddies.php?action=statuslike&amp;amp;id=$id&amp;amp;do=like&amp;amp;stat=2\&quot;&gt;Like&lt;/a&gt;&quot;;<br />
&nbsp;}else{<br />
&nbsp;$like = &quot;&lt;a href=\&quot;buddies.php?action=statusunlike&amp;amp;id=$id&amp;amp;stat=1\&quot;&gt;Unlike&lt;/a&gt;&quot;;<br />
}<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;table&gt;&lt;tr&gt;&lt;td&gt;$foto&lt;/td&gt;&lt;td&gt;$lnk $textoo$text$textco $like $delnk&lt;br/&gt;$bila&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class=\&quot;hr\&quot;&gt;&lt;/div&gt;&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;Add Comment:&lt;form action=\&quot;buddies.php?action=commentadd&amp;amp;id=$id&amp;amp;stat=$id\&quot; method=\&quot;post\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; echo &quot;&lt;textarea rows=\&quot;2\&quot; cols=\&quot;12\&quot; name=\&quot;text\&quot; maxlength=\&quot;250\&quot; size=\&quot;12\&quot;/&gt;&lt;/textarea&gt;&quot;;<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;&lt;input type=\&quot;submit\&quot; value=\&quot;Submit\&quot;/&gt;&lt;/form&gt;&quot;;<br />
&nbsp; &nbsp; //echo &quot;&lt;/div&gt;&lt;/div&gt;&quot;;<br />
&nbsp;//echo &quot;&lt;div class=\&quot;box_sub\&quot; align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; if($page&gt;1)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; $ppage = $page-1;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;index.php?show=$show&amp;amp;page=$ppage&amp;amp;id=$id\&quot;&gt;&amp;#171;PREV&lt;/a&gt; &quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; if($page&lt;$num_pages)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; $npage = $page+1;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;index.php?show=$show&amp;amp;page=$npage&amp;amp;id=$id\&quot;&gt;Next&amp;#187;&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;Page $page of $num_pages&lt;br/&gt;&quot;;<br />
&nbsp; &nbsp; if($num_pages&gt;2)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets = &quot;&lt;form action=\&quot;index.php\&quot; method=\&quot;get\&quot;&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; $rets .= &quot;Page&lt;input name=\&quot;pg\&quot; format=\&quot;*N\&quot; size=\&quot;3\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;show\&quot; value=\&quot;$show\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;id\&quot; value=\&quot;$id\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;hits\&quot; value=\&quot;$hits\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;submit\&quot; value=\&quot;[GO]\&quot;/&gt;&lt;/form&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $rets;<br />
&nbsp; &nbsp; }<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;commentadd&quot;)<br />
{<br />
<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Replying To A Status&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Adding Comment&quot;);<br />
&nbsp;  $stat = $_GET[&quot;stat&quot;];<br />
&nbsp; &nbsp; $id = $_GET[&quot;id&quot;];<br />
&nbsp; &nbsp; $who = $_GET[&quot;who&quot;];<br />
&nbsp; &nbsp;  $text = $_POST[&quot;text&quot;];<br />
&nbsp; &nbsp; &nbsp; $texts = parsepm($text, $sid);<br />
&nbsp; &nbsp; &nbsp;  $crdate = time();<br />
&nbsp; &nbsp; &nbsp; //$uid = getuid_hits($hits);<br />
&nbsp; &nbsp; &nbsp; $res = false;<br />
<br />
&nbsp; &nbsp; &nbsp; if(trim($text)!=&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $usts = mysql_fetch_array(mysql_query(&quot;SELECT plusses FROM ibwf_users WHERE id='&quot;.$uid.&quot;'&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $upl = $usts[0]+1;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mysql_query(&quot;UPDATE ibwf_users SET plusses='&quot;.$upl.&quot;' WHERE id='&quot;.$uid.&quot;'&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $res = mysql_query(&quot;INSERT into statuscomment SET refid='&quot;.$_GET[&quot;id&quot;].&quot;', who='&quot;.$uid.&quot;', sent='&quot;.$crdate.&quot;', text='&quot;.$text.&quot;'&quot;);<br />
<br />
<br />
&nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;O\&quot;/&gt;&lt;b&gt;Comment Add Successfully&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;X\&quot;/&gt;&lt;b&gt;Error Add Comment&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; }<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
<br />
else if($action==&quot;wall&quot;)<br />
{<br />
&nbsp;  $who=$_GET[&quot;who&quot;];<br />
&nbsp;  $nick =getuid_sid($sid);<br />
<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing $nick's wall&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Viewing $who's Wall&quot;);<br />
<br />
if($page==&quot;&quot; || $page&lt;=0)$page=1;<br />
<br />
&nbsp; &nbsp; $noi = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM status WHERE user='&quot;.$who.&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; $num_items = $noi[0]; //changable<br />
<br />
&nbsp; &nbsp; $items_per_page= 5;<br />
<br />
&nbsp; &nbsp; $num_pages = ceil($num_items/$items_per_page);<br />
<br />
&nbsp; &nbsp; if(($page&gt;$num_pages)&amp;&amp;$page!=1)$page= $num_pages;<br />
<br />
&nbsp; &nbsp; $limit_start = ($page-1)*$items_per_page;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT id, user, text, sent&nbsp; FROM status&nbsp; WHERE user='&quot;.$who.&quot;' ORDER BY sent DESC LIMIT $limit_start, $items_per_page&quot;;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; $items = mysql_query($sql);<br />
<br />
&nbsp; &nbsp; echo mysql_error();<br />
<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;0)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; while ($item = mysql_fetch_array($items))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(isonline($item[1]))<br />
<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/onl.gif\&quot; alt=\&quot;+\&quot;/&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/ofl.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
<br />
&nbsp; }<br />
<br />
&nbsp; &nbsp; $snick = getnick_uid($item[1]);<br />
<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;&lt;a href=\&quot;index.php?action=viewuser&amp;amp;who=$item[1]&amp;amp;sid=$sid\&quot;&gt;$iml$snick&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; $bs = date(&quot;d/m/y h:i:s A&quot;,$item[3]);<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;$lnk&lt;br/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; if(candelgb($uid, $item[1]))<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&lt;a href=\&quot;profile.php?action=delfgb&amp;amp;mid=$item[4]\&quot;&gt;[x]&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; $text = parsepm($item[2]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $uid = getuid_sid($sid);<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;Wrote:&lt;/b&gt; $text &lt;br/&gt;&lt;b&gt;Date&lt;/b&gt; $bs $delnk&lt;br/&gt;&lt;br /&gt;&quot;;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;/p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;p align=\&quot;center\&quot;&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if($page&gt;1)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $ppage = $page-1;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=action&amp;amp;page=$ppage&amp;amp;who=$who\&quot;&gt;&amp;#171;PREV&lt;/a&gt; &quot;;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if($page&lt;$num_pages)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $npage = $page+1;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=action&amp;amp;page=$npage&amp;amp;who=$who\&quot;&gt;Next&amp;#187;&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;$page/$num_pages&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if($num_pages&gt;2)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $rets = &quot;Jump to page&lt;input id=\&quot;inputText\&quot; name=\&quot;pg\&quot; format=\&quot;*N\&quot; size=\&quot;3\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;action\&quot; value=\&quot;$action\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;who\&quot; value=\&quot;$who\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;sid\&quot; value=\&quot;$sid\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input id=\&quot;inputButton\&quot; type=\&quot;submit\&quot; value=\&quot;Post\&quot;/&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;/form&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $rets;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;/p&gt;<br />
<br />
&nbsp; &nbsp; &lt;p align=\&quot;center\&quot;&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if(cansigngb($uid, $who))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=writewall&amp;amp;who=$who\&quot;&gt;&quot;;<br />
<br />
echo &quot;Add your comment&lt;/a&gt;&lt;br/&gt;&quot;;<br />
<br />
}<br />
<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;if($uid&gt;0)<br />
&nbsp; {<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
<br />
}else{<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? Guest&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div class=\&quot;error\&quot;&gt;&lt;img src=\&quot;http://coding-talk.com/images/no.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;&lt;strong&gt;You&nbsp; Are Not Logged In &lt;/strong&gt;&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;/div&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp; echo &quot;Please &lt;a href=\&quot;logon.php\&quot;&gt;Login&lt;/a&gt; | &lt;a href=\&quot;register.php\&quot;&gt;Register&lt;/a&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/div&gt;&quot;;<br />
}<br />
&nbsp;  pagefoot();<br />
<br />
}<br />
else if($action==&quot;statuslike&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing Status&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Status Like&quot;);<br />
&nbsp; &nbsp;  $stat = $_GET[&quot;stat&quot;];<br />
&nbsp; &nbsp; $id = $_GET[&quot;id&quot;];<br />
&nbsp; &nbsp; $who = $_GET[&quot;who&quot;];<br />
<br />
&nbsp; &nbsp; if($stat == '2'){<br />
&nbsp; &nbsp; $do = $_GET[&quot;do&quot;];<br />
&nbsp;  $refid&nbsp; = $_GET[&quot;id&quot;];<br />
&nbsp;echo &quot;&lt;div class=\&quot;box_sub\&quot; align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp;  if($do==&quot;like&quot;)<br />
&nbsp;{<br />
&nbsp;$vb = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM statuslike WHERE refid='&quot;.$refid.&quot;' AND who='&quot;.$uid.&quot;'&quot;));<br />
&nbsp; if($vb[0]==0)<br />
&nbsp; {<br />
&nbsp; &nbsp; &nbsp; $res = mysql_query(&quot;INSERT INTO statuslike SET who='&quot;.$uid.&quot;', refid='&quot;.$refid.&quot;', sent='&quot;.time().&quot;'&quot;);<br />
<br />
&nbsp; if($res)<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;o\&quot;/&gt;Status Like Successfully!&quot;;<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;Status Like Error&quot;;<br />
&nbsp; }<br />
&nbsp;}else{<br />
<br />
&nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;You already like this status!&quot;;<br />
}<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; $res = mysql_query(&quot;DELETE FROM statuslike WHERE refid='&quot;.$refid.&quot;' AND who='&quot;.$uid.&quot;'&quot;);<br />
<br />
&nbsp;if($res)<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;o\&quot;/&gt;Status Unlike Successfully!&quot;;<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;Status Unlike Error&quot;;<br />
&nbsp; }<br />
&nbsp;}<br />
&nbsp;  }<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;statusunlike&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Unliking A Status&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Unliking A Status&quot;);<br />
<br />
&nbsp; &nbsp;  $stat = $_GET[&quot;stat&quot;];<br />
&nbsp; &nbsp; $id = $_GET[&quot;id&quot;];<br />
&nbsp; &nbsp; $who = $_GET[&quot;who&quot;];<br />
<br />
&nbsp; &nbsp; if($stat == '1'){<br />
&nbsp; &nbsp; $do = $_GET[&quot;do&quot;];<br />
&nbsp;  $refid&nbsp; = $_GET[&quot;id&quot;];<br />
&nbsp;  $stat = $_GET[&quot;stat&quot;];<br />
&nbsp; &nbsp; $id = $_GET[&quot;id&quot;];<br />
&nbsp; &nbsp; $who = $_GET[&quot;who&quot;];<br />
&nbsp;$res = mysql_query(&quot;DELETE FROM statuslike WHERE refid='&quot;.$refid.&quot;' AND who='&quot;.$uid.&quot;'&quot;);<br />
<br />
&nbsp;if($res)<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;o\&quot;/&gt;Status Unliked Successfully!&quot;;<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;Status Unlike Error&quot;;<br />
&nbsp; }<br />
&nbsp;  }<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;delstatus&quot;)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Deleting Status&quot;);<br />
&nbsp; &nbsp; &nbsp; $uid =getuid_sid($sid);<br />
&nbsp; &nbsp; $midd = $_GET[&quot;mid&quot;];<br />
<br />
&nbsp; addonline(getuid_sid($sid),&quot;Deleting GB Message&quot;,&quot;&quot;);<br />
<br />
&nbsp; if(candelwc(getuid_sid($sid), $uid, $midd))<br />
<br />
&nbsp; {<br />
&nbsp; &nbsp;  $res = mysql_query(&quot;DELETE FROM statuscomment WHERE id='&quot;.$uid.&quot;' AND who='&quot;.$midd.&quot;'&quot;);<br />
&nbsp; &nbsp; $res = mysql_query(&quot;DELETE FROM status WHERE user='&quot;.$mid.&quot;'&quot;);<br />
<br />
&nbsp; &nbsp; if($res)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;o\&quot;/&gt;Message Deleted From Status&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;Database Error!&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;X\&quot;/&gt;You can't delete this message&quot;;<br />
<br />
&nbsp; }<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;delstatcom&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Deleting Comment&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Deleting Comment&quot;);<br />
<br />
&nbsp; &nbsp; $mid = $_GET[&quot;mid&quot;];<br />
&nbsp; &nbsp;  $midd = $_GET[&quot;midd&quot;];<br />
&nbsp; addonline(getuid_sid($sid),&quot;Deleting GB Message&quot;,&quot;&quot;);<br />
<br />
&nbsp; if(candelwc(getuid_sid($sid), $midd, $mid))<br />
<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; $res = mysql_query(&quot;DELETE FROM statuscomment WHERE id='&quot;.$mid.&quot;' AND who='&quot;.$midd.&quot;'&quot;);<br />
<br />
&nbsp; &nbsp; if($res)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;o\&quot;/&gt;Message Deleted From Status&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;x\&quot;/&gt;Database Error!&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;X\&quot;/&gt;You can't delete this message&quot;;<br />
<br />
&nbsp; }<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
else if($action==&quot;addstatcom&quot;)<br />
{<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing&nbsp; List&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Buddies List&quot;);<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;  navstart(&quot;Back To Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;home.php?action=main&amp;amp;is=awsum\&quot;&gt;Home&lt;/a&gt;&lt;br/&gt;&quot;;<br />
&nbsp;  pagefoot();<br />
&nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
}<br />
<br />
<br />
////////////////////////////////////////////////////////////////<br />
<br />
now for wall on profiles<br />
<br />
on profiles add<br />
<br />
&nbsp;navstart(&quot;Wall Messages&quot;);<br />
&nbsp; &nbsp; $sql = &quot;SELECT gbowner, gbsigner, gbmsg, dtime FROM ibwf_wall WHERE gbowner='&quot;.$who.&quot;' ORDER BY dtime DESC LIMIT 4&quot;;<br />
<br />
&nbsp; &nbsp; $items = mysql_query($sql);<br />
&nbsp; &nbsp; echo mysql_error();<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;0)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;1)<br />
&nbsp; &nbsp; {<br />
&nbsp;$br = &quot;&lt;br/&gt;&quot;;<br />
&nbsp; }else{<br />
&nbsp;$hr = &quot;&quot;;<br />
&nbsp;}<br />
&nbsp; &nbsp; while ($item = mysql_fetch_array($items))<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; $hr =&quot;&lt;div class=\&quot;hr\&quot;&gt;&lt;/hr&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $snick = getnick_uid($item[1]);<br />
&nbsp; &nbsp; &nbsp; $text = parsepm($item[2], $sid);<br />
&nbsp;echo &quot;&lt;table&gt;&lt;tr&gt;&lt;td&gt;$foto&lt;/td&gt;&lt;td&gt;$seximg&lt;a href=\&quot;profile.php?action=viewuser&amp;amp;who=$item[1]\&quot;&gt;$snick&lt;/a&gt;&lt;br/&gt;$text&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;;<br />
<br />
&nbsp;  }<br />
&nbsp; &nbsp; }else{<br />
&nbsp;echo &quot;&lt;i&gt;*No Messages&lt;/i&gt;&lt;br/&gt;&quot;;<br />
&nbsp;}<br />
&nbsp; &nbsp; if(cansigngb($uid, $who))<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;&lt;a href=\&quot;profile.php?action=writewall&amp;amp;who=$who\&quot;&gt;&quot;;<br />
&nbsp;echo &quot;Sign Wall&lt;/a&gt; | &quot;;<br />
}else{<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;&quot;;<br />
&nbsp;}<br />
&nbsp;  $noi = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_wall WHERE gbowner='&quot;.$who.&quot;'&quot;));<br />
&nbsp;  echo &quot;&lt;a href=\&quot;profile.php?action=wall&amp;amp;who=$who\&quot;&gt;Comments&lt;/a&gt; [$noi[0]]&quot;;<br />
<br />
&nbsp;  ////////////////////////////////////////////////////////////////////////////////<br />
<br />
&nbsp;  else if($action==&quot;writewall&quot;)<br />
{<br />
&nbsp; $who=$_GET[&quot;who&quot;];<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Commenting on &quot;.getuid_nick($who).&quot;'s wall&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Writing On A Wall&quot;);<br />
&nbsp;if(!cansigngb($uid, $who)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; boxstart(&quot;Error!&quot;);<br />
echo &quot;<br />
&lt;p align=\&quot;center\&quot;&gt;<br />
You need to be this user's buddy for commenting blog.&lt;br/&gt;&lt;br/&gt;<br />
&lt;a href=\&quot;home.php?action=main\&quot;&gt;home&lt;/a&gt;<br />
&lt;/p&gt;&lt;/font&gt;&lt;/body&gt;<br />
&lt;/html&gt;&quot;;<br />
exit();<br />
}<br />
echo &quot;&lt;p align=\&quot;center\&quot;&gt;<br />
Text:&lt;form action=\&quot;profile.php?action=signwall\&quot; method=\&quot;post\&quot;&gt;<br />
&lt;input id=\&quot;inputText\&quot; name=\&quot;msgtxt\&quot; maxlength=\&quot;500\&quot;/&gt;&lt;br/&gt;<br />
&lt;input type=\&quot;hidden\&quot; name=\&quot;who\&quot; value=\&quot;$who\&quot;/&gt;<br />
&lt;input id=\&quot;inputButton\&quot; type=\&quot;submit\&quot; value=\&quot;submit\&quot;/&gt;&lt;/form&gt;<br />
&lt;/p&gt;&quot;;<br />
<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;if($uid&gt;0)<br />
&nbsp; {<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
<br />
}else{<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? Guest&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div class=\&quot;error\&quot;&gt;&lt;img src=\&quot;http://coding-talk.com/images/no.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;&lt;strong&gt;You&nbsp; Are Not Logged In &lt;/strong&gt;&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;/div&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp; echo &quot;Please &lt;a href=\&quot;logon.php\&quot;&gt;Login&lt;/a&gt; | &lt;a href=\&quot;register.php\&quot;&gt;Register&lt;/a&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/div&gt;&quot;;<br />
}<br />
&nbsp;  pagefoot();<br />
<br />
}<br />
else if($action==&quot;signwall&quot;)<br />
{<br />
&nbsp; $who=$_GET[&quot;who&quot;];<br />
&nbsp;  $uid =getuid_sid($sid);<br />
&nbsp; addonline(getuid_sid($sid),&quot;Commenting on &quot;.getuid_nick($who).&quot;'s wall&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Signing $who's Wall&quot;);<br />
$who = $_POST[&quot;who&quot;];<br />
<br />
<br />
<br />
if(!cansigngb(getuid_sid($sid), $who))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;You cant post comment in this user's blog because you are not in his/her buddy list.&lt;br/&gt;&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=wall&amp;amp;who=$who\&quot;&gt;My wall&lt;/a&gt;&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;index.php?action=main&amp;amp;sid=$sid\&quot;&gt;Main Menu&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;/body&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;/html&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; exit();<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; $msgtxt = $_POST[&quot;msgtxt&quot;];<br />
<br />
&nbsp; //$qut = $_POST[&quot;qut&quot;];<br />
<br />
&nbsp; addonline(getuid_sid($sid),&quot;Commenting on a wall post&quot;,&quot;&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; $crdate = time();<br />
<br />
&nbsp; &nbsp; &nbsp; //$uid = getuid_sid($sid);<br />
<br />
&nbsp; &nbsp; &nbsp; $res = false;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; if(trim($msgtxt)!=&quot;&quot;)<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; $res = mysql_query(&quot;INSERT INTO ibwf_wall SET gbowner='&quot;.$who.&quot;', gbsigner='&quot;.$uid.&quot;', dtime='&quot;.$crdate.&quot;', gbmsg='&quot;.$msgtxt.&quot;'&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; if($res)<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/ok.gif\&quot; alt=\&quot;O\&quot;/&gt;Message Posted Successfully&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;http://coding-talk.com/images/notok.gif\&quot; alt=\&quot;X\&quot;/&gt;Error Posting Message&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;br/&gt;&lt;a href=\&quot;profile.php?action=wall&amp;amp;who=$who\&quot;&gt;&quot;.getnick_uid($who).&quot;'s wall&lt;/a&gt;&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;br/&gt;&quot;;<br />
<br />
<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;if($uid&gt;0)<br />
&nbsp; {<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
<br />
}else{<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? Guest&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div class=\&quot;error\&quot;&gt;&lt;img src=\&quot;http://coding-talk.com/images/no.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;&lt;strong&gt;You&nbsp; Are Not Logged In &lt;/strong&gt;&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;/div&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp; echo &quot;Please &lt;a href=\&quot;logon.php\&quot;&gt;Login&lt;/a&gt; | &lt;a href=\&quot;register.php\&quot;&gt;Register&lt;/a&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/div&gt;&quot;;<br />
}<br />
&nbsp;  pagefoot();<br />
<br />
}<br />
else if($action==&quot;wall&quot;)<br />
{<br />
&nbsp;  $who=$_GET[&quot;who&quot;];<br />
&nbsp;  $uid =getuid_sid($sid);<br />
<br />
&nbsp; addonline(getuid_sid($sid),&quot;Viewing $nick's wall&quot;,&quot;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; pagehead();<br />
navstart(&quot;Viewing $nick's Wall&quot;);<br />
<br />
if($page==&quot;&quot; || $page&lt;=0)$page=1;<br />
<br />
&nbsp; &nbsp; $noi = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_wall WHERE gbowner='&quot;.$who.&quot;'&quot;));<br />
<br />
&nbsp; &nbsp; $num_items = $noi[0]; //changable<br />
<br />
&nbsp; &nbsp; $items_per_page= 5;<br />
<br />
&nbsp; &nbsp; $num_pages = ceil($num_items/$items_per_page);<br />
<br />
&nbsp; &nbsp; if(($page&gt;$num_pages)&amp;&amp;$page!=1)$page= $num_pages;<br />
<br />
&nbsp; &nbsp; $limit_start = ($page-1)*$items_per_page;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sql = &quot;SELECT gbowner, gbsigner, gbmsg, dtime, id FROM ibwf_wall WHERE gbowner='&quot;.$who.&quot;' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page&quot;;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; $items = mysql_query($sql);<br />
<br />
&nbsp; &nbsp; echo mysql_error();<br />
<br />
&nbsp; &nbsp; if(mysql_num_rows($items)&gt;0)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; while ($item = mysql_fetch_array($items))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(isonline($item[1]))<br />
<br />
&nbsp; {<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/onl.gif\&quot; alt=\&quot;+\&quot;/&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; }else{<br />
<br />
&nbsp; &nbsp; $iml = &quot;&lt;img src=\&quot;http://coding-talk.com/images/ofl.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
<br />
&nbsp; }<br />
<br />
&nbsp; &nbsp; $snick = getnick_uid($item[1]);<br />
<br />
&nbsp; &nbsp; &nbsp; $lnk = &quot;&lt;a href=\&quot;index.php?action=viewuser&amp;amp;who=$item[1]&amp;amp;sid=$sid\&quot;&gt;$iml$snick&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; $bs = date(&quot;d/m/y h:i:s A&quot;,$item[3]);<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;$lnk&lt;br/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; if(candelgb($uid, $item[4]))<br />
<br />
&nbsp; &nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&lt;a href=\&quot;profile.php?action=delfgb&amp;amp;mid=$item[4]\&quot;&gt;[x]&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }else{<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $delnk = &quot;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; $text = parsepm($item[2]);<br />
<br />
&nbsp; &nbsp; &nbsp; $query = mysql_query(&quot;SELECT referid FROM wallcomlike WHERE who='&quot;.$who.&quot;'&quot;);<br />
while ($links2 = mysql_fetch_array($query))<br />
&nbsp; {<br />
&nbsp;  $like = &quot;&lt;a href=\&quot;home.php?action=viewuser&amp;amp;who=$links2[0]\&quot;&gt;&quot;.getnick_uid($links2[0]).&quot;&lt;/a&gt;&quot;;<br />
<br />
<br />
&nbsp;  }<br />
&nbsp;  $likes = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM wallcomlike WHERE refid='&quot;.$who[0].&quot;'&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;$like,$query[1],$query[2],$query[3]&quot;;<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;Wrote:&lt;/b&gt; $text likes [$likes[0]]&lt;br/&gt;&lt;b&gt;Date&lt;/b&gt; $bs $delnk&lt;br/&gt;&lt;br /&gt;&quot;;<br />
<br />
<br />
<br />
<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;/p&gt;&quot;;<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;p align=\&quot;center\&quot;&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if($page&gt;1)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $ppage = $page-1;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=action&amp;amp;page=$ppage&amp;amp;who=$who\&quot;&gt;&amp;#171;PREV&lt;/a&gt; &quot;;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; if($page&lt;$num_pages)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $npage = $page+1;<br />
<br />
&nbsp; &nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=action&amp;amp;page=$npage&amp;amp;who=$who\&quot;&gt;Next&amp;#187;&lt;/a&gt;&quot;;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;br/&gt;$page/$num_pages&lt;br/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if($num_pages&gt;2)<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; &nbsp; $rets = &quot;Jump to page&lt;input id=\&quot;inputText\&quot; name=\&quot;pg\&quot; format=\&quot;*N\&quot; size=\&quot;3\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp;  $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;action\&quot; value=\&quot;$action\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;who\&quot; value=\&quot;$who\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input type=\&quot;hidden\&quot; name=\&quot;sid\&quot; value=\&quot;$sid\&quot;/&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;input id=\&quot;inputButton\&quot; type=\&quot;submit\&quot; value=\&quot;Post\&quot;/&gt;&quot;;<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $rets .= &quot;&lt;/form&gt;&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo $rets;<br />
<br />
&nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;/p&gt;<br />
<br />
&nbsp; &nbsp; &lt;p align=\&quot;center\&quot;&gt;&quot;;<br />
<br />
&nbsp; &nbsp; if(cansigngb($uid, $who))<br />
<br />
&nbsp; &nbsp; {<br />
<br />
&nbsp; &nbsp; echo &quot;&lt;a href=\&quot;profile.php?action=writewall&amp;amp;who=$who\&quot;&gt;&quot;;<br />
<br />
echo &quot;Add your comment&lt;/a&gt;&lt;br/&gt;&quot;;<br />
<br />
}<br />
<br />
<br />
$nick = getnick_sid($sid);<br />
&nbsp;if($uid&gt;0)<br />
&nbsp; {<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? $nick&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
<br />
}else{<br />
&nbsp; $chs = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_chonline&quot;));<br />
&nbsp; $tmsg = getpmcount(getuid_sid($sid));<br />
&nbsp; $umsg = getunreadpm(getuid_sid($sid));<br />
&nbsp; $mybuds = getnbuds($uid);<br />
&nbsp; $onbuds = getonbuds($uid);<br />
$allbuds = getnbuds($uid);<br />
$reqs = getnreqs($uid);<br />
&nbsp; $topics = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_topics&quot;));<br />
&nbsp; $posts = mysql_fetch_array(mysql_query(&quot;SELECT COUNT(*) FROM ibwf_posts&quot;));<br />
&nbsp; $nick = getnick_sid($sid);<br />
echo &quot;&lt;center&gt;&quot;;<br />
&nbsp; navstart(&quot;Back TO Where? Guest&quot;);<br />
echo &quot;&lt;a href=\&quot;index.php\&quot;&gt;Home&lt;/a&gt; &quot;;<br />
echo &quot;&amp;#187;Viewing $whonick's Profile&lt;br /&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/center&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div class=\&quot;error\&quot;&gt;&lt;img src=\&quot;http://coding-talk.com/images/no.gif\&quot; alt=\&quot;-\&quot;/&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;b&gt;&lt;strong&gt;You&nbsp; Are Not Logged In &lt;/strong&gt;&lt;/b&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  echo &quot;&lt;/div&gt;&quot;;<br />
&nbsp; echo &quot;&lt;div align=\&quot;center\&quot;&gt;&quot;;<br />
&nbsp; echo &quot;Please &lt;a href=\&quot;logon.php\&quot;&gt;Login&lt;/a&gt; | &lt;a href=\&quot;register.php\&quot;&gt;Register&lt;/a&gt;&quot;;<br />
&nbsp;echo &quot;&lt;/div&gt;&quot;;<br />
}<br />
&nbsp;  pagefoot();<br />
<br />
}<br />
<br />
?&gt;</code><hr />
</div><!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f14/">Coding Forum</category>
			<dc:creator>ozziemale31</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f14/wall-on-profile-and-status-comments-and-likes-31222/</guid>
		</item>
		<item>
			<title>Question: Horizontal or Vertical menu?</title>
			<link>http://coding-talk.com/f21/question-horizontal-or-vertical-menu-31221/</link>
			<pubDate>Fri, 17 May 2013 13:30:43 GMT</pubDate>
			<description><![CDATA[Hello all, 
 
The question is about a new AdminPanel template which I am building for my own CMS (yes I have and it's closed source :p ), 
and...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello all,<br />
<br />
The question is about a new AdminPanel template which I am building for my own CMS (yes I have and it's closed source :p ),<br />
and despite the general feedbacks from clients, I want your opinion also.<br />
<br />
Which is more pretty and user friendly:<br />
Horizontal menu on top of the page,<br />
or vertical menu on the left side of the page?<br />
<br />
Thank you!<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f21/">Design - Templates - Graphics</category>
			<dc:creator>Mysterio3</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f21/question-horizontal-or-vertical-menu-31221/</guid>
		</item>
		<item>
			<title>MySql select from multiple tables problem (without joins)</title>
			<link>http://coding-talk.com/f23/mysql-select-from-multiple-tables-problem-without-joins-31219/</link>
			<pubDate>Thu, 16 May 2013 19:58:19 GMT</pubDate>
			<description><![CDATA[I have a weird problem and I can't figure it out. 
I have this select : 
 
PHP: 
--------- 
$select = mysql_query("SELECT user_id, torrent_id,...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->I have a weird problem and I can't figure it out.<br />
I have this select :<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">$select&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;user_id,&nbsp;torrent_id,&nbsp;torrentname&nbsp;FROM&nbsp;wishlist&nbsp;WHERE&nbsp;user_id&nbsp;=&nbsp;'"</span><span style="color: #007700">.</span><span style="color: #0000BB">$USER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'id'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"'"</span><span style="color: #007700">)&nbsp;or&nbsp;die&nbsp;(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />while&nbsp;(</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_assoc</span><span style="color: #007700">(</span><span style="color: #0000BB">$select</span><span style="color: #007700">)){<br />echo&nbsp;</span><span style="color: #DD0000">"&lt;a&nbsp;href='details.php?id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$row</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'torrent_id'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"'&gt;"</span><span style="color: #007700">.</span><span style="color: #0000BB">$row</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'torrentname'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"&lt;/a&gt;&lt;br/&gt;"</span><span style="color: #007700">;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>So far so good, but the problem is when I'm trying to add a second table in the select, like this:<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">$select&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;wishlist.user_id&nbsp;as&nbsp;uid,&nbsp;wishlist.torrent_id&nbsp;as&nbsp;wtid,&nbsp;wishlist.torrentname&nbsp;as&nbsp;wtn,&nbsp;categories.id&nbsp;FROM&nbsp;wishlist,&nbsp;categories&nbsp;WHERE&nbsp;wishlist.user_id&nbsp;=&nbsp;'"</span><span style="color: #007700">.</span><span style="color: #0000BB">$USER</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'id'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"'"</span><span style="color: #007700">)&nbsp;or&nbsp;die&nbsp;(</span><span style="color: #0000BB">mysql_error</span><span style="color: #007700">());<br />while&nbsp;(</span><span style="color: #0000BB">$row&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mysql_fetch_assoc</span><span style="color: #007700">(</span><span style="color: #0000BB">$select</span><span style="color: #007700">)){<br />echo&nbsp;</span><span style="color: #DD0000">"&lt;a&nbsp;href='details.php?id="</span><span style="color: #007700">.</span><span style="color: #0000BB">$row</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'wtid'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"'&gt;"</span><span style="color: #007700">.</span><span style="color: #0000BB">$row</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'wtn'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"&lt;/a&gt;&lt;br/&gt;"</span><span style="color: #007700">;<br />}&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div>Now the problem is that instead of 4 rows that it should show in the mysql_fetch_assoc, show those 4 rows again and again and so on...<br />
What I am doing wrong?<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://coding-talk.com/f23/">Site / Script testing and error fixing</category>
			<dc:creator>cedry2k</dc:creator>
			<guid isPermaLink="true">http://coding-talk.com/f23/mysql-select-from-multiple-tables-problem-without-joins-31219/</guid>
		</item>
	</channel>
</rss>
