<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Aaron DM's Community Board - All Forums]]></title>
		<link>http://forum.aarondm.com/</link>
		<description><![CDATA[Aaron DM's Community Board - http://forum.aarondm.com]]></description>
		<pubDate>Mon, 05 Jan 2009 20:28:07 -0800</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[FAQ: What features are included?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=27</link>
			<pubDate>Mon, 29 Sep 2008 16:55:10 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=27</guid>
			<description><![CDATA[<span style="font-style: italic;">TBA</span>]]></description>
			<content:encoded><![CDATA[<span style="font-style: italic;">TBA</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[License pricing]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=26</link>
			<pubDate>Mon, 29 Sep 2008 16:54:42 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=26</guid>
			<description><![CDATA[<span style="font-style: italic;">TBA</span>]]></description>
			<content:encoded><![CDATA[<span style="font-style: italic;">TBA</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: What are the requirements?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=25</link>
			<pubDate>Mon, 29 Sep 2008 16:53:05 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=25</guid>
			<description><![CDATA[<span style="font-weight: bold;">Requirements for running RF Online Game Control Panel:</span><ul>
<li>Windows Operating system, though this could work on Linux just as well, it has not been fully tested! (Tested on CentOS, works there)</li>
<li>Microsoft SQL Server 2005 (with all service pack upgrades) or greater</li>
<li>Apache 2.x or IIS web server installed (preferably Apache!)</li>
<li>PHP 5.2.X or greater</li>
<li>php_mssql extension compiled/enabled with PHP</li>
<li>ionCube Loader installed with PHP (<a href="http://www.ioncube.com/loaders.php)" target="_blank">http://www.ioncube.com/loaders.php)</a><br />
</li></ul>
<br />
<span style="font-weight: bold;">PHP with MSSQL Notice!</span><br />
Your Game CP does not necessarily have to be installed on the same server as your Microsoft SQL Server. The Game CP is capable of connecting to remote servers, however you have to ensure your configuration allows you to do so.<br />
<br />
Please use the following script to do a test connection to a database on your server.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;myServer&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"(local)"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myUser&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"dbuser/sa"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myPass&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"dbpassword/sapassword"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myDB&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"DBName/RF_WORLD_NOVUS"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;connection&nbsp;to&nbsp;the&nbsp;database<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;dbhandle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;myServer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;myUser</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;myPass</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;die(</span><span style="color: #DD0000">"Couldn't&nbsp;connect&nbsp;to&nbsp;SQL&nbsp;Server&nbsp;on&nbsp;&#36;myServer"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;select&nbsp;a&nbsp;database&nbsp;to&nbsp;work&nbsp;with<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;selected&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;myDB</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;dbhandle</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;die(</span><span style="color: #DD0000">"Couldn't&nbsp;open&nbsp;database&nbsp;&#36;myDB"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"You&nbsp;are&nbsp;connected&nbsp;to&nbsp;the&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;myDB&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&nbsp;database&nbsp;on&nbsp;the&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;myServer&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"."</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;close&nbsp;the&nbsp;connection<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mssql_close</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;dbhandle</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
<span style="font-weight: bold;">Note:</span> Using name pipes like (local) can sometimes tend to have a slower response in connecting to the database. If you enable TCP/IP connections for only 127.0.0.1 and use that as you're server host, it will most likely result in a better load time and connection performance for the Game CP.]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;">Requirements for running RF Online Game Control Panel:</span><ul>
<li>Windows Operating system, though this could work on Linux just as well, it has not been fully tested! (Tested on CentOS, works there)</li>
<li>Microsoft SQL Server 2005 (with all service pack upgrades) or greater</li>
<li>Apache 2.x or IIS web server installed (preferably Apache!)</li>
<li>PHP 5.2.X or greater</li>
<li>php_mssql extension compiled/enabled with PHP</li>
<li>ionCube Loader installed with PHP (<a href="http://www.ioncube.com/loaders.php)" target="_blank">http://www.ioncube.com/loaders.php)</a><br />
</li></ul>
<br />
<span style="font-weight: bold;">PHP with MSSQL Notice!</span><br />
Your Game CP does not necessarily have to be installed on the same server as your Microsoft SQL Server. The Game CP is capable of connecting to remote servers, however you have to ensure your configuration allows you to do so.<br />
<br />
Please use the following script to do a test connection to a database on your server.<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#36;myServer&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"(local)"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myUser&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"dbuser/sa"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myPass&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"dbpassword/sapassword"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;myDB&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"DBName/RF_WORLD_NOVUS"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;connection&nbsp;to&nbsp;the&nbsp;database<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;dbhandle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;myServer</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;myUser</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;myPass</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;die(</span><span style="color: #DD0000">"Couldn't&nbsp;connect&nbsp;to&nbsp;SQL&nbsp;Server&nbsp;on&nbsp;&#36;myServer"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;select&nbsp;a&nbsp;database&nbsp;to&nbsp;work&nbsp;with<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;selected&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;myDB</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;dbhandle</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or&nbsp;die(</span><span style="color: #DD0000">"Couldn't&nbsp;open&nbsp;database&nbsp;&#36;myDB"</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"You&nbsp;are&nbsp;connected&nbsp;to&nbsp;the&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;myDB&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&nbsp;database&nbsp;on&nbsp;the&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">&#36;myServer&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"."</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;close&nbsp;the&nbsp;connection<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mssql_close</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;dbhandle</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
<span style="font-weight: bold;">Note:</span> Using name pipes like (local) can sometimes tend to have a slower response in connecting to the database. If you enable TCP/IP connections for only 127.0.0.1 and use that as you're server host, it will most likely result in a better load time and connection performance for the Game CP.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: Is version 3.x a free upgrade from v2.x?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=24</link>
			<pubDate>Mon, 29 Sep 2008 16:51:33 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=24</guid>
			<description><![CDATA[As per the agreement when buying a license for version 3.0, you only bought the license for the version 2.x product. Version 3.x cannot be upgraded for free.<br />
<br />
Simple answer: No, you must purchase a brand new license.<br />
<br />
<span style="font-style: italic;">A possible discount will be available for people who have version 2.x licenses!</span>]]></description>
			<content:encoded><![CDATA[As per the agreement when buying a license for version 3.0, you only bought the license for the version 2.x product. Version 3.x cannot be upgraded for free.<br />
<br />
Simple answer: No, you must purchase a brand new license.<br />
<br />
<span style="font-style: italic;">A possible discount will be available for people who have version 2.x licenses!</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[RF Game CP Development Log]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=23</link>
			<pubDate>Mon, 29 Sep 2008 16:45:13 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=23</guid>
			<description><![CDATA[This will be the development log for this script, only the first post will be updated.<br />
<br />
<span style="font-weight: bold;">[29/09/08&#93;</span><br />
<ol type="1">
<li>Development begins: <span style="font-weight: bold;">Version 3.0.0</span></li>
<li>Main changes in this new release<ul>
<li>New database class system</li>
<li>New caching system to reduce load on the server</li>
<li>Support for ODBC, MSSQL and MySQL Database servers</li>
<li>New module system for easy installation of new features</li>
<li>Installation script; Something long needed</li>
<li>More advanced template system, with the ability to customize each page</li>
<li>Separate Administrator, Support and User panels/pages</li>
<li>Get rid of the ?do= method of loading pages!</li>
<li>Building the project so that its base can be used for other game control panels (WoW and etc)<br />
</li></ul>
</li></ol>
<br />
<span style="font-weight: bold;">[30/09/08&#93;</span><br />
<ol type="1">
<li>New database class for MSSQL and MySQL are being created</li>
<li>New debug system being added for administrators<br />
</li></ol>
<br />
<span style="font-weight: bold;">[02/10/08&#93;</span><br />
<ol type="1">
<li>Caching system has been created, based of phpBB 3.x system</li>
<li>SQL Caching is now possible</li>
<li>New mini-sessions class being created to hold all userdata</li>
<li>New &#36;db_config variable with cache exclusion for values deemed a "security" risk if cached<br />
</li></ol>
<br />
<span style="font-weight: bold;">[03/10/08&#93;</span><br />
<ol type="1">
<li>New language files created. Now all text will be using language files</li>
<li>Adding different database encoding support so that other languages may be supported (Russian, Ukrainian and etc)</li>
<li>Improved SQL Error reporting (borrowed from phpBB 3.0 mssql library)</li>
<li>Complete error reporting with debug mode has been added</li>
<li>Debug mode option now moved to the config file (removed from database)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[04/10/08&#93;</span><br />
<ol type="1">
<li>New check for banned users function</li>
<li>New template system. Using the template class called "Booster Class" created by Chris Lam &lt;admin@knetgb.com&gt; <a href="http://code.google.com/p/booster-template/" target="_blank">http://code.google.com/p/booster-template/</a></li>
<li>Transferred the login system over from version 2.x with new added security checks</li>
<li>Fixed cookie destroy_cookie() function, was not destroying the cookie!</li>
<li>Created new logout.php</li>
<li>Created global template vars by using array_merge() at the load() template array value<br />
</li></ol>
<br />
<span style="font-weight: bold;">[05/10/08&#93;</span><br />
<ol type="1">
<li>New look for the Game CP based on this MyBB forum skin</li>
<li>New ajax.php for all ajax features of the game cp!</li>
<li>Transferred gamecp_register.php to register.php for version 3.0</li>
<li>Added new ajax method of checking if username exists</li>
<li>New page title format: Page Name - Game CP - Server Name<br />
</li></ol>
<br />
<span style="font-weight: bold;">[06/10/08&#93;</span><br />
<ol type="1">
<li>Made user email globally available</li>
<li>Added: Total Play Time, Game Points, Vote Game Points, Account Email and Account Type to index page</li>
<li>Added compatibility support for player registration (RF 215)</li>
<li>Game Points data now added on registration</li>
<li>Added the inserting of user data in the Billing Database for in-game cash shop (RF 216 and greater only)</li>
<li>New mssql pagination class, a modified version of mssql_pagina_class ver. 1.00 of Fahad Waheed Khan. Added full-result cache support</li>
<li>New pagination navigation display (like googles now)</li>
<li>Ported the players list from v2.0 with new cached results for faster page load time<br />
</li></ol>
<br />
<span style="font-weight: bold;">[07/10/08&#93;</span><br />
<ol type="1">
<li>Ported the server status from v2.0</li>
<li>Removed the usage of LibChart and now using Google Charts</li>
<li>Cached all SQL results for 24 hours</li>
<li>Added the ability to get live data (refreshed every 2-3 minutes) if applicable (not everyone can use this) (Work in progress)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[08/10/08&#93;</span><br />
<ol type="1">
<li>Ported user ban list from version 2.0</li>
<li>Ported chip war stats from RFe's Game CP<br />
</li></ol>
<br />
<span style="font-weight: bold;">[11/10/08&#93;</span><br />
<ol type="1">
<li>Added character information on the index page</li>
<li>Porting "Account Info" now re-named to "Characters" where detailed view on character setup will be given, including options to delete and change gender<br />
</li></ol>
<br />
<span style="font-weight: bold;">[17/10/08&#93;</span><br />
<ol type="1">
<li>Formatted the SQL Error reporting<br />
</li></ol>
<br />
<span style="font-weight: bold;">[20/10/08&#93;</span><br />
<ol type="1">
<li>Improved speed when reading cache files, still need to improve speed of cache creation for large files and data loading</li>
<li>Game CP cannot use persistent connections due to the fact that it uses multiple MSSQL databases</li>
<li>Improved speeds in playerlist.php<br />
</li></ol>
<br />
<span style="font-weight: bold;">[28/10/08&#93;</span><br />
<ol type="1">
<li>New upgrade codes system, now every single possible combination can be made and found. (i.e. favour, mercy, mercy, favour)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[01/11/08&#93;</span><br />
<ol type="1">
<li>Brand new and much much faster formula for getting item codes</li>
<li>Old method of creating db_codes is much faster, so sticking to that</li>
<li>New method of creating upgrade codes has been created, much faster than before<br />
</li></ol>
<br />
<span style="font-weight: bold;">[03/11/08&#93;</span><br />
<ol type="1">
<li>Work on new Super Administrator panel begins</li>
<li>New features to come to v3:<ul>
<li>New character stats system, displays all sorts of stats of a character</li>
<li>New ESL (<a href="http://www.esl.eu" target="_blank">http://www.esl.eu</a>) like module, this can be turned on and off optionally. Players will be able to challenge one and other and have official PVP matches against each other; A very nice system for PVP servers to have <img src="http://forum.aarondm.com/images/smilies/biggrin.gif" style="vertical-align: middle;" border="0" alt="Big Grin" title="Big Grin" /></li>
<li>More control over pages, allowing admins to disable and enable pages at any given time</li>
<li>More control over cache, ability to purge the cache or single cache pages</li>
<li>Advanced Item search, adding the ability to search for specific upgraded weapons. As well, you will be able to search if an item repeats more than x number of times in a players inventory</li>
<li>[NOT CONFIRMED&#93; Administrators will be able to mass-delete items from the server</li>
<li>New discount feature in the item shop</li>
<li>A cart system will be added to the item shop</li>
<li>[ADD ON&#93; Ability to create an image banner for the latest items added<br />
</li></ul>
</li></ol>
<br />
<span style="font-weight: bold;">[05/11/08&#93;</span><br />
<ol type="1">
<li>New configuration page made for the super admins. More user friendly!</li>
<li>Cache now gets deleted on Game CP Config update</li>
<li>Broken down the "play time" in the players list, now displays days, hours and minutes<br />
</li></ol>
<br />
<span style="font-weight: bold;">[07/11/08&#93;</span><br />
<ol type="1">
<li>New module system, every page must be registered in the database in order to work now</li>
<li>New permissions system, a slightly more flexible permission system, adding the ability to disable view, search, edit and "other" features of a specific module</li>
<li>Pages/Modules can now be disabled by the administrator, thus rendering the page in-accessible, same as turning of view permissions I guess.<br />
</li></ol>
<br />
<span style="font-weight: bold;">[10/11/08&#93;</span><br />
<ol type="1">
<li>Admin view cache page completed</li>
<li>Viewing large cache files will result in a page timeout, really why view it?<br />
</li></ol>
]]></description>
			<content:encoded><![CDATA[This will be the development log for this script, only the first post will be updated.<br />
<br />
<span style="font-weight: bold;">[29/09/08]</span><br />
<ol type="1">
<li>Development begins: <span style="font-weight: bold;">Version 3.0.0</span></li>
<li>Main changes in this new release<ul>
<li>New database class system</li>
<li>New caching system to reduce load on the server</li>
<li>Support for ODBC, MSSQL and MySQL Database servers</li>
<li>New module system for easy installation of new features</li>
<li>Installation script; Something long needed</li>
<li>More advanced template system, with the ability to customize each page</li>
<li>Separate Administrator, Support and User panels/pages</li>
<li>Get rid of the ?do= method of loading pages!</li>
<li>Building the project so that its base can be used for other game control panels (WoW and etc)<br />
</li></ul>
</li></ol>
<br />
<span style="font-weight: bold;">[30/09/08]</span><br />
<ol type="1">
<li>New database class for MSSQL and MySQL are being created</li>
<li>New debug system being added for administrators<br />
</li></ol>
<br />
<span style="font-weight: bold;">[02/10/08]</span><br />
<ol type="1">
<li>Caching system has been created, based of phpBB 3.x system</li>
<li>SQL Caching is now possible</li>
<li>New mini-sessions class being created to hold all userdata</li>
<li>New &#36;db_config variable with cache exclusion for values deemed a "security" risk if cached<br />
</li></ol>
<br />
<span style="font-weight: bold;">[03/10/08]</span><br />
<ol type="1">
<li>New language files created. Now all text will be using language files</li>
<li>Adding different database encoding support so that other languages may be supported (Russian, Ukrainian and etc)</li>
<li>Improved SQL Error reporting (borrowed from phpBB 3.0 mssql library)</li>
<li>Complete error reporting with debug mode has been added</li>
<li>Debug mode option now moved to the config file (removed from database)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[04/10/08]</span><br />
<ol type="1">
<li>New check for banned users function</li>
<li>New template system. Using the template class called "Booster Class" created by Chris Lam &lt;admin@knetgb.com&gt; <a href="http://code.google.com/p/booster-template/" target="_blank">http://code.google.com/p/booster-template/</a></li>
<li>Transferred the login system over from version 2.x with new added security checks</li>
<li>Fixed cookie destroy_cookie() function, was not destroying the cookie!</li>
<li>Created new logout.php</li>
<li>Created global template vars by using array_merge() at the load() template array value<br />
</li></ol>
<br />
<span style="font-weight: bold;">[05/10/08]</span><br />
<ol type="1">
<li>New look for the Game CP based on this MyBB forum skin</li>
<li>New ajax.php for all ajax features of the game cp!</li>
<li>Transferred gamecp_register.php to register.php for version 3.0</li>
<li>Added new ajax method of checking if username exists</li>
<li>New page title format: Page Name - Game CP - Server Name<br />
</li></ol>
<br />
<span style="font-weight: bold;">[06/10/08]</span><br />
<ol type="1">
<li>Made user email globally available</li>
<li>Added: Total Play Time, Game Points, Vote Game Points, Account Email and Account Type to index page</li>
<li>Added compatibility support for player registration (RF 215)</li>
<li>Game Points data now added on registration</li>
<li>Added the inserting of user data in the Billing Database for in-game cash shop (RF 216 and greater only)</li>
<li>New mssql pagination class, a modified version of mssql_pagina_class ver. 1.00 of Fahad Waheed Khan. Added full-result cache support</li>
<li>New pagination navigation display (like googles now)</li>
<li>Ported the players list from v2.0 with new cached results for faster page load time<br />
</li></ol>
<br />
<span style="font-weight: bold;">[07/10/08]</span><br />
<ol type="1">
<li>Ported the server status from v2.0</li>
<li>Removed the usage of LibChart and now using Google Charts</li>
<li>Cached all SQL results for 24 hours</li>
<li>Added the ability to get live data (refreshed every 2-3 minutes) if applicable (not everyone can use this) (Work in progress)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[08/10/08]</span><br />
<ol type="1">
<li>Ported user ban list from version 2.0</li>
<li>Ported chip war stats from RFe's Game CP<br />
</li></ol>
<br />
<span style="font-weight: bold;">[11/10/08]</span><br />
<ol type="1">
<li>Added character information on the index page</li>
<li>Porting "Account Info" now re-named to "Characters" where detailed view on character setup will be given, including options to delete and change gender<br />
</li></ol>
<br />
<span style="font-weight: bold;">[17/10/08]</span><br />
<ol type="1">
<li>Formatted the SQL Error reporting<br />
</li></ol>
<br />
<span style="font-weight: bold;">[20/10/08]</span><br />
<ol type="1">
<li>Improved speed when reading cache files, still need to improve speed of cache creation for large files and data loading</li>
<li>Game CP cannot use persistent connections due to the fact that it uses multiple MSSQL databases</li>
<li>Improved speeds in playerlist.php<br />
</li></ol>
<br />
<span style="font-weight: bold;">[28/10/08]</span><br />
<ol type="1">
<li>New upgrade codes system, now every single possible combination can be made and found. (i.e. favour, mercy, mercy, favour)<br />
</li></ol>
<br />
<span style="font-weight: bold;">[01/11/08]</span><br />
<ol type="1">
<li>Brand new and much much faster formula for getting item codes</li>
<li>Old method of creating db_codes is much faster, so sticking to that</li>
<li>New method of creating upgrade codes has been created, much faster than before<br />
</li></ol>
<br />
<span style="font-weight: bold;">[03/11/08]</span><br />
<ol type="1">
<li>Work on new Super Administrator panel begins</li>
<li>New features to come to v3:<ul>
<li>New character stats system, displays all sorts of stats of a character</li>
<li>New ESL (<a href="http://www.esl.eu" target="_blank">http://www.esl.eu</a>) like module, this can be turned on and off optionally. Players will be able to challenge one and other and have official PVP matches against each other; A very nice system for PVP servers to have <img src="http://forum.aarondm.com/images/smilies/biggrin.gif" style="vertical-align: middle;" border="0" alt="Big Grin" title="Big Grin" /></li>
<li>More control over pages, allowing admins to disable and enable pages at any given time</li>
<li>More control over cache, ability to purge the cache or single cache pages</li>
<li>Advanced Item search, adding the ability to search for specific upgraded weapons. As well, you will be able to search if an item repeats more than x number of times in a players inventory</li>
<li>[NOT CONFIRMED] Administrators will be able to mass-delete items from the server</li>
<li>New discount feature in the item shop</li>
<li>A cart system will be added to the item shop</li>
<li>[ADD ON] Ability to create an image banner for the latest items added<br />
</li></ul>
</li></ol>
<br />
<span style="font-weight: bold;">[05/11/08]</span><br />
<ol type="1">
<li>New configuration page made for the super admins. More user friendly!</li>
<li>Cache now gets deleted on Game CP Config update</li>
<li>Broken down the "play time" in the players list, now displays days, hours and minutes<br />
</li></ol>
<br />
<span style="font-weight: bold;">[07/11/08]</span><br />
<ol type="1">
<li>New module system, every page must be registered in the database in order to work now</li>
<li>New permissions system, a slightly more flexible permission system, adding the ability to disable view, search, edit and "other" features of a specific module</li>
<li>Pages/Modules can now be disabled by the administrator, thus rendering the page in-accessible, same as turning of view permissions I guess.<br />
</li></ol>
<br />
<span style="font-weight: bold;">[10/11/08]</span><br />
<ol type="1">
<li>Admin view cache page completed</li>
<li>Viewing large cache files will result in a page timeout, really why view it?<br />
</li></ol>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: Why are my PayPal Payments not automatic?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=22</link>
			<pubDate>Sat, 13 Sep 2008 20:19:15 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=22</guid>
			<description><![CDATA[Make sure in you're: <span style="font-weight: bold;">Super Admin -&gt; Configuration</span><br />
<br />
Make sure your:<br />
<span style="font-weight: bold;">Paypal Ipn Url</span> is set correctly to:<br />
<br />
<a href="http://www.yourwebsite.com/gamecp/paypal_ipn.php" target="_blank">http://www.yourwebsite.com/gamecp/paypal_ipn.php</a><br />
<br />
Check it in your browser, if it says "404 not found" you have entered an incorrect URL!<br />
<br />
Make sure your PayPal E-Mail is set as well. If it does not work, try turning <span style="font-weight: bold;">off</span> PayPal SSL usage.]]></description>
			<content:encoded><![CDATA[Make sure in you're: <span style="font-weight: bold;">Super Admin -&gt; Configuration</span><br />
<br />
Make sure your:<br />
<span style="font-weight: bold;">Paypal Ipn Url</span> is set correctly to:<br />
<br />
<a href="http://www.yourwebsite.com/gamecp/paypal_ipn.php" target="_blank">http://www.yourwebsite.com/gamecp/paypal_ipn.php</a><br />
<br />
Check it in your browser, if it says "404 not found" you have entered an incorrect URL!<br />
<br />
Make sure your PayPal E-Mail is set as well. If it does not work, try turning <span style="font-weight: bold;">off</span> PayPal SSL usage.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: When looking up information; No results! How do I fix it?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=21</link>
			<pubDate>Wed, 10 Sep 2008 12:43:05 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=21</guid>
			<description><![CDATA[If you are having this problem, make sure in you're LUAccount, the type of the column "Email" is varchar(255) and not nchar.<br />
<br />
Also make sure this applies to any other accounts in the database!<br />
<br />
nchar =&gt; varchar(255)]]></description>
			<content:encoded><![CDATA[If you are having this problem, make sure in you're LUAccount, the type of the column "Email" is varchar(255) and not nchar.<br />
<br />
Also make sure this applies to any other accounts in the database!<br />
<br />
nchar =&gt; varchar(255)]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: Registration failure, SQL Error! Any fix?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=20</link>
			<pubDate>Sat, 06 Sep 2008 21:51:21 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=20</guid>
			<description><![CDATA[Please run the following line of SQL for the USER DATABASE on RF.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>USE [RF_USER&#93; /* RF_USER is the name of your USER Database */<br />
GO<br />
ALTER TABLE tbl_LUAccount ADD EMail varchar(255) Null</code></div></div>
]]></description>
			<content:encoded><![CDATA[Please run the following line of SQL for the USER DATABASE on RF.<br />
<div class="codeblock">
<div class="title">Code:<br />
</div><div class="body" dir="ltr"><code>USE [RF_USER] /* RF_USER is the name of your USER Database */<br />
GO<br />
ALTER TABLE tbl_LUAccount ADD EMail varchar(255) Null</code></div></div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[FAQ: What features are included?]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=19</link>
			<pubDate>Sat, 06 Sep 2008 16:55:43 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=19</guid>
			<description><![CDATA[<span style="font-weight: bold;">User Panel:</span><ul>
<li><span style="text-decoration: underline;">Registration:</span> Allows a player to sign up to play your game!</li>
<li><span style="text-decoration: underline;">Account Information:</span> Allows the user to view the characters on their account with details such as, Item equipped, Race, Money, Gold, Class, Time played with and Level. It also allows you to change the characters gender (if applicable) and delete the character.</li>
<li><span style="text-decoration: underline;">Change Character Name:</span> Allows the user to change their character name if applicable and unique</li>
<li><span style="text-decoration: underline;">Change Account Password:</span> Allows the user to change their account password</li>
<li><span style="text-decoration: underline;">Buy Rented Items:</span> Allows the user to buy rented items like Separation Jades with different times (24, 144, 336, 820 hours)</li>
<li><span style="text-decoration: underline;">Item Shop:</span> An extensive shop that uses game points which users can purchase or vote to gain. Admins can add virtually any item from the game and it will instantly place the items in the users inventory when bought.</li>
<li><span style="text-decoration: underline;">Item Redeem Logs:</span> Allows the user to view his/her redeem/purchase history</li>
<li><span style="text-decoration: underline;">Purchase Game Points Paypal And Google:</span> Users can purchase game points with either PayPal or Google Checkout</li>
<li><span style="text-decoration: underline;">Player List:</span> Shows the top list of players on the server, sorted in order of highest to lowest PVP points.</li>
<li><span style="text-decoration: underline;">Server Status:</span> Shows the population stats of the server</li>
<li><span style="text-decoration: underline;">Banned Users:</span> Displays the top 50 latest banned users<br />
</li></ul>
<span style="font-weight: bold;">Support Panel:</span><ul>
<li><span style="text-decoration: underline;">Bank Search:</span> Support staff may search the bank inventory of any given user</li>
<li><span style="text-decoration: underline;">Character Lookup:</span> Staff may look up a character in the game which will provide them with several listings of information regarding the character, including account name and serial</li>
<li><span style="text-decoration: underline;">Combine Elems:</span> Character may combine the "blood brother elements" from a users inventory by entering their username</li>
<li><span style="text-decoration: underline;">Equipment Search:</span> Allows the staff member to search the users equipment (being wore) from their weapon, armor to their cape</li>
<li><span style="text-decoration: underline;">Inventory Search:</span> Allows the staff member to search for items in users inventory, either a specific item on a specific user or an item on the server in general</li>
<li><span style="text-decoration: underline;">Logout Logs:</span> Support staff can view the log out logs, containing the users ips and date logged off of any given account dating back to the start of the server</li>
<li><span style="text-decoration: underline;">Name Changes:</span> Staff can check the name change logs from the Game CP</li>
<li><span style="text-decoration: underline;">New Accounts:</span> Staff can view new account sign ups</li>
<li><span style="text-decoration: underline;">Rented Items Log:</span> Staff can view the rented items purchased by users</li>
<li><span style="text-decoration: underline;">User Ban Check:</span> Staff can check the ban logs to see which user is banned and for what reason, including the time period</li>
<li><span style="text-decoration: underline;">User Information:</span> This allows the staff member to look up a users account and get detailed information about the account, including sign up email and account serial<br />
</li></ul>
<span style="font-weight: bold;">Admin Panel:</span><ul>
<li><span style="text-decoration: underline;">Configuration:</span> Allows the super administrator(s) to configure the Game CP</li>
<li><span style="text-decoration: underline;">Permissions:</span> Super administrators can give users special access to support and admin pages</li>
<li><span style="text-decoration: underline;">Character Edit:</span> Edit the information of a character, like the map location, pvp points, money, class, and etc</li>
<li><span style="text-decoration: underline;">Check vesion:</span> Check for the latest Game CP Version</li>
<li><span style="text-decoration: underline;">GM Accounts:</span> View the online/offline as well as other information about GM Accounts</li>
<li><span style="text-decoration: underline;">Items Edit:</span> Add, remove, change or upgrade items in a users inventory</li>
<li><span style="text-decoration: underline;">Items List:</span> Get a list, find a code by searching for the code its self or the name of the item</li>
<li><span style="text-decoration: underline;">Mail Logs:</span> If setup correctly, can be used to view all logs of mail sent by player-to-player, including the items sent by mail</li>
<li><span style="text-decoration: underline;">Manage Bans:</span> Allows the staff member to add, edit, view and delete user account bans</li>
<li><span style="text-decoration: underline;">Monster List:</span> Allows the user to search for a monster code or a monster name</li>
<li><span style="text-decoration: underline;">Vote Logs:</span> Logs of users voting, including how many game points they gained and at what time</li>
<li><span style="text-decoration: underline;">Vote Sites:</span> Add, remove or edit sites that users can vote for in order to gain points</li>
<li><span style="text-decoration: underline;">Manage Categories:</span> Allows the staff member to manage Item Shop Categories</li>
<li><span style="text-decoration: underline;">Manage Items:</span> Allows the staff member to add,remove and delete Item Shop items</li>
<li><span style="text-decoration: underline;">Manage Redeem Logs:</span> Member can search for logs on a specific user or item, or view a general purchase log of items<br />
</li></ul>
]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;">User Panel:</span><ul>
<li><span style="text-decoration: underline;">Registration:</span> Allows a player to sign up to play your game!</li>
<li><span style="text-decoration: underline;">Account Information:</span> Allows the user to view the characters on their account with details such as, Item equipped, Race, Money, Gold, Class, Time played with and Level. It also allows you to change the characters gender (if applicable) and delete the character.</li>
<li><span style="text-decoration: underline;">Change Character Name:</span> Allows the user to change their character name if applicable and unique</li>
<li><span style="text-decoration: underline;">Change Account Password:</span> Allows the user to change their account password</li>
<li><span style="text-decoration: underline;">Buy Rented Items:</span> Allows the user to buy rented items like Separation Jades with different times (24, 144, 336, 820 hours)</li>
<li><span style="text-decoration: underline;">Item Shop:</span> An extensive shop that uses game points which users can purchase or vote to gain. Admins can add virtually any item from the game and it will instantly place the items in the users inventory when bought.</li>
<li><span style="text-decoration: underline;">Item Redeem Logs:</span> Allows the user to view his/her redeem/purchase history</li>
<li><span style="text-decoration: underline;">Purchase Game Points Paypal And Google:</span> Users can purchase game points with either PayPal or Google Checkout</li>
<li><span style="text-decoration: underline;">Player List:</span> Shows the top list of players on the server, sorted in order of highest to lowest PVP points.</li>
<li><span style="text-decoration: underline;">Server Status:</span> Shows the population stats of the server</li>
<li><span style="text-decoration: underline;">Banned Users:</span> Displays the top 50 latest banned users<br />
</li></ul>
<span style="font-weight: bold;">Support Panel:</span><ul>
<li><span style="text-decoration: underline;">Bank Search:</span> Support staff may search the bank inventory of any given user</li>
<li><span style="text-decoration: underline;">Character Lookup:</span> Staff may look up a character in the game which will provide them with several listings of information regarding the character, including account name and serial</li>
<li><span style="text-decoration: underline;">Combine Elems:</span> Character may combine the "blood brother elements" from a users inventory by entering their username</li>
<li><span style="text-decoration: underline;">Equipment Search:</span> Allows the staff member to search the users equipment (being wore) from their weapon, armor to their cape</li>
<li><span style="text-decoration: underline;">Inventory Search:</span> Allows the staff member to search for items in users inventory, either a specific item on a specific user or an item on the server in general</li>
<li><span style="text-decoration: underline;">Logout Logs:</span> Support staff can view the log out logs, containing the users ips and date logged off of any given account dating back to the start of the server</li>
<li><span style="text-decoration: underline;">Name Changes:</span> Staff can check the name change logs from the Game CP</li>
<li><span style="text-decoration: underline;">New Accounts:</span> Staff can view new account sign ups</li>
<li><span style="text-decoration: underline;">Rented Items Log:</span> Staff can view the rented items purchased by users</li>
<li><span style="text-decoration: underline;">User Ban Check:</span> Staff can check the ban logs to see which user is banned and for what reason, including the time period</li>
<li><span style="text-decoration: underline;">User Information:</span> This allows the staff member to look up a users account and get detailed information about the account, including sign up email and account serial<br />
</li></ul>
<span style="font-weight: bold;">Admin Panel:</span><ul>
<li><span style="text-decoration: underline;">Configuration:</span> Allows the super administrator(s) to configure the Game CP</li>
<li><span style="text-decoration: underline;">Permissions:</span> Super administrators can give users special access to support and admin pages</li>
<li><span style="text-decoration: underline;">Character Edit:</span> Edit the information of a character, like the map location, pvp points, money, class, and etc</li>
<li><span style="text-decoration: underline;">Check vesion:</span> Check for the latest Game CP Version</li>
<li><span style="text-decoration: underline;">GM Accounts:</span> View the online/offline as well as other information about GM Accounts</li>
<li><span style="text-decoration: underline;">Items Edit:</span> Add, remove, change or upgrade items in a users inventory</li>
<li><span style="text-decoration: underline;">Items List:</span> Get a list, find a code by searching for the code its self or the name of the item</li>
<li><span style="text-decoration: underline;">Mail Logs:</span> If setup correctly, can be used to view all logs of mail sent by player-to-player, including the items sent by mail</li>
<li><span style="text-decoration: underline;">Manage Bans:</span> Allows the staff member to add, edit, view and delete user account bans</li>
<li><span style="text-decoration: underline;">Monster List:</span> Allows the user to search for a monster code or a monster name</li>
<li><span style="text-decoration: underline;">Vote Logs:</span> Logs of users voting, including how many game points they gained and at what time</li>
<li><span style="text-decoration: underline;">Vote Sites:</span> Add, remove or edit sites that users can vote for in order to gain points</li>
<li><span style="text-decoration: underline;">Manage Categories:</span> Allows the staff member to manage Item Shop Categories</li>
<li><span style="text-decoration: underline;">Manage Items:</span> Allows the staff member to add,remove and delete Item Shop items</li>
<li><span style="text-decoration: underline;">Manage Redeem Logs:</span> Member can search for logs on a specific user or item, or view a general purchase log of items<br />
</li></ul>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to create your own Module]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=18</link>
			<pubDate>Fri, 29 Aug 2008 23:29:40 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=18</guid>
			<description><![CDATA[Its simple.<br />
<br />
I'm still using the old &#36;out .= "content here"; method.<br />
<br />
<span style="font-weight: bold;">admin_</span>filename.php<br />
<span style="font-weight: bold;">support_</span>filename.php<br />
<span style="font-weight: bold;">all_</span>filename.php<br />
<span style="font-weight: bold;">user_</span>filename.php<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if(&nbsp;!empty(</span><span style="color: #0000BB">&#36;setmodules</span><span style="color: #007700">)&nbsp;)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;file&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">basename</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;module</span><span style="color: #007700">[</span><span style="color: #DD0000">'Category'</span><span style="color: #007700">&#93;[</span><span style="color: #DD0000">'Name'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;file</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return;<br />}<br /><br /></span><span style="color: #0000BB">&#36;lefttitle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'Page&nbsp;Title'</span><span style="color: #007700">;<br /><br />if&nbsp;(</span><span style="color: #0000BB">&#36;this_script&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//if&nbsp;(hasPermissions(&#36;do))&nbsp;{&nbsp;//Admin&nbsp;Permissions<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">&#36;isuser</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">&#36;isuser&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{&nbsp;</span><span style="color: #FF8000">//Is&nbsp;user?&nbsp;remove&nbsp;both&nbsp;if&nbsp;all_<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Content&nbsp;here<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'no_permission'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'invalid_page_load'</span><span style="color: #007700">&#93;;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
<span style="font-weight: bold;">Example Google Checkout:</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//////////////////////////////////////////////////////////////<br />//&nbsp;&nbsp;&nbsp;&nbsp;Game&nbsp;CP:&nbsp;RF&nbsp;Online&nbsp;Game&nbsp;Control&nbsp;Panel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//&nbsp;&nbsp;&nbsp;&nbsp;Module:&nbsp;admin_donations_google.php&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//&nbsp;&nbsp;&nbsp;&nbsp;Copyright&nbsp;(C)&nbsp;www.AaronDM.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//////////////////////////////////////////////////////////////<br /><br />#&nbsp;Write&nbsp;Module&nbsp;to&nbsp;Menu<br /></span><span style="color: #007700">if(&nbsp;!empty(</span><span style="color: #0000BB">&#36;setmodules</span><span style="color: #007700">)&nbsp;)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;file&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">basename</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;module</span><span style="color: #007700">[</span><span style="color: #DD0000">'Donations'</span><span style="color: #007700">&#93;[</span><span style="color: #DD0000">'Purchase&nbsp;GP&nbsp;(Google)'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;file</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return;<br />}<br /><br /></span><span style="color: #FF8000">#&nbsp;Write&nbsp;out&nbsp;our&nbsp;basic&nbsp;information&nbsp;about&nbsp;this&nbsp;page<br /></span><span style="color: #0000BB">&#36;lefttitle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Purchase&nbsp;Game&nbsp;Points&nbsp;(Google)"</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">#&nbsp;Build&nbsp;the&nbsp;rest&nbsp;of&nbsp;the&nbsp;site<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;this_script&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset(</span><span style="color: #0000BB">&#36;isuser</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">&#36;isuser&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;Required&nbsp;Files<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">'./includes/google_library/googlecart.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googleitem.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googleshipping.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googletax.php'</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;Working&nbsp;of&nbsp;Googles&nbsp;own&nbsp;script,&nbsp;case3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Create&nbsp;a&nbsp;new&nbsp;shopping&nbsp;cart&nbsp;object<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;merchant_id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_merchant_id'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;Your&nbsp;Merchant&nbsp;ID<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;merchant_key&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_merchant_key'</span><span style="color: #007700">&#93;;&nbsp;</span><span style="color: #FF8000">//&nbsp;Your&nbsp;Merchant&nbsp;Key<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;server_type&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_server_type'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_currency'</span><span style="color: #007700">&#93;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;tottime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">time</span><span style="color: #007700">()-</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'createtime'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;tottime&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">604800&nbsp;</span><span style="color: #007700">or&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'createtime'</span><span style="color: #007700">&#93;&nbsp;==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#gamecp_log(1,&#36;userdata['username'&#93;,&nbsp;"GAMECP&nbsp;-&nbsp;DONATE&nbsp;-&nbsp;Suspicious&nbsp;user:&nbsp;Account&nbsp;less&nbsp;than&nbsp;a&nbsp;week&nbsp;old",&nbsp;1);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;(isset(</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">&#93;))&nbsp;?&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">&#93;&nbsp;:&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">connectuserdb</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #DD0000">"[^a-zA-Z0-9_-&#93;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ereg_replace</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">";&#36;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ereg_replace</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"&#092;&#092;&#092;&#092;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;select_query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;Serial,&nbsp;convert(varchar,id)&nbsp;AS&nbsp;Name&nbsp;FROM&nbsp;tbl_UserAccount&nbsp;WHERE&nbsp;id&nbsp;=&nbsp;convert(binary,'&#36;username')"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!(</span><span style="color: #0000BB">&#36;result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;select_query</span><span style="color: #007700">)))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;p&nbsp;style="text-align:&nbsp;center;&nbsp;font-weight:&nbsp;bold;"&gt;SQL&nbsp;Error&nbsp;while&nbsp;trying&nbsp;to&nbsp;query&nbsp;the&nbsp;database&lt;/p&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;result</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;data</span><span style="color: #007700">[</span><span style="color: #DD0000">'Name'</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;data</span><span style="color: #007700">[</span><span style="color: #DD0000">'Serial'</span><span style="color: #007700">&#93;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'[USER&nbsp;NOT&nbsp;FOUND&#93;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;custom</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;center&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;h2&gt;Your&nbsp;account&nbsp;currently&nbsp;has&nbsp;&lt;span&nbsp;style="color:&nbsp;#8F92E8;"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'points'</span><span style="color: #007700">&#93;).</span><span style="color: #DD0000">'&lt;/span&gt;&nbsp;Game&nbsp;Points&lt;/h2&gt;&lt;br/&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;form&nbsp;method="post"&nbsp;action="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">.</span><span style="color: #DD0000">'?do='</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'do'</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;your&nbsp;purchasing&nbsp;Item&nbsp;Mall&nbsp;Credits&nbsp;for&nbsp;a&nbsp;friend,&nbsp;enter&nbsp;their&nbsp;&lt;b&gt;&lt;u&gt;username&lt;/u&gt;&lt;/b&gt;&nbsp;below.&lt;br&nbsp;/&gt;&lt;br&nbsp;/&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="text"&nbsp;name="username"&gt;&nbsp;&lt;input&nbsp;type="submit"&nbsp;class="submit"&nbsp;value="Change"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;/form&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;/center&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;br&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">calculate_credits</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_credit_muntiplier'</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_number_of_pay_options'</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_start_price'</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_start_credits'</span><span style="color: #007700">&#93;,</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;table&nbsp;class="tborder"&nbsp;cellpadding="3"&nbsp;cellspacing="1"&nbsp;border="0"&nbsp;width="60%"&nbsp;align="center"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;colspan="5"&nbsp;style="text-align:&nbsp;center;&nbsp;font-size:&nbsp;15px;"&gt;You&nbsp;are&nbsp;purchasing&nbsp;these&nbsp;credits&nbsp;for&nbsp;&lt;b&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">.</span><span style="color: #DD0000">'&lt;/b&gt;&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Price&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Credits&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Bonus&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&nbsp;style="text-align:&nbsp;center;"&gt;Total&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&nbsp;style="text-align:&nbsp;center;"&gt;Buy&nbsp;Now!&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">++)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;cart&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">GoogleCart</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;merchant_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;merchant_key</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;server_type</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;currency</span><span style="color: #007700">);&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Add&nbsp;items&nbsp;to&nbsp;the&nbsp;cart<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">GoogleItem</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"&nbsp;Game&nbsp;Points"</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;.</span><span style="color: #DD0000">"&nbsp;Game&nbsp;Points&nbsp;for&nbsp;the&nbsp;Item&nbsp;Shop"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetMerchantPrivateItemData</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;custom</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetEmailDigitalDelivery</span><span style="color: #007700">(</span><span style="color: #DD0000">'true'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;cart</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">AddItem</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#list(&#36;status,&nbsp;&#36;error)&nbsp;=&nbsp;&#36;cart-&gt;CheckoutServer2Server();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;bgcolor&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;i&nbsp;</span><span style="color: #007700">%&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">)&nbsp;?&nbsp;</span><span style="color: #DD0000">'alt1'&nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">'alt2'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#36;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;,&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'.'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_credits</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_bonus</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&nbsp;align="center"&gt;&lt;b&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&#93;).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&nbsp;align="center"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;cart</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">CheckoutButtonNowCode</span><span style="color: #007700">(</span><span style="color: #DD0000">"small"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"en_US"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"trans"</span><span style="color: #007700">).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'no_permission'</span><span style="color: #007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'invalid_page_load'</span><span style="color: #007700">&#93;;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
You should be able to figure out the rest.<br />
<br />
connectgamecpdb();<br />
connectuserdb();<br />
connectdatadb();]]></description>
			<content:encoded><![CDATA[Its simple.<br />
<br />
I'm still using the old &#36;out .= "content here"; method.<br />
<br />
<span style="font-weight: bold;">admin_</span>filename.php<br />
<span style="font-weight: bold;">support_</span>filename.php<br />
<span style="font-weight: bold;">all_</span>filename.php<br />
<span style="font-weight: bold;">user_</span>filename.php<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if(&nbsp;!empty(</span><span style="color: #0000BB">&#36;setmodules</span><span style="color: #007700">)&nbsp;)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;file&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">basename</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;module</span><span style="color: #007700">[</span><span style="color: #DD0000">'Category'</span><span style="color: #007700">][</span><span style="color: #DD0000">'Name'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;file</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return;<br />}<br /><br /></span><span style="color: #0000BB">&#36;lefttitle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'Page&nbsp;Title'</span><span style="color: #007700">;<br /><br />if&nbsp;(</span><span style="color: #0000BB">&#36;this_script&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//if&nbsp;(hasPermissions(&#36;do))&nbsp;{&nbsp;//Admin&nbsp;Permissions<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">&#36;isuser</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">&#36;isuser&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{&nbsp;</span><span style="color: #FF8000">//Is&nbsp;user?&nbsp;remove&nbsp;both&nbsp;if&nbsp;all_<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Content&nbsp;here<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'no_permission'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'invalid_page_load'</span><span style="color: #007700">];<br />}<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
<span style="font-weight: bold;">Example Google Checkout:</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:<br />
</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//////////////////////////////////////////////////////////////<br />//&nbsp;&nbsp;&nbsp;&nbsp;Game&nbsp;CP:&nbsp;RF&nbsp;Online&nbsp;Game&nbsp;Control&nbsp;Panel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//&nbsp;&nbsp;&nbsp;&nbsp;Module:&nbsp;admin_donations_google.php&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//&nbsp;&nbsp;&nbsp;&nbsp;Copyright&nbsp;(C)&nbsp;www.AaronDM.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />//////////////////////////////////////////////////////////////<br /><br />#&nbsp;Write&nbsp;Module&nbsp;to&nbsp;Menu<br /></span><span style="color: #007700">if(&nbsp;!empty(</span><span style="color: #0000BB">&#36;setmodules</span><span style="color: #007700">)&nbsp;)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;file&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">basename</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;module</span><span style="color: #007700">[</span><span style="color: #DD0000">'Donations'</span><span style="color: #007700">][</span><span style="color: #DD0000">'Purchase&nbsp;GP&nbsp;(Google)'</span><span style="color: #007700">]&nbsp;=&nbsp;</span><span style="color: #0000BB">&#36;file</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;return;<br />}<br /><br /></span><span style="color: #FF8000">#&nbsp;Write&nbsp;out&nbsp;our&nbsp;basic&nbsp;information&nbsp;about&nbsp;this&nbsp;page<br /></span><span style="color: #0000BB">&#36;lefttitle&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Purchase&nbsp;Game&nbsp;Points&nbsp;(Google)"</span><span style="color: #007700">;<br /><br /></span><span style="color: #FF8000">#&nbsp;Build&nbsp;the&nbsp;rest&nbsp;of&nbsp;the&nbsp;site<br /></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">&#36;this_script&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset(</span><span style="color: #0000BB">&#36;isuser</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;</span><span style="color: #0000BB">&#36;isuser&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;Required&nbsp;Files<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">'./includes/google_library/googlecart.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googleitem.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googleshipping.php'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;require_once(</span><span style="color: #DD0000">'./includes/google_library/googletax.php'</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#&nbsp;Working&nbsp;of&nbsp;Googles&nbsp;own&nbsp;script,&nbsp;case3<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Create&nbsp;a&nbsp;new&nbsp;shopping&nbsp;cart&nbsp;object<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;merchant_id&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_merchant_id'</span><span style="color: #007700">];&nbsp;</span><span style="color: #FF8000">//&nbsp;Your&nbsp;Merchant&nbsp;ID<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;merchant_key&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_merchant_key'</span><span style="color: #007700">];&nbsp;</span><span style="color: #FF8000">//&nbsp;Your&nbsp;Merchant&nbsp;Key<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;server_type&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_server_type'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;currency&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'google_currency'</span><span style="color: #007700">];<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;tottime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">time</span><span style="color: #007700">()-</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'createtime'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;tottime&nbsp;</span><span style="color: #007700">&lt;=&nbsp;</span><span style="color: #0000BB">604800&nbsp;</span><span style="color: #007700">or&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'createtime'</span><span style="color: #007700">]&nbsp;==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#gamecp_log(1,&#36;userdata['username'],&nbsp;"GAMECP&nbsp;-&nbsp;DONATE&nbsp;-&nbsp;Suspicious&nbsp;user:&nbsp;Account&nbsp;less&nbsp;than&nbsp;a&nbsp;week&nbsp;old",&nbsp;1);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;(isset(</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">]))&nbsp;?&nbsp;</span><span style="color: #0000BB">&#36;_POST</span><span style="color: #007700">[</span><span style="color: #DD0000">'username'</span><span style="color: #007700">]&nbsp;:&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">connectuserdb</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(</span><span style="color: #0000BB">eregi</span><span style="color: #007700">(</span><span style="color: #DD0000">"[^a-zA-Z0-9_-]"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ereg_replace</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">";&#36;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">ereg_replace</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"&#092;&#092;&#092;&#092;"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;select_query&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;Serial,&nbsp;convert(varchar,id)&nbsp;AS&nbsp;Name&nbsp;FROM&nbsp;tbl_UserAccount&nbsp;WHERE&nbsp;id&nbsp;=&nbsp;convert(binary,'&#36;username')"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!(</span><span style="color: #0000BB">&#36;result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;select_query</span><span style="color: #007700">)))&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;p&nbsp;style="text-align:&nbsp;center;&nbsp;font-weight:&nbsp;bold;"&gt;SQL&nbsp;Error&nbsp;while&nbsp;trying&nbsp;to&nbsp;query&nbsp;the&nbsp;database&lt;/p&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">mssql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;result</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;data</span><span style="color: #007700">[</span><span style="color: #DD0000">'Name'</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;data</span><span style="color: #007700">[</span><span style="color: #DD0000">'Serial'</span><span style="color: #007700">];<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">'[USER&nbsp;NOT&nbsp;FOUND]'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'serial'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;custom&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">antiject</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;custom</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;exit_stage&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;center&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;h2&gt;Your&nbsp;account&nbsp;currently&nbsp;has&nbsp;&lt;span&nbsp;style="color:&nbsp;#8F92E8;"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;userdata</span><span style="color: #007700">[</span><span style="color: #DD0000">'points'</span><span style="color: #007700">]).</span><span style="color: #DD0000">'&lt;/span&gt;&nbsp;Game&nbsp;Points&lt;/h2&gt;&lt;br/&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;form&nbsp;method="post"&nbsp;action="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;script_name</span><span style="color: #007700">.</span><span style="color: #DD0000">'?do='</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'do'</span><span style="color: #007700">].</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;your&nbsp;purchasing&nbsp;Item&nbsp;Mall&nbsp;Credits&nbsp;for&nbsp;a&nbsp;friend,&nbsp;enter&nbsp;their&nbsp;&lt;b&gt;&lt;u&gt;username&lt;/u&gt;&lt;/b&gt;&nbsp;below.&lt;br&nbsp;/&gt;&lt;br&nbsp;/&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type="text"&nbsp;name="username"&gt;&nbsp;&lt;input&nbsp;type="submit"&nbsp;class="submit"&nbsp;value="Change"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;/form&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;/center&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;br&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">calculate_credits</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_credit_muntiplier'</span><span style="color: #007700">],</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_number_of_pay_options'</span><span style="color: #007700">],</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_start_price'</span><span style="color: #007700">],</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'donations_start_credits'</span><span style="color: #007700">],</span><span style="color: #0000BB">false</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&lt;table&nbsp;class="tborder"&nbsp;cellpadding="3"&nbsp;cellspacing="1"&nbsp;border="0"&nbsp;width="60%"&nbsp;align="center"&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(</span><span style="color: #0000BB">&#36;username&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;colspan="5"&nbsp;style="text-align:&nbsp;center;&nbsp;font-size:&nbsp;15px;"&gt;You&nbsp;are&nbsp;purchasing&nbsp;these&nbsp;credits&nbsp;for&nbsp;&lt;b&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;username</span><span style="color: #007700">.</span><span style="color: #DD0000">'&lt;/b&gt;&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Price&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Credits&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&gt;Bonus&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&nbsp;style="text-align:&nbsp;center;"&gt;Total&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="thead"&nbsp;style="text-align:&nbsp;center;"&gt;Buy&nbsp;Now!&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for(</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">=</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">);&nbsp;</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">++)&nbsp;{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;cart&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">GoogleCart</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;merchant_id</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;merchant_key</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;server_type</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;currency</span><span style="color: #007700">);&nbsp;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Add&nbsp;items&nbsp;to&nbsp;the&nbsp;cart<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">GoogleItem</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">].</span><span style="color: #DD0000">"&nbsp;Game&nbsp;Points"</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">].</span><span style="color: #DD0000">"&nbsp;Game&nbsp;Points&nbsp;for&nbsp;the&nbsp;Item&nbsp;Shop"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">]);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetMerchantPrivateItemData</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;custom</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">SetEmailDigitalDelivery</span><span style="color: #007700">(</span><span style="color: #DD0000">'true'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;cart</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">AddItem</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;item</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">#list(&#36;status,&nbsp;&#36;error)&nbsp;=&nbsp;&#36;cart-&gt;CheckoutServer2Server();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;bgcolor&nbsp;</span><span style="color: #007700">=&nbsp;(</span><span style="color: #0000BB">&#36;i&nbsp;</span><span style="color: #007700">%&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">)&nbsp;?&nbsp;</span><span style="color: #DD0000">'alt1'&nbsp;</span><span style="color: #007700">:&nbsp;</span><span style="color: #DD0000">'alt2'</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;&#36;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_price</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">],&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'.'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_credits</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">]).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_bonus</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">]).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&nbsp;align="center"&gt;&lt;b&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">number_format</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;c_total</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">]).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td&nbsp;class="'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;bgcolor</span><span style="color: #007700">.</span><span style="color: #DD0000">'"&nbsp;align="center"&gt;'</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;cart</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">CheckoutButtonNowCode</span><span style="color: #007700">(</span><span style="color: #DD0000">"small"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"en_US"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"trans"</span><span style="color: #007700">).</span><span style="color: #DD0000">'&lt;/td&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;'</span><span style="color: #007700">.</span><span style="color: #DD0000">"&#092;n"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">'&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'no_permission'</span><span style="color: #007700">];<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#36;out&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">&#36;lang</span><span style="color: #007700">[</span><span style="color: #DD0000">'invalid_page_load'</span><span style="color: #007700">];<br />}<br /></span><span style="color: #0000BB">?&gt;</span></code></div></div></div>
<br />
You should be able to figure out the rest.<br />
<br />
connectgamecpdb();<br />
connectuserdb();<br />
connectdatadb();]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[NEW&#93; 1 Year license, $183 (25% off!)]]></title>
			<link>http://forum.aarondm.com/showthread.php?tid=17</link>
			<pubDate>Tue, 29 Jul 2008 12:49:21 -0700</pubDate>
			<dc:creator>Aaron</dc:creator>
			<guid isPermaLink="false">http://forum.aarondm.com/showthread.php?tid=17</guid>
			<description><![CDATA[<span style="font-size: large;">Buying a license only provides you access to RUN the Game CP under its terms and conditions (license agreement). Support in setting up the Game CP is NOT included!<br />
<br />
Purchasing a license gives you free updates for the build you buy. Meaning, if there is a update: version 2.5.1 and you have version 2.4.0 you will get the update for <span style="font-weight: bold;">free</span>. However, if you have version 2.4.0 and version 3.0.0 and above is released, you will have to buy a new license for that product.<br />
<br />
When buying a license you agree that you will buy it for the domain specified only. Any changes of the domain will require you to purchase a new license! So don't make a mistake!</span><br />
<br />
<blockquote><cite>License Agreement Wrote:</cite>### BY USING THESE/THIS SCRIPT(S) YOU ARE AUTOMATICALLY AGREEING<br />
### TO THE FOLLOWING TERMS. IF YOU DO NOT AGREE WITH T