<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>
<?php

header("Location:login.php");

include "../includes/config.php";
include "../includes/session.php";
include "../includes/functions.php";

if (get_magic_quotes_gpc()) {
    $_POST = array_map('stripslashes_deep', $_POST);
    $_GET = array_map('stripslashes_deep', $_GET);
    $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}

$sql = "SELECT referral_charge FROM ".$tableprefix."settings ";
$result = mysql_query($sql);
if(mysql_num_rows($result) != 0){
	$row = mysql_fetch_array($result);
	$txtReferralCharge = $row["referral_charge"];
	
	
	echo "asasa".$txtReferralCharge;
}
include "../includes/htmltop.php";
?>


		<body>
		<center>
		
		<div align="left" id="layout">
				
				<!--header area start -->
				
<?php

	include_once("../includes/topheader_affiliate.php")

?>						
				
				<!--header area end -->
				
				
				<div align="left" class="main_body">
				<!--main body start -->
<?php	
			
	include "../includes/afftopmenu.php";
	
?>
		
				<div align="left" class="content_area">
					<!--content area start -->
							
							<div align="left" class="welcome_box">
									<img src="../images/welcome_box_top.gif" alt="" />
									<div align="center" class="wecome_txt_area">
											Welcome to the <?php echo htmlentities(SITE_NAME);?> Affiliate Program!<br>
							  </div><img src="../images/welcome_box_btm.gif" alt="" />
				  </div>
							<p align="center">
								Sign up with <?php echo htmlentities(SITE_NAME);?> affiliate program today.<br>
								Refer visitors to our site. We will pay you $<?php echo $txtReferralCharge;?> percentage of first purchase of each registration referred by you!
								<br><br>Just simple as that! <br><br>

								If you have any questions about the program please check the <a href="../faq.php"><b>FAQ</b></a>
							</p>
							
					<!--content area ends -->
				 </div>	
				<div align="left" class="clear_float"><img src="images/clear_admin.gif" alt="" width="1" height="1" /></div>
				<!--main body end -->
				</div>


<?php

	include "../includes/footer.php";

?>