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

<channel>
	<title>sammela.com &#187; Uncategorized</title>
	<atom:link href="http://sammela.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://sammela.com</link>
	<description>Stunning web design articles</description>
	<lastBuildDate>Tue, 17 Nov 2009 04:43:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Database Access in OpenCart</title>
		<link>http://sammela.com/2009/11/16/database-access-in-opencart/</link>
		<comments>http://sammela.com/2009/11/16/database-access-in-opencart/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 22:22:02 +0000</pubDate>
		<dc:creator>Sam Mela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sammela.com/?p=503</guid>
		<description><![CDATA[The OpenCart Ecommerce software package is designed for database portability.
PHP, the native language of OpenCart, contains built in functions that are specific to different sql implementations, such as MySql, but these absolutely should not be used in any modules or add-ons that are written for OpenCart.
Instead, the DB class should be used, to preserve database [...]]]></description>
			<content:encoded><![CDATA[<p>The OpenCart Ecommerce software package is designed for database portability.</p>
<p>PHP, the native language of OpenCart, contains built in functions that are specific to different sql implementations, such as MySql, but these absolutely should not be used in any modules or add-ons that are written for OpenCart.</p>
<p>Instead, the DB class should be used, to preserve database portability.</p>
<p>The DB class is located in the db.php file contained in the system/library/ directory, under the OpenCart application directory.  </p>
<p>The following example shows how the DB class is used to look at the contents of the <strong>setting</strong> database table and the <strong>coupon</strong> database table with its related coupon_description table.</p>
<p>The DB class provides a standard database implementation independent interface for the rest of the OpenCart application software.</p>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding-right:10px; padding-bottom:10px; font-weight:bold;" align="left" valign="top">constructor</td>
<td style="padding-bottom:10px;" align="left" valign="top">Accepts the following parameters: <strong>$hostname</strong>, <strong>$username</strong>, <strong>$password</strong>,<strong> $database</strong>.Sets up a connection to the database.</td>
</tr>
<tr>
<td style="padding-right:10px; padding-bottom:10px; font-weight:bold;" align="left" valign="top">destructor</td>
<td style="padding-bottom:10px;" align="left" valign="top">Destroys the connection to the database.</td>
</tr>
<tr>
<td style="padding-right:10px; font-weight:bold;" align="left" valign="top">query</td>
<td style="padding-bottom:10px;" align="left" valign="top">Accepts a query, called <strong>$sql</strong>.  Queries the database and returns the result, but does some other cool things too.  If the result fromt the query is a database &#8220;resource&#8221;, this method reads all the rows from the resource, and returns them in an object that contains both and array of the database rows and the count of the database rows.  See example later in this article.</td>
</tr>
<tr>
<td style="padding-right:10px; font-weight:bold;" align="left" valign="top">escape</td>
<td style="padding-bottom:10px;" align="left" valign="top">Makes data safe to insert in the database by prepending backslashes to unsafe characters such as single quote, double quote, and others.  See the PHP documentation on the  mysql_real_escape_string function, for more detail.</td>
</tr>
<tr>
<td style="padding-right:10px; font-weight:bold;" align="left" valign="top">countAffected</td>
<td style="padding-bottom:10px;" align="left" valign="top">Returns the number of affected rows in the previous query.</td>
</tr>
<tr>
<td style="padding-right:10px; font-weight:bold;" align="left" valign="top">getLastId</td>
<td style="padding-bottom:10px;" align="left" valign="top">Returns an id generated for the auto increment column from the most recent insert, or 0 if the previous query did not result in a new auto increment.</td>
</tr>
</tbody>
</table>
<p> </p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// Create the $db object of the DB Class</span><br />
<span style="color: #000088;">$db</span> &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DB<span style="color: #009900;">&#40;</span>DB_DRIVER<span style="color: #339933;">,</span> DB_HOSTNAME<span style="color: #339933;">,</span> DB_USERNAME<span style="color: #339933;">,</span> DB_PASSWORD<span style="color: #339933;">,</span> DB_DATABASE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<br />
<span style="color: #666666; font-style: italic;">// Query the contents of the setting table</span><br />
<span style="color: #000088;">$query</span> &nbsp;<span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM &quot;</span> <span style="color: #339933;">.</span> DB_PREFIX <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;setting&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Display the results of the query</span><br />
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rows</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$setting</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$setting</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'key'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$setting</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'value'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Query the contents of the coupon table left joined to the coupon_description table </span><br />
<span style="color: #000088;">$coupon_query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM &quot;</span> <span style="color: #339933;">.</span> DB_PREFIX <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;coupon c LEFT JOIN &quot;</span> <span style="color: #339933;">.</span> DB_PREFIX <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;coupon_description cd ON (c.coupon_id = cd.coupon_id) WHERE c.status = '1'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">// Display the results of the query</span><br />
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$coupon_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rows</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$coupon</span><span style="color: #009900;">&#41;</span> <br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;pre&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <a href="http://www.php.net/print_r"><span style="color: #990000;">print_r</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$coupon</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;/pre&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p> </p>
<p>© 2009, Sam Mela. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://sammela.com/2009/11/16/database-access-in-opencart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazing Wordpress Hooks</title>
		<link>http://sammela.com/2009/10/12/amazing-wordpress-hooks/</link>
		<comments>http://sammela.com/2009/10/12/amazing-wordpress-hooks/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 21:35:15 +0000</pubDate>
		<dc:creator>Sam Mela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sammela.com/?p=390</guid>
		<description><![CDATA[In thirty years of programming I have seen a lot of what were called &#8220;frameworks&#8221;.
Some frameworks were too complicated and abstract to use, some were poorly documented, some weren&#8217;t very well written; but in my mind the WordPress framework is superb, and a key feature of the WordPress framework is &#8220;hooks&#8221;.
What are Hooks
So just what [...]]]></description>
			<content:encoded><![CDATA[<p>In thirty years of programming I have seen a lot of what were called &#8220;frameworks&#8221;.</p>
<p>Some frameworks were too complicated and abstract to use, some were poorly documented, some weren&#8217;t very well written; but in my mind the WordPress framework is superb, and a key feature of the WordPress framework is &#8220;hooks&#8221;.</p>
<h2>What are Hooks</h2>
<p>So just what exactly are WordPress hooks?</p>
<p>This is how the WordPress documentation defines hooks:</p>
<p style="padding-left: 30px;">Hooks are provided by WordPress to allow your plugin to &#8216;hook into&#8217; the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion.</p>
<p>This is true, but let&#8217;s try to look at it another way.</p>
<p>Let&#8217;s say you have a guy who comes and fertilizes your lawn twice a year &#8212; once in the spring and once in the fall.  You decide you&#8217;d like him to water your lawn after he fertilizes.  You call him up and you say, &#8220;Hey, from now on when you fertilize my lawn in the spring, please water it afterwards; and when you fertilize my lawn in the fall, please water it .&#8221;</p>
<p>That&#8217;s it. You just hooked the activity of lawn watering into spring fertilizing and fall fertilizing.  Note that you don&#8217;t need to know if spring fertilizing was on March 17 or April 7.  It doesn&#8217;t matter.  Same with fall fertilizing.  If the lawn guy follows your instructions he just waters after he fertilizes.   Furthermore, if you have a reliable lawn guy, you don&#8217;t need to pay attention to when he fertilizes and then remind him to water, because one activity follows another.  It&#8217;s scheduled.</p>
<h2>Tying One Activity to Another</h2>
<p>Simply put, hooks tie one activity to another in WordPress.  There are actually two types of hooks defined in WordPress &#8212; <strong>Actions</strong> and <strong>Filters</strong>.  We&#8217;ll get into that more later in this article, but for now let us look at an example of the use of a hook.  We&#8217;ll use the example given in the WordPress documentation.</p>
<p>Let us suppose that you want an  E-mail sent to a friend of your friends John and Maureen every time you make a post.  Here&#8217;s a handy function to do that:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> email_post_info<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span> &nbsp;<br />
<span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$addresses</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;john@sam_example.org,maureen@sam_example.org&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <a href="http://www.php.net/mail"><span style="color: #990000;">mail</span></a><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$addresses</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Sam blog entry&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">&quot;Please see blog entry: http://blog.sam_example.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$post_ID</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Good function, but how does it get called?</p>
<p>Simple &#8212; attach the <strong>email_post_info</strong> function to the <strong>publish_post</strong> action; and fortunately WordPress offers a simple way to do that, shown below:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_action <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;publish_post&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;email_post_info&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Basically, that&#8217;s it.  The WordPress <strong>add_action </strong>function above is used to register the <strong>email_post_info</strong> function to be called when WordPress executes the <strong>publish_post action</strong>.</p>
<p>Not that &#8220;publish_post&#8221; is one of many standard hook names defined in WordPress.  For example, other post related actions are &#8220;comment_post&#8221;, &#8220;deleted_post&#8221;, &#8220;edit_post&#8221;.  There are various compilations of these actions at <a href="http://codex.wordpress.org/Plugin_API/Hooks_2.0.x" target="_blank">Plugin API/Hooks 2.0.x </a>, <a href="http://adambrown.info/p/wp_hooks" target="_blank">The WordPress Hooks Database</a>, and <a href="http://blog.taragana.com/index.php/archive/wordpress-2x-hooks-for-action-comprehensive-list-for-plugin-and-theme-developers/" target="_blank">Comprehensive List for Plugin and Theme Developers</a>.  The latter claims to included &#8220;documented as well as undocumented&#8221; hooks.</p>
<h2>Action Hooks Versus Filter Hooks</h2>
<p>Action hooks are designed to allow Wordpress to call a plugin function when specific events occur in WordPress.  In other words, they cause an action to take place.  </p>
<p>Filter hooks, on the other hand, are designed to make changes in specific types of data.  In other words, they filter data.</p>
<p>We already looked at an action hook in the previous section.  Now let&#8217;s look at a filter hook.</p>
<h2>Filter Hook Example</h2>
<p>Here is a simple example of a WordPress filter hook, taken from the WordPress default-filters.php file:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.php.net/file"><span style="color: #990000;">file</span></a> add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_title'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'trim'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>What does this do?</p>
<p>It applies the standard PHP Library <strong>trim </strong> function to the page title.</p>
<p>http://www.dinke.net/blog/2007/08/06/php-callback-functions-and-oop/en/</p>
<h2>References</h2>
<p><strong>- </strong><a href="http://www.raymondselda.com/understanding-action-hooks-in-wordpress/" target="_new"  >Understanding Action Hooks In Wordpress</a><br />
<strong>- </strong><a href="http://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filters" target="_new">Plugin API</a><br />
<strong>- </strong><a href="http://codex.wordpress.org/Writing_a_Plugin"    target="_new"  >Writing a Plugin</a><br />
<strong>- </strong><a href="http://codex.wordpress.org/Plugin_API/Hooks_2.0.x"      target="_new" >Plugin API/Hooks 2.0.x</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sammela.com/2009/10/12/amazing-wordpress-hooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notes on Simpler CSS Plugin</title>
		<link>http://sammela.com/2009/10/12/notes-on-simpler-css-plugin/</link>
		<comments>http://sammela.com/2009/10/12/notes-on-simpler-css-plugin/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 16:06:14 +0000</pubDate>
		<dc:creator>Sam Mela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sammela.com/?p=387</guid>
		<description><![CDATA[Creating An Options / Admin Page For Your WordPress Plugin
]]></description>
			<content:encoded><![CDATA[<p><a rel="bookmark" href="http://return-true.com/2009/02/creating-an-options-admin-page-for-your-wordpress-plugin/" target="_blank" >Creating An Options / Admin Page For Your WordPress Plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sammela.com/2009/10/12/notes-on-simpler-css-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing JAM Affiliate Manager Software on HostGator</title>
		<link>http://sammela.com/2009/10/10/installing-the-jrox-com-jam-affiliate-manager-software/</link>
		<comments>http://sammela.com/2009/10/10/installing-the-jrox-com-jam-affiliate-manager-software/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 19:41:14 +0000</pubDate>
		<dc:creator>Sam Mela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sammela.com/?p=359</guid>
		<description><![CDATA[I just installed the JROX JAM Affiliate Manager package onto HostGator account, and guess what? It was easy!
I admit HostGator is my host.  I switched to Host Gator earlier this year from another large hosting company, and I have been very happy so far.
But on to how I did the installation.
Installation Options
JROX gives you [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed the JROX JAM Affiliate Manager package onto HostGator account, and guess what? It was easy!</p>
<p>I admit HostGator is my host.  I switched to Host Gator earlier this year from another large hosting company, and I have been very happy so far.</p>
<p>But on to how I did the installation.</p>
<h2>Installation Options</h2>
<p>JROX gives you multiple different options for how to do it. This article describes how I used the manual option, which means I unzipped the files and used FTP to upload them to my Web account. They also provide an exe file that does the install for you. See the documents referenced at the end of this article for more information on that method, as well as other authoritative information from JROX.COM.</p>
<h2>Method of Installation</h2>
<p>As stated above, I chose to unzip the JAM files to my PC and upload them using the Dreamweaver FTP capability.</p>
<p>The files as I downloaded them were all contained in a zip file called <strong>download.jam.zip</strong> .</p>
<p>Within that file is another zip file called <strong>affiliates.zip</strong> .</p>
<p>And finally within <strong>affiliates.zip</strong> is a folder called <strong>affiliates</strong> .</p>
<p>If  you are installing the way I did, you will want to upload the entire <strong>affiliates</strong> folder to your site, and it will be located at something like <strong>http://www.yoursite.com/affiliates</strong>.</p>
<h2>Overview of Installation</h2>
<p>To install JAM manually, as I did, </p>
<h2>Set Your FTP for Binary File Transfer</h2>
<p>I can&#8217;t overemphasize the importance of using binary FTP as opposed to Text Mode. I used <a title="FileZilla" href="http://filezilla-project.org/download.php" target="_blank">FileZilla </a>, and it was a simple matter to set it for binary transfer.  Your installation won&#8217;t work if you upload your files in text more.</p>
<h2>Customize the Include File</h2>
<p>You&#8217;ll need to make some modifications in the affiliates\includes\config.php file. This file contains a lot of PHP definition statements.</p>
<p>See an <a title="Example of JAM config.php" href="http://sammela.com/wp-content/uploads/2009/10/jam-config.php" target="_blank">example version </a> of the config.php file.</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br />124<br />125<br />126<br />127<br />128<br />129<br />130<br />131<br />132<br />133<br />134<br />135<br />136<br />137<br />138<br />139<br />140<br />141<br />142<br />143<br />144<br />145<br />146<br />147<br />148<br />149<br />150<br />151<br />152<br />153<br />154<br />155<br />156<br />157<br />158<br />159<br />160<br />161<br />162<br />163<br />164<br />165<br />166<br />167<br />168<br />169<br />170<br />171<br />172<br />173<br />174<br />175<br />176<br />177<br />178<br />179<br />180<br />181<br />182<br />183<br />184<br />185<br />186<br />187<br />188<br />189<br />190<br />191<br />192<br />193<br />194<br />195<br />196<br />197<br />198<br />199<br />200<br />201<br />202<br />203<br />204<br />205<br />206<br />207<br />208<br />209<br />210<br />211<br />212<br />213<br />214<br />215<br />216<br />217<br />218<br />219<br />220<br />221<br />222<br />223<br />224<br />225<br />226<br />227<br />228<br />229<br />230<br />231<br />232<br />233<br />234<br />235<br />236<br />237<br />238<br />239<br />240<br />241<br />242<br />243<br />244<br />245<br />246<br />247<br />248<br />249<br />250<br />251<br />252<br />253<br />254<br />255<br />256<br />257<br />258<br />259<br />260<br />261<br />262<br />263<br />264<br />265<br />266<br />267<br />268<br />269<br />270<br />271<br />272<br />273<br />274<br />275<br />276<br />277<br />278<br />279<br />280<br />281<br />282<br />283<br />284<br />285<br />286<br />287<br />288<br />289<br />290<br />291<br />292<br />293<br />294<br />295<br />296<br />297<br />298<br />299<br />300<br />301<br />302<br />303<br />304<br />305<br />306<br />307<br />308<br />309<br />310<br />311<br />312<br />313<br />314<br />315<br />316<br />317<br />318<br />319<br />320<br />321<br />322<br />323<br />324<br />325<br />326<br />327<br />328<br />329<br />330<br />331<br />332<br />333<br />334<br />335<br />336<br />337<br />338<br />339<br />340<br />341<br />342<br />343<br />344<br />345<br />346<br />347<br />348<br />349<br />350<br />351<br />352<br />353<br />354<br />355<br />356<br />357<br />358<br />359<br />360<br />361<br />362<br />363<br />364<br />365<br />366<br />367<br />368<br />369<br />370<br />371<br />372<br />373<br />374<br />375<br />376<br />377<br />378<br />379<br />380<br />381<br />382<br />383<br />384<br />385<br />386<br />387<br />388<br />389<br />390<br />391<br />392<br />393<br />394<br />395<br />396<br />397<br />398<br />399<br />400<br />401<br />402<br />403<br />404<br />405<br />406<br />407<br />408<br />409<br />410<br />411<br />412<br />413<br />414<br />415<br />416<br />417<br />418<br />419<br />420<br />421<br />422<br />423<br />424<br />425<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #666666; font-style: italic;">##############################################################################<br />
</span><span style="color: #666666; font-style: italic;"># WARNING -- THIS IS NOT THE ACTUAL JROX CONFIG FILE<br />
</span><span style="color: #666666; font-style: italic;"># THIS FILE IS FOR TEACHING PURPOSES ONLY <br />
</span><span style="color: #666666; font-style: italic;">##############################################################################<br />
</span><span style="color: #666666; font-style: italic;">## JROX.COM Affiliate Manager - config.php file ##<br />
</span><span style="color: #666666; font-style: italic;">## Version 1.6.2 ##<br />
</span><span style="color: #666666; font-style: italic;">## ##<br />
</span><span style="color: #666666; font-style: italic;">## Author: Ryan Roxas(ryan@jrox.com) ##<br />
</span><span style="color: #666666; font-style: italic;">## Homepage: http://jam.jrox.com ##<br />
</span><span style="color: #666666; font-style: italic;">## Bug Reports: http://jam.jrox.com/bugzilla/ ##<br />
</span><span style="color: #666666; font-style: italic;">## Release Notes: docs/READ_ME.txt ##<br />
</span><span style="color: #666666; font-style: italic;">##############################################################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">##############################################################################<br />
</span><span style="color: #666666; font-style: italic;">## COPYRIGHT NOTICE ##<br />
</span><span style="color: #666666; font-style: italic;">## Copyright 2006 JROX Technologies, Inc. All Rights Reserved. ##<br />
</span><span style="color: #666666; font-style: italic;">## ## <br />
</span><span style="color: #666666; font-style: italic;">## This script may be only used and modified in accordance to the license ##<br />
</span><span style="color: #666666; font-style: italic;">## agreement attached (license.txt) except where expressly noted within ##<br />
</span><span style="color: #666666; font-style: italic;">## commented areas of the code body. This copyright notice and the ##<br />
</span><span style="color: #666666; font-style: italic;">## comments above and below must remain intact at all times. By using this ##<br />
</span><span style="color: #666666; font-style: italic;">## code you agree to indemnify JROX Technologies, Inc, its corporate agents ##<br />
</span><span style="color: #666666; font-style: italic;">## and affiliates from any liability that might arise from its use. ##<br />
</span><span style="color: #666666; font-style: italic;">## ##<br />
</span><span style="color: #666666; font-style: italic;">## Selling the code for this program without prior written consent is ##<br />
</span><span style="color: #666666; font-style: italic;">## expressly forbidden and in violation of Domestic and International ##<br />
</span><span style="color: #666666; font-style: italic;">## copyright laws. ##<br />
</span><span style="color: #666666; font-style: italic;">##############################################################################<br />
</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><a href="http://www.php.net/defined"><span style="color: #990000;">defined</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'JROX'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Error'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##########################################################################################<br />
</span><span style="color: #666666; font-style: italic;">## THIS FILE IS THE MAIN CONFIGURATION FILE FOR YOUR JAM INSTALLATION. PLEASE EDIT ##<br />
</span><span style="color: #666666; font-style: italic;">## THE FOLLOWING SETTINGS TO CONNECT TO YOUR MYSQL DATABASE AND TO YOUR HOME DIRECTORY ##<br />
</span><span style="color: #666666; font-style: italic;">##########################################################################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//ENTER THE NAME OF THE DATABASE SERVER YOU ARE CONNECTING TO. NORMALLY SET TO &quot;localhost&quot;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_SERVER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE NAME OF YOUR DATABASE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;your_database&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE USERNAME THAT CONNECTS TO YOUR DATABASE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_USERNAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;database_user&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE PASSWORD FOR YOUR DATABASE USER</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_PASSWORD&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;database_password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE PASSWORD FOR YOUR SCHEDULED CRON JOB</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CRON_JOB_PASSWORD&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;cron_password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE DOMAIN NAME OF YOUR WEBSITE</span><br />
<span style="color: #666666; font-style: italic;">//EXAMPLE WOULD BE: jrox.com</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE ANY TRAILING SLASH OR HTTP://</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE THE SUBDOMAIN, SUCH AS www.</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DOMAIN_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;yourdomain.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE SUBDOMAIN FOR YOUR SITE</span><br />
<span style="color: #666666; font-style: italic;">//EXAMPLE WOULD BE www</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SUBDOMAIN_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;www&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS THE ENTIRE DOMAIN NAME FOR SETTING COOKIES.</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE ANY SUBDOMAIN, SUCH AS &quot;www&quot;.</span><br />
<span style="color: #666666; font-style: italic;">//AN EXAMPLE WOULD BE: jrox.com</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;COOKIE_DOMAIN&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;yourdomain.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE ABSOLUTE PATH TO YOUR AFFILIATES DIRECTORY</span><br />
<span style="color: #666666; font-style: italic;">//AN EXAMPLE WOULD BE: /home/username/public_html/affiliates</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE A TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HOME_BASE_DIRECTORY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/username/public_html/affiliates&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE NAME OF YOUR AFFILIATE PROGRAM DIRECTORY</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE A TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HOME_BASE_AFFILIATE_DIRECTORY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/affiliates&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//CONFIGURE NUMBER FORMATTING</span><br />
<span style="color: #666666; font-style: italic;">//DEFINE HOW YOU WILL BE DISPLAYING YOUR COMMISSION VALUES</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DECIMAL_SEPARATOR&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;THOUSANDS_SEPARATOR&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DECIMAL_PLACES&quot;</span><span style="color: #339933;">,</span> 2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##########################<br />
</span><span style="color: #666666; font-style: italic;">## URL AND SSL SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">##########################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SPECIFY WHETHER TO USE HTTP:// OR HTTPS:// FOR AFFILIATE LINKS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HTTP_TRANSPORT&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;http://&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SPECIFY WHETHER TO USE SSL FOR ADMIN AREA</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USE_SSL_ADMIN_AREA&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//SET TO &quot;true&quot; TO USE SSL</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET TO true TO USE A SHARED SSL CERTIFICATE FOR THE ADMIN AREA</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USE_SHARED_CERT_ADMIN&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SPECIFY WHETHER TO USE SSL FOR MEMBERS AREA</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;USE_SSL_MEMBERS_AREA&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//SET TO &quot;true&quot; TO USE SSL</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SPECIFY THE URL FOR YOUR SHARED SSL CERTIFICATE</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE A TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SHARED_SSL_URL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;srv.domain.com/~affiliates&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">###################################<br />
</span><span style="color: #666666; font-style: italic;">## CURRENCY AND COUNTRY SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">###################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//ENTER THE 3-DIGIT COUNTRY CODE YOU WANT TO USE FOR PAYMENTS.</span><br />
<span style="color: #666666; font-style: italic;">//USED PRIMARILY FOR PAYPAL-BASED PAYMENTS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;PAYPAL_CURRENCY_CODE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;USD&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//CURRENCY CODE FOR MONEYBOOKERS MASS PAYMENT FILE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MONEYBOOKERS_CURRENCY_CODE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;USD&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THE DEFAULT COUNTRY TO CHOOSE FROM IF YOU WANT TO CHANGE THIS YOU NEED TO LOOK AT THE COUNTRY LIST FUNCTION</span><br />
<span style="color: #666666; font-style: italic;">//HERE ARE SOME COMMON VALUES: Canada, United Kingdom, France, Germany, China, Japan</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DEFAULT_COUNTRY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;United States&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">###################################################################################<br />
</span><span style="color: #666666; font-style: italic;">## THE FOLLOWING IS ONLY NEEDED IF YOU NEED TO MAKE CHANGES TO THE DEBUGGING AND ##<br />
</span><span style="color: #666666; font-style: italic;">## ADVANCED SETTINGS FOR YOUR INSTALLATION ##<br />
</span><span style="color: #666666; font-style: italic;">###################################################################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">##############################<br />
</span><span style="color: #666666; font-style: italic;">## EMAIL SERVER INFORMATION ##<br />
</span><span style="color: #666666; font-style: italic;">##############################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//ENTER &quot;php&quot; or &quot;smtp&quot;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MAILER_SEND_TYPE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//THIS NUMBER REPRESENTS THE TOTAL NUMBER OF EMAILS THAT WILL BE SENT VIA THE SCHEDULED JOB AT REGULAR INTERVALS </span><br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT TO SEND ALL EMAILS AT ONCE, ENTER 0 (ZERO);</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;EMAILS_PER_BATCH&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1000&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THE EMAIL SERVER YOU WILL BE USING TO SEND EMAILS. TYPICALLY SET TO &quot;localhost&quot; </span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SMTP_HOST&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//THIS ENABLES/DISABLES THE NEED FOR SMTP AUTHENTICATION. SET TO &quot;true&quot; IF YOU REQUIRE AUTHENTICATION</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SMTP_AUTHENTICATION&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//THE USERNAME NEEDED TO USE TO SEND EMAILS. ONLY NECESSARY WHEN USING sendmail AS THE &quot;MAILER_SEND_TYPE&quot;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SMTP_USERNAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;smtp_username&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//THE PASSWORD NEEDED TO SEND EMAILS. ONLY NECESSARY WHEN USING sendmail AS THE &quot;MAILER_SEND_TYPE&quot;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SMTP_PASSWORD&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;smtp_password&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//SMTP PORT NUMBER IF NEEDED</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SMTP_PORT&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;25&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT TO SEND ALL MASS EMAILS IMMEDIATELY INSTEAD OF WAITING FOR THE CRON JOB TO RUN, SET THIS TO true</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SEND_MASS_EMAILS_IMMEDIATELY&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">####################<br />
</span><span style="color: #666666; font-style: italic;">## MYSQL SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">####################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET THIS OPTION TO true IF YOU WANT TO USE PERSISTENT CONNECTIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ENABLE_PERSISTENT_MYSQL_CONNECTIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">###########################<br />
</span><span style="color: #666666; font-style: italic;">## EMAIL REPORT SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">###########################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//THIS ENABLES/DISABLES THE DAILY ADMIN STATISTICS REPORTS SENT VIA EMAIL TO THE PRIMARY ADMIN</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;EMAIL_DAILY_ADMIN_REPORTS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//TIME THAT THE DAILY REPORTS AND RECURRING COMMISSIONS WILL BE PROCESSED</span><br />
<span style="color: #666666; font-style: italic;">//MUST BE IN 24-HOUR FORMAT AND MUST COINCIDE WITH CRON JOB TIME</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;EMAIL_DAILY_ADMIN_REPORTS_TIME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;01:30&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//YOU CAN SET THIS TO html or text FOR THE ADMIN EMAIL FORMAT</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_EMAIL_DAILY_ADMIN_HTML_TEXT&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET WHEN AFFILIATE MONTHLY REPORTS WILL GO OUT</span><br />
<span style="color: #666666; font-style: italic;">//CHANGE TO daily or weekly or monthly</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SEND_AFFILIATE_REPORTS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;monthly&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//MYSQL ERROR AND DEBUGGING INFORMATION</span><br />
<span style="color: #666666; font-style: italic;">//ONLY SET TO &quot;true&quot; IF YOU ARE HAVING ERRORS IN YOUR INSTALLATION</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DEBUG_ADVANCED_ERROR&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//ONLY SET TO &quot;true&quot; IF YOU WANT THE DEBUGGING INFO EMAILED TO YOU. BE CAREFUL WITH THIS ONE, IT MAY FLOOD YOU WITH EMAILS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DEBUG_EMAIL&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//EMAIL ADDRESS TO SEND DEBUGGING INFORMATION TO</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DEBUG_EMAIL_TO&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;you@yourdomain.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//EMAIL ADDRESS THAT DEBUGGING INFORMATION IS SENT FROM</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DEBUG_EMAIL_FROM&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;error@@yourdomain.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true IF YOU WANT TO ENABLE READ RECEIPTS ON MASS EMAILS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_READ_RECEIPTS_MASS_MAIL&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//IF YOU HAVE THE JAM_ENABLE_READ_RECEIPTS OPTION SET TO true, ENTER AN EMAIL ADDRESS TO SEND READ RECEIPTS TO HERE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_READ_RECEIPTS_EMAIL_SEND_TO&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;you@yourdomain.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#######################<br />
</span><span style="color: #666666; font-style: italic;">## HELP URL SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#######################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//URL TO LAUNCH THE ADMIN HELP GUIDE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ADMIN_HELP_URL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;http://jam.jrox.com/userguide/admin/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//URL TO LAUNCH THE MEMBER HELP GUIDE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;MEMBER_HELP_URL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;http://jam.jrox.com/userguide/member/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">#############################################################<br />
</span><span style="color: #666666; font-style: italic;">## ENABLE / DISABLE AUTO BACKUPS - SET TO &quot;true&quot; TO ENABLE ##<br />
</span><span style="color: #666666; font-style: italic;">#############################################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET TO &quot;true&quot; IF YOU WANT TO ENABLE AUTOMATIC BACKUPS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DB_AUTOMATIC_BACKUPS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT TO ENABLE AUTOMATIC BACKUPS, TYPE IN THE PHYSICAL FOLDER LOCATION HERE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DB_BACKUP_LOCATION&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/username/backup&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE BACKUP SCHEDULE YOU WANT. POSSIBLE VALUES ARE: daily, weekly, monthly</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DB_BACKUP_SCHEDULE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;weekly&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//DAY OF THE WEEK TO DO WEEKLY BACKUPS ON. </span><br />
<span style="color: #666666; font-style: italic;">// POSSIBLE VALUES ARE Sun, Mon, Tue, Wed, Thu, Fri, Sat, Sun. ONLY VALID FOR WEEKLY-BASED BACKUPS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DB_BACKUP_DAY_WEEKLY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Sun&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE DAY OF THE MONTH YOU WANT TO DO MONTHLY BACKUPS ON. ONLY VALID FOR MONTHLY-BASED BACKUPS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DB_BACKUP_DAY_MONTHLY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">###########################################<br />
</span><span style="color: #666666; font-style: italic;">## ENABLE / DISABLE REPLICATED WEB SITES ##<br />
</span><span style="color: #666666; font-style: italic;">###########################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//MAKE SURE TO SET THE PROPER PERMISSIONS FOR THE FOLDER THAT YOU WILL BE REPLICATING PAGES TO</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_REPLICATED_SITES&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE EXTENSION YOU WANT TO USE FOR REPLICATED WEB PAGES</span><br />
<span style="color: #666666; font-style: italic;">//EXAMPLES ARE html, htm, php</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_REPLICATION_EXTENSION&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true IF YOU WANT TO USE DYNAMIC VARIABLES IN YOUR REPLICATED WEB PAGES</span><br />
<span style="color: #666666; font-style: italic;">//YOU WILL NEED TO USE php AS YOUR JAM_REPLICATION_EXTENSION AS WELL</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_USE_DYNAMIC_VARIABLES_REPLICATION&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE ENTIRE PHYSICAL PATH OF THE WEB PAGE YOU WANT REPLICATED</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_REPLICATION_TEMPLATE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/username/public_html/affiliates/plugins/misc/replicated.html&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE ENTIRE PHYSICAL PATH TO THE REPLICATION DIRECTORY. NO TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_REPLICATION_DIRECTORY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/username/public_html/affiliates/pages&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">#################################<br />
</span><span style="color: #666666; font-style: italic;">## MEMBERSHIP RENEWAL SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET TO true TO SEND OUT MEMBERSHIP RENEWAL REMINDERS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_MEMBERSHIP_RENEWAL_NOTICE&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS USED FOR SENDING OUT RENEWAL EMAILS A FEW DAYS PRIOR TO EXPIRATION</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MEMBERSHIP_EXPIRATION_INTERVAL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SHOW THE MEMBERSHIP UPGRADE PAGE IF AN AFFILIATE MEMBERSHIP IS EXPIRED UPON LOGIN</span><br />
<span style="color: #666666; font-style: italic;">//SET TO false TO DISABLE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SHOW_UPGRADE_PAGE_ON_EXPIRED_LOGIN&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#######################<br />
</span><span style="color: #666666; font-style: italic;">## USERNAME SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#######################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//USERNAME REQUIREMENTS</span><br />
<span style="color: #666666; font-style: italic;">//TOTAL MINIMUM CHARACTERS IS 3</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MINIMUM_USERNAME_CHARACTERS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;6&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//TOTAL MAXIMUM CHARACTERS IS 30</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MAXIMUM_USERNAME_CHARACTERS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;12&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##################################<br />
</span><span style="color: #666666; font-style: italic;">## SIGNUP FORM SESSION SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">##################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT TO ENABLE SESSION HANDLING DURING THE SIGNUP PROCESS SET THIS TO true</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_SESSIONS_ON_SIGNUP&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#########################<br />
</span><span style="color: #666666; font-style: italic;">## PAGINATION SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#########################<br />
</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DEFAULT_MAX_RESULTS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;25&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MEMBER_PROGRAM_LIST&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;5&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MEMBER_MARKETING_TOOLS_LIST&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;5&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#########################################<br />
</span><span style="color: #666666; font-style: italic;">## CPM PAY-PER-LEAD AND CLICK SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#########################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET TO false TO REMOVE ANY CHECKING FOR BANNER IMPRESSIONS. </span><br />
<span style="color: #666666; font-style: italic;">//ALL IMPRESSIONS WILL BE TRACKED REGARDLESS OF IP ADDRESS OR USER</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CPM_UNIQUE&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS THE INTERVAL IN HOURS BEFORE AN AFFILIATE GETS CREDIT FOR AN IMPRESSION FROM THE SAME IP ADDRESS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CPM_HOURS_APART&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;24&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO false IF YOU WANT TO DISABLE BANNER AD IMPRESSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_BANNER_AD_IMPRESSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO false IF YOU WANT TO DISABLE TEXT AD IMPRESSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_TEXT_AD_IMPRESSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO false IF YOU WANT TO DISABLE HOVER_AD IMPRESSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_HOVER_AD_IMPRESSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO false IF YOU WANT TO DISABLE ARTICLE_AD IMPRESSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_ARTICLE_AD_IMPRESSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true TO ENABLE DELETION OF OLD IMPRESSIONS IN THE IMPRESSIONS TABLE</span><br />
<span style="color: #666666; font-style: italic;">//ONLY PAID IMPRESSIONS WILL BE DELETED</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_DELETE_PAID_IMPRESSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//INTERVAL IN DAYS TO WAIT BEFORE PAID IMPRESSIONS ARE DELETED</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DELETE_PAID_IMPRESSIONS_INTERVAL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;365&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET TO true TO USE PERCENTAGE COMMISSIONS FOR CLICKS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_USE_PERCENTAGE_COMMS_CLICKS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS USED TO APPEND TO THE TRANSACTION ID FOR CPM COMMISSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CPM_TRANS_ID&quot;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'m-d-Y'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS USED TO APPEND TO THE TRANSACTION ID FOR PAY-PER-LEAD COMMISSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_LEAD_TRANS_ID&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS USED TO APPEND TO THE TRANSACTION ID FOR PAY-PER-CLICK COMMISSIONS</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_PPC_TRANS_ID&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##########################<br />
</span><span style="color: #666666; font-style: italic;">## PAGE REFRESH SETTING ##<br />
</span><span style="color: #666666; font-style: italic;">##########################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//THIS IS THE NUMBER OF SECONDS A SUCCCESS PAGE WILL WAIT BEFORE REDIRECTING THE USER</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SUCCESS_REFRESH_TIMER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;3&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<br />
<span style="color: #666666; font-style: italic;">############################<br />
</span><span style="color: #666666; font-style: italic;">## CUSTOM MARKETING TOOLS ##<br />
</span><span style="color: #666666; font-style: italic;">############################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true TO INCLUDE ANY CUSTOM MARKETING TOOLS THAT ARE IN THE plugins/tools FOLDER</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_CUSTOM_MARKETING_TOOLS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##########################<br />
</span><span style="color: #666666; font-style: italic;">## CUSTOM CONTENT PAGES ##<br />
</span><span style="color: #666666; font-style: italic;">##########################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true TO SHOW ALL PAGES ON CONTENT DROPDOWN FOR UPGRADING</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_UPGRADE_CONTENT_PAGES&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true TO ADD ANY CUSTOM CONTENT PAGES TO THE CONTENT DROP DOWN MENU</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_CUSTOM_CONTENT_PAGES&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//IF YOU ENABLE THE JAM_ENABLE_CUSTOM_CONTENT_PAGES OPTION, ENTER THE PHYSICAL LOCATION HERE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CUSTOM_CONTENT_FOLDER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/username/public_html/affiliates/members/pages&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE FULL URL PATH TO YOUR CUSTOM CONTENT PAGES FOR REDIRECTION</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CUSTOM_CONTENT_URL&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;http://www.yourdomain.com/affiliates/members/pages&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//PAGE EXTENSIONS TO STRIP OFF FROM FILE NAME, SEPARATED BY COMMAS AND ENCLOSED IN FORWARD SLASHES</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CUSTOM_CONTENT_PAGE_EXTENSIONS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/.html/,/.htm/,/.php/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">##########################<br />
</span><span style="color: #666666; font-style: italic;">## FLASH GRAPH SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">##########################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//YOU CAN CHANGE THIS SETTTING TO 1, 2, 3. A SETTING OF 1 MORPHS THE FLASH GRAPH FROM 2D TO 3D, 2 STARTS IT AS A 2D, 3 SHOWS IT AS A 3D GRAPH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_FLASH_3D_SETTING&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//IF YOU DON'T WANT THE COLUMNS FOR THE FLASH GRAPHS TO BE ANIMATED, SET THIS TO 0 (ZERO)</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ANIMATE_COLUMNS&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">############################<br />
</span><span style="color: #666666; font-style: italic;">## PROGRAM IMAGE SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">############################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//SET THIS TO true TO USE FULL IMAGE PATHS FOR BANNER IMAGES INSTEAD OF DYNAMIC IMAGES</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_BANNER_FULL_IMAGE_PATHS&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//SET TO false IF YOU WANT TO STORE PROGRAM IMAGES IN A FOLDER INSTEAD OF THE DATABASE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_PROGRAM_IMAGE_DB&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#######################<br />
</span><span style="color: #666666; font-style: italic;">## SECURITY SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#######################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//TIMER SETUP FOR ADMIN LOCKOUT</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ADMIN_LOCKOUT_TIMER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//SET FOR 1 HOUR</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ADMIN_LOCKOUT_TIMES&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;5&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//MAX NUMBER OF FAILED LOGINS TO CHECK</span><br />
<br />
<span style="color: #666666; font-style: italic;">//TIMER SETUP FOR ONE TIME OFFER PAGE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_OTO_TIMER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;90&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//SET FOR 90 DAYS</span><br />
<br />
<span style="color: #666666; font-style: italic;">#######################<br />
</span><span style="color: #666666; font-style: italic;">## SALE.PHP SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#######################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT MEMBERS TO GET COMMISSIONS ONLY WHEN THEY REFER THE PROGRAMS THEY ARE MEMBERS FOR, SET THIS TO true</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MATCH_MEMBER_PROGRAM_ID&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">#######################<br />
</span><span style="color: #666666; font-style: italic;">## JROX.PHP SETTINGS ##<br />
</span><span style="color: #666666; font-style: italic;">#######################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//IF YOU WANT TO USE A DIFFERENT FILE NAME FOR THE AFFILIATE LINK, YOU CAN EDIT IT HERE</span><br />
<span style="color: #666666; font-style: italic;">//NOTE: YOU MUST EDIT IT IN YOUR .htaccess FILES AS WELL</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_AFFILIATE_LINK_FILE&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;jrox&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">################################################<br />
</span><span style="color: #666666; font-style: italic;">## JAM AFFILIATES DIRECTORY PUBLISHING OPTION ##<br />
</span><span style="color: #666666; font-style: italic;">################################################<br />
</span><br />
<span style="color: #666666; font-style: italic;">//NOT YET IN USE DO NOT CHANGE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_ENABLE_DIRECTORY_PUBLISHING&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<br />
<span style="color: #666666; font-style: italic;">##########################################<br />
</span><span style="color: #666666; font-style: italic;">## DO NOT EDIT ANYTHING BELOW THIS LINE ##<br />
</span><span style="color: #666666; font-style: italic;">##########################################<br />
</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_MEMORY_LIMIT&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;20M&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SET_TIME_LIMIT&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;60&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #339933;">@</span><a href="http://www.php.net/set_magic_quotes_runtime"><span style="color: #990000;">set_magic_quotes_runtime</span></a><span style="color: #009900;">&#40;</span>0<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Now suppose we are using the following:</p>
<p><strong>Domain:</strong> domain newgreenfarms.com.<br />
<strong>Database:</strong> newgreenfarms_JAM<br />
<strong>Database User:</strong> newgreenfarms_JAM<br />
<strong>Database Password:</strong> O*Boy%21</p>
<p>Here is how the beginning of the file would look after some customizations.</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">//ENTER THE NAME OF THE DATABASE SERVER YOU ARE CONNECTING TO. NORMALLY SET TO &quot;localhost&quot;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_SERVER&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE NAME OF YOUR DATABASE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;newgreenfarms_JAM&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE USERNAME THAT CONNECTS TO YOUR DATABASE</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_USERNAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;newgreenfarms_JAM&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE PASSWORD FOR YOUR DATABASE USER</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DATABASE_PASSWORD&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;O*Boy%21&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE PASSWORD FOR YOUR SCHEDULED CRON JOB</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_CRON_JOB_PASSWORD&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;TheCronPassword&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE DOMAIN NAME OF YOUR WEBSITE</span><br />
<span style="color: #666666; font-style: italic;">//EXAMPLE WOULD BE: jrox.com</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE ANY TRAILING SLASH OR HTTP://</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE THE SUBDOMAIN, SUCH AS www.</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_DOMAIN_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;newgreenfarms&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE SUBDOMAIN FOR YOUR SITE</span><br />
<span style="color: #666666; font-style: italic;">//EXAMPLE WOULD BE www</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;JAM_SUBDOMAIN_NAME&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;www&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//THIS IS THE ENTIRE DOMAIN NAME FOR SETTING COOKIES.</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE ANY SUBDOMAIN, SUCH AS &quot;www&quot;.</span><br />
<span style="color: #666666; font-style: italic;">//AN EXAMPLE WOULD BE: jrox.com</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;COOKIE_DOMAIN&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;newgreenfarms&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE ABSOLUTE PATH TO YOUR AFFILIATES DIRECTORY</span><br />
<span style="color: #666666; font-style: italic;">//AN EXAMPLE WOULD BE: /home/username/public_html/affiliates</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE A TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HOME_BASE_DIRECTORY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/home/newgreenfarms/public_html/affiliates&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//ENTER THE NAME OF YOUR AFFILIATE PROGRAM DIRECTORY</span><br />
<span style="color: #666666; font-style: italic;">//DO NOT INCLUDE A TRAILING SLASH</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;HOME_BASE_AFFILIATE_DIRECTORY&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;/affiliates&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #666666; font-style: italic;">//CONFIGURE NUMBER FORMATTING</span><br />
<span style="color: #666666; font-style: italic;">//DEFINE HOW YOU WILL BE DISPLAYING YOUR COMMISSION VALUES</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DECIMAL_SEPARATOR&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;THOUSANDS_SEPARATOR&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/define"><span style="color: #990000;">define</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;DECIMAL_PLACES&quot;</span><span style="color: #339933;">,</span> 2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<h2>Post Installation Checklist</h2>
<p><a href="http://jam.jrox.com/docs/index.php?article=6">http://jam.jrox.com/docs/index.php?article=6</a></p>
<h2>Read the Blueprint</h2>
<p>Don&#8217;t forget to read the affiliate blueprint included in the download: <a href="http://sammela.com/wp-content/uploads/2009/10/aff_blueprint.pdf">http://sammela.com/wp-content/uploads/2009/10/aff_blueprint.pdf</a></p>
<h2>Reminders</h2>
<h3>Permissions 777 or World-writeable</h3>
<p>Set the following to permission 777 or World-writeable:</p>
<ul>
<li>/affiliates/includes/config.php</li>
<li>/affiliates/banners folder</li>
<li>backup folder</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sammela.com/2009/10/10/installing-the-jrox-com-jam-affiliate-manager-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
