<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Abeon Tech &#187; Code</title>
	<atom:link href="http://abeontech.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://abeontech.com</link>
	<description>Abeon Techs Geeky blog for Coders, Gamers, Webmasters and Tech Addicts!</description>
	<lastBuildDate>Thu, 28 Jul 2011 18:50:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Domain Deals</title>
		<link>http://abeontech.com/428-webdesign-domain-deals</link>
		<comments>http://abeontech.com/428-webdesign-domain-deals#comments</comments>
		<pubDate>Thu, 27 Jan 2011 23:07:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://abeontech.com/?p=428</guid>
		<description><![CDATA[If you want a website you need a domain name&#8230; Unless you want people to enter something like 255.255.255.255 to visit your site. I&#8217;ll keep this short and sweet. Get free Positive SSL and free Whois Guard with every domain name you register! With the added bonus of the cheapest rates about, you can&#8217;t complain! [...]]]></description>
			<content:encoded><![CDATA[<p>If you want a website you need a domain name&#8230; Unless you want people to enter something like 255.255.255.255 to visit your site.</p>
<p>I&#8217;ll keep this short and sweet.<br />
Get free Positive SSL and free Whois Guard with every domain name you register!<br />
With the added bonus of the cheapest rates about, you can&#8217;t complain!<span id="more-428"></span></p>
<p>I have used many different domain companies over the years I&#8217;ve been into programming and to be honest they are all pretty much the same apart from price. Some provide bad support, but as a whole there all equal.</p>
<p>So getting free stuff included like a <strong>free Positive SSL certificate</strong> and <strong>free Whois Guard</strong> with every domain name you register is a nice bonus!</p>
<p style="padding-left: 30px;">.info &#8211; $2.99/yr &#038;nbsp (<strong style="color: #ff9900;font-size:0.8em">Limited Time Only!</strong>)<br />
.com &#8211; $9.98/yr<br />
.net &#8211; $9.98/yr<br />
.org &#8211; $8.88/yr<br />
.mobi &#8211; $7.99/yr<br />
.biz &#8211; $9.69/yr</p>
<p style="text-align: center;"><a href="http://bit.ly/namecheapdeals">Name Cheap</a><br />
<a href="http://bit.ly/namecheapdeals"><img class="aligncenter" src="http://files.namecheap.com/graphics/linkus/468x60-3.gif" border="0" alt="Free PositiveSSL and WhoisGuard with Every Domain Purchase" width="468" height="60" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/428-webdesign-domain-deals/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebWoW In-game mail using SOAP</title>
		<link>http://abeontech.com/426-webdesign-webwow-in-game-mail-using-soap-ra-replacement</link>
		<comments>http://abeontech.com/426-webdesign-webwow-in-game-mail-using-soap-ra-replacement#comments</comments>
		<pubDate>Wed, 19 Jan 2011 09:42:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Mod]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://abeontech.com/?p=426</guid>
		<description><![CDATA[This little mod will replace WebWoWs RA (telnet) mail with Mangos' SOAP version.
This will replace both the admins "send mail" and users "vote shop" pages.]]></description>
			<content:encoded><![CDATA[<p>This little modification will replace <a href="http://www.web-wow.net/">WebWoWs&#8217;</a> RA mail system (Remote Access which uses telnet) with a fully <a href="http://en.wikipedia.org/wiki/SOAP">SOAP</a> compatible version.<br />
This will replace both the admins &#8220;send mail&#8221; and users &#8220;vote shop&#8221; features.<span id="more-426"></span></p>
<p>I have recently switched back to version 3.6.3 of the WebWoW <abbr title="Content Management System">CMS</abbr> (using the web creator v1) as the latest version just doesn&#8217;t seem ready yet.</p>
<p>I had problems sending in-game mail with the older version of WebWoW as I had disabled Remote Access in Mangos as the port being opened didn&#8217;t seem necessary.</p>
<p>I didn&#8217;t like the way telnet was forced instead of a web interface, so I replaced the telnet mail system.</p>
<p>The only error I saw was &#8220;Remote Login Problem:&#8221;, apparently caused by incorrect settings. I knew the problem was remote access so I patched the system to use SOAP.</p>
<p>I have edited the mail system in WebWoW so it can be used to send anything including money, items, support tickets, <a href="http://www.nextdayflyers.com/postcard-printing-marketing/">postcards</a>, and more. So getting it working was top of my list of things to do!</p>
<p>Below is how to get it working:</p>
<p><strong>1 &#8211; Enable SOAP in your mangosd.conf file.</strong></p>
<p><strong>2 &#8211; Open:</strong><br />
includes/core/mangos_sendmail.php</p>
<p><strong>3 &#8211; Replace:</strong><br />
The  sendmail function, below:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:250px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> sendmail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$playername</span><span style="color: #339933;">,</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span><span style="color: #339933;">,</span> <span style="color: #000088;">$shopid</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> &nbsp;<span style="color: #000088;">$money</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$realmid</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//returns, IMPORTANT: do not remove &lt;!-- success --&gt; if success</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$server</span><span style="color: #339933;">,</span><span style="color: #000088;">$ra_user</span><span style="color: #339933;">,</span><span style="color: #000088;">$ra_pass</span><span style="color: #339933;">,</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span><span style="color: #000088;">$a_user</span><span style="color: #339933;">,</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">,</span><span style="color: #000088;">$realm</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$playername</span> <span style="color: #339933;">=</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$playername</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^A-Za-z0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subject</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//no whitespaces</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$item</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//item id</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$realmid</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$realmid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//item id</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$item</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$item</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$money</span><span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$money</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$telnet</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fsockopen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$server</span><span style="color: #339933;">,</span> <span style="color: #000088;">$realm</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$realmid</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port_ra'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$error</span><span style="color: #339933;">,</span> <span style="color: #000088;">$error_str</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Motd</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ra_user</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//fgets($telnet,1024); // PASS</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ra_pass</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">sleep</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$remote_login</span> <span style="color: #339933;">=</span> <span style="color: #990000;">fgets</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strstr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$remote_login</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Logged in.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">//send item</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//sendmail to RA console</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;.send items &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$item</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$easf</span><span style="color: #339933;">=</span><span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$mailtext</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Mail with item sent! No money was sent.&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$money</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">'0'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$money</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">//send money</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;.send money &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$money</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$moneytext</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Mail with money sent! No item was sent.&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #666666; font-style: italic;">//send letter</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fputs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;.send mail &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> <span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$moneytext</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Normal Mail sent!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//check database if actuall item is there</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//WebsiteVoteShopREFXXXXXXX -&gt;this is unique</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$check</span><span style="color: #339933;">=</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM mail WHERE receiver = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' AND subject ='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span>or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$check</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$status</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Recheck script (just to make sure mail is actually sent):&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;iframe style='width:96%; &nbsp;height:100px' src='./include/core/mangos_iframe_mailcheck.php?shopid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;reciver=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;subject=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;realmid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$realmid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;shash=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">sha1</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a_user</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&lt;a href='./include/core/mangos_iframe_mailcheck.php?shopid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;reciver=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;subject=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;realmid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$realmid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;shash=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">sha1</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a_user</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;Check here if your mail is here.&lt;/a&gt;&lt;/iframe&gt;&lt;/center&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;!-- success --&gt;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorgood<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mailtext</span><span style="color: #339933;">.</span><span style="color: #000088;">$moneytext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$status</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorbad<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Remote Login Problem: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$remote_login</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/span&gt;&lt;br&gt;Used login: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$ra_user</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">fclose</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$telnet</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorbad<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;MaNGOS server is offline, you must do this when server is online.&lt;/span&gt;&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p><strong>4 &#8211; With</strong><br />
The following function:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:250px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> sendmail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$playername</span><span style="color: #339933;">,</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">,</span> <span style="color: #000088;">$text</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span><span style="color: #339933;">,</span> <span style="color: #000088;">$shopid</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> &nbsp;<span style="color: #000088;">$money</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$realmid</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//returns, IMPORTANT: do not remove &lt;!-- success --&gt; if success</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$server</span><span style="color: #339933;">,</span><span style="color: #000088;">$ra_user</span><span style="color: #339933;">,</span><span style="color: #000088;">$ra_pass</span><span style="color: #339933;">,</span><span style="color: #000088;">$db</span><span style="color: #339933;">,</span><span style="color: #000088;">$a_user</span><span style="color: #339933;">,</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">,</span><span style="color: #000088;">$realm</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000088;">$playername</span> <span style="color: #339933;">=</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$playername</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^A-Za-z0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subject</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//no whitespaces</span><br />
&nbsp;<span style="color: #000088;">$item</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//item id</span><br />
&nbsp;<span style="color: #000088;">$realmid</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$realmid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//item id</span><br />
&nbsp;<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$item</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$item</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> clean_string<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000088;">$money</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/[^0-9]/&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$money</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; <span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'GMNAME'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'GMPASS'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$soapport</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">7878</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//send item</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'send items '</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$item</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$moneytext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;strong&gt;Your reward has been sent.&lt;/strong&gt; Please check your mailbox in game!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SoapClient<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;location&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;http://<span style="color: #006699; font-weight: bold;">$host</span>:<span style="color: #006699; font-weight: bold;">$soapport</span>/&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;uri&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;urn:MaNGOS&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;style&quot;</span> <span style="color: #339933;">=&gt;</span> SOAP_RPC<span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$username</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$password</span><br />
&nbsp; <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; try <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">executeCommand</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SoapParam<span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;command&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;!-- success --&gt;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorgood<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mailtext</span><span style="color: #339933;">.</span><span style="color: #000088;">$moneytext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$status</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span> <br />
&nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Command failed! Reason:&lt;br /&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$e</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$money</span><span style="color: #339933;">&gt;</span><span style="color: #0000ff;">'0'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$money</span><span style="color: #339933;">&lt;&gt;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">//send money</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'send money '</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; '</span><span style="color: #339933;">.</span><span style="color: #000088;">$money</span><span style="color: #339933;">.</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SoapClient<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;location&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;http://<span style="color: #006699; font-weight: bold;">$host</span>:<span style="color: #006699; font-weight: bold;">$soapport</span>/&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;uri&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;urn:MaNGOS&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;style&quot;</span> <span style="color: #339933;">=&gt;</span> SOAP_RPC<span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$username</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$password</span><br />
&nbsp; <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; try <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">executeCommand</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SoapParam<span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;command&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$moneytext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;strong&gt;Your money has been sent.&lt;/strong&gt; Please check your mailbox in game!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$moneytext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Failed to send any money. &lt;br /&gt;Please contact support!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #b1b100;">else</span> <span style="color: #666666; font-style: italic;">//send mail</span><br />
&nbsp;<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000088;">$command</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'send mail '</span><span style="color: #339933;">.</span><span style="color: #000088;">$playername</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; &quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SoapClient<span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span><br />
&nbsp; <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;location&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;http://<span style="color: #006699; font-weight: bold;">$host</span>:<span style="color: #006699; font-weight: bold;">$soapport</span>/&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;uri&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;urn:MaNGOS&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">&quot;style&quot;</span> <span style="color: #339933;">=&gt;</span> SOAP_RPC<span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$username</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp;<span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$password</span><br />
&nbsp; <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <br />
&nbsp; try <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">executeCommand</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SoapParam<span style="color: #009900;">&#40;</span><span style="color: #000088;">$command</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;command&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$moneytext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;strong&gt;Your mail was sent.&lt;/strong&gt; Please check your mailbox in game!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$e</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #000088;">$moneytext</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Failed to send your mail. &lt;br /&gt;Please contact support!&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp;<span style="color: #000088;">$check</span><span style="color: #339933;">=</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM mail WHERE receiver = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' AND subject ='&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;' LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span>or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$check</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$status</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Rechecking, just to make sure mail is actually sent:&lt;br&gt;&lt;br&gt;&lt;center&gt;&lt;iframe style='width:96%; &nbsp;height:100px' src='./include/core/mangos_iframe_mailcheck.php?shopid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;reciver=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;subject=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;realmid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$realmid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;shash=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">sha1</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a_user</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;&lt;a href='./include/core/mangos_iframe_mailcheck.php?shopid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;reciver=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;subject=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;realmid=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$realmid</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;shash=&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">sha1</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a_user</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$playerguid</span><span style="color: #339933;">.</span><span style="color: #000088;">$subject</span><span style="color: #339933;">.</span><span style="color: #000088;">$se_c</span><span style="color: #339933;">.</span><span style="color: #000088;">$shopid</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;'&gt;Check here if your mail is here.&lt;/a&gt;&lt;/iframe&gt;&lt;/center&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp;<span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;!-- success --&gt;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorgood<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$mailtext</span><span style="color: #339933;">.</span><span style="color: #000088;">$moneytext</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br&gt;&lt;/span&gt;&lt;br&gt;&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$status</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">return</span> &nbsp;<span style="color: #0000ff;">&quot;&lt;span class=<span style="color: #000099; font-weight: bold;">\&quot;</span>colorbad<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;Mail Problem: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$remote_login</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/span&gt;&lt;br&gt;Used login: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$ra_user</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>5 &#8211; Change the username, password, host, and port (in the code above):</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; <span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'GMNAME'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'GMPASS'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$host</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$soapport</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">7878</span><span style="color: #339933;">;</span></div></div>
<p>To a relevant account with admin access and you&#8217;re all set.<br />
This modification will allow you to use SOAP instead of Remote Access and should work exactly the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/426-webdesign-webwow-in-game-mail-using-soap-ra-replacement/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WebWoW Captcha on Registration Mod</title>
		<link>http://abeontech.com/422-webdesign-webwow-captcha-on-registration-mod</link>
		<comments>http://abeontech.com/422-webdesign-webwow-captcha-on-registration-mod#comments</comments>
		<pubDate>Wed, 15 Dec 2010 19:35:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Mod]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://abeontech.com/?p=422</guid>
		<description><![CDATA[The WebWoW CMS has just released a v2 beta which is great so far.
Of course there are a few small bugs, but nothing huge.

I will probably make a few mods and hacks for the CMS as it's a great project with a nice style and ethos.
This modification will place a captcha on the registration page to help prevent spam, bots, and fake registrations.]]></description>
			<content:encoded><![CDATA[<p>The WebWoW CMS has just released a v2 beta which seems great so far.<br />
Of course there are a few small bugs, but nothing that breaks functionality&#8230; Mostly undefined indexes and the like.</p>
<p>I will probably make a few mods and hacks for the CMS as it&#8217;s a great project with a nice style and ethos.<br />
This simple modification will place a captcha on the registration page to help prevent spam, bots, and fake registrations.<span id="more-422"></span></p>
<p>After about 10 minutes of setting the WebWoW CMS I started to get bot registrations indicated by the spammy usernames and lack of activity.<br />
Hopefully this will be of use to someone <img src='http://abeontech.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Only two files edits are required so it shouldn&#8217;t take more than 5 minutes to implement.</p>
<h3>WebWoW Registration Captcha Mod</h3>
<p><img src="http://i56.tinypic.com/14ay0k8.jpg" alt="WebWoW Captcha Mod" /></p>
<p>Please remember to backup any files before editing!</p>
<p><strong>1 &#8211; Open:</strong> engine/func/session.php</p>
<p>&nbsp; <strong>1a. Find:</strong> (about line 324)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> register<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subuser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subpass</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subemail</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></div>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong>Change To:</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> register<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subuser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subpass</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subemail</span><span style="color: #339933;">,</span> <span style="color: #000088;">$subcaptcha</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></div>
<div style="height:20px">&nbsp;</div>
<p>&nbsp;<strong>1b. Find:</strong> (about line 397)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$subemail</span> <span style="color: #339933;">=</span> <span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$subemail</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></div>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong>Add BELOW:</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/* captcha error checking - nowares */</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$field</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;captcha&quot;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #666666; font-style: italic;">//Use field name for the generated captcha image</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$subcaptcha</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$subcaptcha</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'captcha'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setError</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$field</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;* captcha incorrect&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000088;">$subcaptcha</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$subcaptcha</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></div>
<div style="height:30px">&nbsp;</div>
<p><strong>2 &#8211; Open:</strong> engine/modules/register.php</p>
<p>&nbsp;<strong>2a. Find:</strong> (about line 26)</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$retval</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass_word'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong>Replace with:</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$retval</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">register</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user_name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass_word'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'captcha'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<div style="height:20px">&nbsp;</div>
<p>&nbsp;<strong>2b. Find: (about line 109)</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;td&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">error</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;email&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/td&gt;&lt;/tr&gt;</div></div>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <strong>Add BELOW:</strong></p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;</span>Captcha:<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;captcha/php_captcha.php&quot;</span>&gt;</span> <span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;captcha&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width:65px;position:relative;bottom:5px;&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo $form-&gt;</span></span>value(&quot;captcha&quot;); ?&gt;&quot; /&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span>&gt;&lt;?php echo $form-&gt;</span>error(&quot;captcha&quot;); ?&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span></div></div>
<div style="height:30px">&nbsp;</div>
<p>&nbsp;<strong>3. Upload:</strong> /captcha/ folder to your site root</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a  title='WebWoW Captcha' href='http://abeontech.com/?wpdmact=process&did=MS5ob3RsaW5r' style="background:url('http://abeontech.com/wp-content/plugins/download-manager/icon/download.png') no-repeat;padding:3px 12px 12px 28px;font:bold 10pt verdana;">Download Captcha Files</a></p>
<p>Please let me know if you find any errors or have any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/422-webdesign-webwow-captcha-on-registration-mod/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Windows 7 from USB device</title>
		<link>http://abeontech.com/351-mixed-install-windows-7-from-usb-device</link>
		<comments>http://abeontech.com/351-mixed-install-windows-7-from-usb-device#comments</comments>
		<pubDate>Thu, 24 Jun 2010 00:04:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=351</guid>
		<description><![CDATA[The Windows 7 downloaded image that many online software retailers supply is simple too large to install from a single CD, being about 2.2Gb
This short guide has step-by-step instructions on how to install Windows 7 from any USB device with more than 2.3Gb free space.

You will obviously need an original Windows 7 DVD or image file.
If using an image file it will need to be mounted on a virtual drive so you can access the files inside.
There are many free tools available for this, but I use <a href="http://www.daemon-tools.cc">Daemon Tools</a>.
You will also need a Vista or Windows 7 PC as Windows XP doesn't have the "diskpart" or "bootsect" tools.]]></description>
			<content:encoded><![CDATA[<p>The Windows 7 downloaded image that many online software retailers supply is simple too large to install from a single CD, being about 2.2Gb<br />
This short guide has step-by-step instructions on how to install Windows 7 from any USB device with more than 2.3Gb free space.</p>
<p>You will obviously need an original Windows 7 DVD or image file.<br />
If using an image file it will need to be mounted on a virtual drive so you can access the files inside.<br />
There are many free tools available for this, but I use <a href="http://www.daemon-tools.cc">Daemon Tools</a>.<br />
You will also need a Vista or Windows 7 PC as Windows XP doesn&#8217;t have the &#8220;diskpart&#8221; or &#8220;bootsect&#8221; tools.<br />
<span id="more-351"></span></p>
<p>I just downloaded Windows 7 and wanted to install it on a notebook.<br />
There were two main problems with this:</p>
<ol>
<li>The downloaded Windows 7 disc image was 2.23Gb</li>
<li>The notebook I intended to install windows 7 on doesn&#8217;t have a disc dirve!</li>
</ol>
<p>I have a few spare USB drives laying around, so my 4Gb pen drive was the ideal candidate to install Windows 7 from.<br />
Here&#8217;s what I did&#8230;</p>
<p><strong style="font-size:2em">1.</strong> Insert the USB Flash Drive</p>
<p><strong style="font-size:2em">2.</strong> Open the command prompt as<br />
(Start-> All Programs-> Accesories, right click on the &#8220;Command Prompt&#8221; and select &#8220;Run as &#8230;&#8221;</p>
<p><strong style="font-size:2em">3.</strong> To find out what number corresponds to the USB Flash Drive you should type the following in the &#8220;Command Prompt&#8221; window:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">diskpart<br />
list disk</div></div>
<p>The number corresponding to your USB will be appear in the list (see the USB and the capacity of)<br />
This number will need in the next step. The USB Flash Drive is usually disk 1.</p>
<p><strong style="font-size:2em">5.</strong> Format the USB drive by typing the following commands in the same window. Attention, replace the number &#8220;1&#8243; on disk 1 to the number of your drive as emerged from the above list.</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">select disk 1<br />
clean<br />
create partition primary<br />
select partition 1<br />
active<br />
format fs = NTFS<br />
assign<br />
exit</div></div>
<p>When you enter this, you will have a USB Flash Drive formatted to be bootable.</p>
<p><strong style="font-size:2em">6.</strong> So, let&#8217;s make the USB bootable<br />
The application called &#8220;bootsect&#8221; is on every Vista and Windows 7 disc and will help here. Using the same command prompt window from Step 2:</p>
<p>1. Put the Windows 7 disc in the drive of your computer or mount the image.<br />
2. Change the drive in the command prompt to that of your drive. Suppose that the DVD drive is E:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">e:<br />
cd e:\boot</div></div>
<p>3. We will use the bootsect to define the USB as a bootable NTFS drive.<br />
Suppose that the USB Flash Drive is G: \, your position in G: \ put the letter of your USB.<br />
Enter:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">bootsect / nt60 g:</div></div>
<p>4. You can close the command prompt,now the USB is bootable.</p>
<p><strong style="font-size:2em">7.</strong> Copy all Windows 7 files to USB flash device.<br />
Copy all files from DVD and paste it in the USB flash drive. Just copy all the files, you&#8217;re ready.</p>
<p><strong>Now just set your BIOS to boot from your new USB version of Windows 7!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/351-mixed-install-windows-7-from-usb-device/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intelligent Full Screen Button</title>
		<link>http://abeontech.com/333-webdesign-intelligent-full-screen-button</link>
		<comments>http://abeontech.com/333-webdesign-intelligent-full-screen-button#comments</comments>
		<pubDate>Tue, 03 Mar 2009 12:52:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[AV Arcade]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=332</guid>
		<description><![CDATA[The area usable for containing the games in AV Arcade's default template is about 650px, which is fine for most games. Some other templates, on the other hand, use an area a lot smaller to contain the main Flash Game.

Some games I have on my Online Arcade use a width of up to 800px, which can over lap the sidebars and hide their content.

It's a simple problem to fix and can even help boost your arcade sites earnings a little...]]></description>
			<content:encoded><![CDATA[<p>I think it&#8217;s a widely known fact that Flash Games are getting bigger. The resolutions are increasing as well as the file sizes. This may pose a problem if you use AV Arcade to manage your arcade sites&#8217; content.</p>
<p>The area usable for containing the games in AV Arcade&#8217;s default template is about 650px, which is fine for most games. Some other templates, on the other hand, use an area a lot smaller to contain the main Flash Game.</p>
<p>Some games I have on my <a href="http://www.nowares.net">Online Arcade Games</a> site use a width of up to 800px, which can over lap the sidebar and hide their content.</p>
<p>It&#8217;s a simple problem to fix and can even help boost your arcade sites earnings a little&#8230;</p>
<p><span id="more-333"></span></p>
<h2>The Fix</h2>
<p>Upload a button or picture to:<br />
*Yoursite.com*/templates/*YourTemplate*/images/play-fullscreen.png</p>
<p><strong>Open:</strong><br />
*Yoursite.com*/content/game.php</p>
<p><strong>Search For:</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;object width=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; height=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;param name=&quot;movie&quot; value=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;embed src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; width=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; height=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/embed&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/object&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">4</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'filetype'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span></div></div>
<p><strong>Add Above:</strong></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'width'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">640</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;em style='font-size:1.4em;'&gt;&lt;strong&gt;<span style="color: #006699; font-weight: bold;">{$row['name']}</span>&lt;/strong&gt; uses a large resolution.&lt;br /&gt;<br />
&nbsp; Click the button below to play in it's correct screen size!&lt;/em&gt;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a rel=&quot;nofollow&quot; href=&quot;#&quot;'</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot; onclick=&quot;javascript:window.open(\''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'\',\'popup\',\'width='</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'width'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">',height='</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'height'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'\');&quot;&gt;&lt;img src=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$template_url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/images/play-fullscreen.png&quot; alt=&quot;Full Size&quot; title=&quot;Play Full Size&quot; /&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>The above code will check if the game width is higher than 640px.<br />
If 640px + then it will create a popup window with the game inside. It pulls the game URL and size from the SQL database.<br />
When someone clicks the button the page will reload. So you should generate twice the adsense earnings from theses games&#8230; Which is a bonus.<br />
You could link to the built in full screen mod, but I could never get it to act how I wanted.</p>
<p>I have been asked a few times about this, so thought I&#8217;d post a fix.<br />
Hope someone finds it usefull.</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/333-webdesign-intelligent-full-screen-button/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Post Revisions</title>
		<link>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions</link>
		<comments>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions#comments</comments>
		<pubDate>Thu, 27 Nov 2008 18:26:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=307</guid>
		<description><![CDATA[If you have run a Wordpress blog for any length of time, you should know how large the SQL database can get.

This is largely due to the "Post Revisions", which get auto-saved.
If you edit a post a few times, a huge list of revisions gets saved to the database.

This post has easy methods to disable and delete the post revisions, which are automatically cached by Wordpress.]]></description>
			<content:encoded><![CDATA[<p>If you have run a <a href="http://www.wordpress.org">WordPress</a> blog for any length of time, you should know how large the SQL database can get.</p>
<p>This is largely due to the &#8220;Post Revisions&#8221;, which get auto-saved.<br />
If you edit a post a few times, a huge list of revisions gets saved to the database. You can see these at the bottom of the post editing page.</p>
<p>This post has easy methods to disable and delete the post revisions, which are automatically cached by WordPress.</p>
<p><span id="more-307"></span></p>
<p>If you don&#8217;t use or need the post revisions which Worpdress has already saved for you, then you can delete them all by using the SQL query below:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> wp_posts <span style="color: #993333; font-weight: bold;">WHERE</span> post_type<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'revision'</span>;</div></div>
<p>You can also disable it from executing to start with by opening <strong>wp-config.php</strong> in your blog&#8217;s home directory.<br />
Search for:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_COLLATE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>And add this under it:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTOSAVE_INTERVAL'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>There is also a great WordPress Plug-in called <a href="http://wordpress.org/extend/plugins/wp-cms-post-control/">WP-CMS Post Control</a>, which gives you more control over how posts are edited.<br />
This great WordPress plugin will allow you to:</p>
<ul>
<li>Force standard browser upload instead of Flash upload</li>
<li>Turn off the revisions feature</li>
<li>Turn off the auto save feature</li>
<li>Create a collapsable message panel that appears below the write panel</li>
<li>Control which options are shown on the post page</li>
</ul>
<p>I prefer to use the manual method, as too many plug-ins for WordPress can cause problems.</p>
<p>I don&#8217;t know anyone that has found the post revisions that WordPress saves, usefull.<br />
Maybe in a future edition (v2.7 hopefully), they will include an option to disable from the admin control panel. But untill then thousands of blog owners will have to do it manually or use a plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dhtml Calculator Source Code</title>
		<link>http://abeontech.com/278-webdesign-dhtml-calculator-source-code</link>
		<comments>http://abeontech.com/278-webdesign-dhtml-calculator-source-code#comments</comments>
		<pubDate>Thu, 23 Oct 2008 23:29:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=278</guid>
		<description><![CDATA[A DHTML calculator with error checking. Definitely more stylish than the traditional JavaScript calculator, if nothing else!

Easy to customize and add to any website.]]></description>
			<content:encoded><![CDATA[<p><strong>A DHTML calculator with error checking.<br />
Definitely more stylish than the traditional JavaScript calculator, if nothing else!</strong></p>
<p>Very easy to customize and would fit well into a website providing a variable rate service and suchlike.</p>
<p>It would be better to use css for all the styling and layout information, but it&#8217;s easier to copy and paste the source code below as one file.</p>
<p><img src="http://i38.tinypic.com/mtw5lg.gif" alt="Dhtml Calculator Source Code" /></p>
<p><span id="more-278"></span></p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;height:250px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;200&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">bgcolor</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#000000&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;border-color:black&quot;</span> <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;previouskey=event.srcElement.innerText&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">bgcolor</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#FFFFFF&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;result&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;font:bold 20px Verdana;color:black;text-align='right'&quot;</span>&gt;</span>0<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">valign</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;middle&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;font:bold 20px Verdana;color:white&quot;</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;80%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cursor:hand;font:bold 20px Verdana;color:white&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">onMouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;if (event.srcElement.tagName=='TD')event.srcElement.style.color='yellow'&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">onMouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;event.srcElement.style.color='white'&quot;</span> onselectStart<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return false&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;calculate()&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;82&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;17&quot;</span>&gt;</span>7<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;17&quot;</span>&gt;</span>8<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;17&quot;</span>&gt;</span>9<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;17&quot;</span>&gt;</span>/<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>6<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>*<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>-<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>0<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pn();previouskey=1;event.cancelBubble=true&quot;</span>&gt;</span>+/-<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;25%&quot;</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;19&quot;</span>&gt;</span>+<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;20%&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cursor:hand;font:bold 20px Verdana;color:white;text-align:center&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;result.innerText=0;results=''&quot;</span>&gt;</span>C<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">align</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;left&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">border</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">cellspacing</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">cellpadding</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;81&quot;</span>&gt;</span><br />
&nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">td</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cursor:hand;font:bold 32px Verdana;color:white;text-align:center&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">onMouseover</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;event.srcElement.style.color='yellow'&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">onMouseout</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;event.srcElement.style.color='white'&quot;</span> <span style="color: #000066;">onClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;calculateresult()&quot;</span>&gt;</span>=<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">td</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">tr</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span><br />
<br />
<br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">language</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;JavaScript1.2&quot;</span>&gt;</span><br />
/*<br />
DHTML Calculator Script-<br />
© Dynamic Drive (www.dynamicdrive.com)<br />
For full source code, installation instructions,<br />
100's more DHTML scripts, and Terms Of<br />
Use, visit dynamicdrive.com<br />
*/<br />
var results=''<br />
var previouskey=''<br />
var re=/(\/|\*|\+|-)/<br />
var re2=/(\/|\*|\+|-){2}$/<br />
var re3=/.+(\/|\*|\+|-).+/<br />
var re4=/\d|\./<br />
var re5=/^[^\/\*\+].+\d$/<br />
var re6=/\./<br />
<br />
function calculate(){<br />
if (event.srcElement.tagName==&quot;TD&quot;){<br />
if (event.srcElement.innerText.match(re4)<span style="color: #ddbb00;">&amp;&amp;previouskey==&quot;=&quot;)</span><br />
<span style="color: #ddbb00;">results=''</span><br />
<span style="color: #ddbb00;">if (result.innerText.match(re3)&amp;&amp;event.srcElement.innerText.match(re)){</span><br />
<span style="color: #ddbb00;">if (!results.match(re5)){</span><br />
<span style="color: #ddbb00;">result.innerText=&quot;Error!&quot;</span><br />
<span style="color: #ddbb00;">return</span><br />
<span style="color: #ddbb00;">}</span><br />
<span style="color: #ddbb00;">results=eval(results)</span><br />
<span style="color: #ddbb00;">if (results.toString().length&gt;=12&amp;&amp;results.toString().match(re6))</span><br />
<span style="color: #ddbb00;">results=results.toString().substring(0,12)</span><br />
<span style="color: #ddbb00;">result.innerText=results</span><br />
<span style="color: #ddbb00;">}</span><br />
<br />
<span style="color: #ddbb00;">results+=event.srcElement.innerText</span><br />
<span style="color: #ddbb00;">if (results.match(re2))</span><br />
<span style="color: #ddbb00;">results=results.substring(0,results.length-2)+results.charAt(results.length-1)</span><br />
<br />
<span style="color: #ddbb00;">result.innerText=results</span><br />
<span style="color: #ddbb00;">}</span><br />
<span style="color: #ddbb00;">}</span><br />
<br />
<span style="color: #ddbb00;">function calculateresult(){</span><br />
<span style="color: #ddbb00;">if (!results.match(re5)){</span><br />
<span style="color: #ddbb00;">result.innerText=&quot;Error!&quot;</span><br />
<span style="color: #ddbb00;">return</span><br />
<span style="color: #ddbb00;">}</span><br />
<span style="color: #ddbb00;">results=eval(results)</span><br />
<span style="color: #ddbb00;">if (results.toString().length&gt;=12&amp;&amp;results.toString().match(re6))</span><br />
<span style="color: #ddbb00;">results=results.toString().substring(0,12)</span><br />
<span style="color: #ddbb00;">result.innerText=results</span><br />
<span style="color: #ddbb00;">}</span><br />
<br />
<span style="color: #ddbb00;">function pn(){</span><br />
<span style="color: #ddbb00;">if (result.innerText.charAt(0)!='-')</span><br />
<span style="color: #ddbb00;">result.innerText=results='-'+result.innerText</span><br />
<span style="color: #ddbb00;">else if (result.innerText.charAt(0)=='-')</span><br />
<span style="color: #ddbb00;">result.innerText=results=result.innerText*(-1)</span><br />
<span style="color: #ddbb00;">}</span><br />
<span style="color: #ddbb00;">&lt;/script&gt;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/278-webdesign-dhtml-calculator-source-code/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>100 Great Ajax Scripts</title>
		<link>http://abeontech.com/122-webdesign-100-great-ajax-scripts</link>
		<comments>http://abeontech.com/122-webdesign-100-great-ajax-scripts#comments</comments>
		<pubDate>Wed, 24 Sep 2008 20:01:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=122</guid>
		<description><![CDATA[The web is changing and so is the way we posting data. If you take a look at Google, Facebook, and almost every new start up, simply posting form data is a thing of the past. You can now validate without posting, upload multiple files, change the way form elements work and much, much more. We gathered 100 of the web’s top AJAX/form related scripts. Use them to enhance your forms and impress your clients (Clients like fancy, pretty things).]]></description>
			<content:encoded><![CDATA[<p>I was googling for an ajax &#8220;contact us&#8221; form to finish off a website of mine.<br />
I found a great page with a collection of 100 ajax scripts, ranging from simple forms so complex file manager systems!</p>
<p>The page contains 100 examples suitable for any level of programmer.<br />
Each example has a live demo and source code available for download.</p>
<p><span id="more-122"></span></p>
<blockquote><p>The web is changing and so is the way we posting data. If you take a look at Google, Facebook, and almost every new start up, simply posting form data is a thing of the past. You can now validate without posting, upload multiple files, change the way form elements work and much, much more. We gathered 100 of the web’s top AJAX/form related scripts. Use them to enhance your forms and impress your clients (Clients like fancy, pretty things).</p></blockquote>
<p>[ View The Full Post at <a href="http://www.noboxmedia.com/top-100-ajax-form-related-scripts-for-2007/">NoBoxMedia</a> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/122-webdesign-100-great-ajax-scripts/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP Detect page to show code</title>
		<link>http://abeontech.com/8-webdesign-php-detect-page-to-show-code</link>
		<comments>http://abeontech.com/8-webdesign-php-detect-page-to-show-code#comments</comments>
		<pubDate>Tue, 26 Aug 2008 19:45:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[AV Arcade]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=8</guid>
		<description><![CDATA[I needed an easier way to include the advert on one page only.

After asking the great font of all knowing (google) then playing with the code a little, I came up with this...]]></description>
			<content:encoded><![CDATA[<p>I was recently offered an deal by an agency for my <a title="Free Online Arcade" href="http://www.nowares.net/">Free Online Arcade</a>.</p>
<p>I use a PHP and MySQL based content management script called <a title="AV Arcade" href="http://www.avscripts.net/avarcade/">AV Arcade</a> for most of the web site because it saves me hours of programming and design.</p>
<p>The were interested in displaying a text advert show near the top of <strong>only</strong> my home page. I played with the PHP template system for a while, but could not find a clean and simple way to insert the code into the page (As the whole site is one PHP page, modulated).</p>
<p>Instead of adding functions and inclusions in several files of the AV Arcade template system, I needed an easier way to include the advert on one page only.</p>
<p>After asking the great font of all knowing (google) then playing with the code a little, I came up with this&#8230;</p>
<p><span id="more-8"></span></p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp;<span style="color: #000088;">$homepageadz</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/&quot;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000088;">$currentpage</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REQUEST_URI'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$homepageadz</span><span style="color: #339933;">==</span><span style="color: #000088;">$currentpage</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ads n stuff'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>The example php code below can be used to detect the current page and show output</p>
<p>It&#8217;s a good idea to learn about <a href="http://uk2.php.net/reserved.variables.server">$_SERVER</a> and <a href="http://blog.taragana.com/index.php/archive/understanding-_serverphp_self-php_self-_serverrequest_uri-and-_serverscript_name-in-php-and-when-to-use-what/">$_SERVER['REQUEST_URI']</a>.</p>
<p>I used <span style="color: #0000ff;">echo</span>(<span style="color: #ff0000;">&#8216;ads n stuff&#8217;</span>) to stop T_String errors when inserting adsense code or, more specifically, when using the <strong>&#8220;</strong> character.<br />
If you have to use <strong>&#8220;</strong> in the echo output, remember to escape quote. I.e. <strong>\&#8221;</strong></p>
<p>I know this is fairly basic and not going to impress anyone. But this quick fix can help until getting use to an alien templating system!<br />
You could also extend it to detect other pages or make a simple admin page for it etc etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/8-webdesign-php-detect-page-to-show-code/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

