Location: PHPKode > scripts > ICAN > afterpayafees.php
<?php
include("domaininfo.php");
?>
<?php session_start(); ?>
<?php
if($_SESSION[login]!="yes")
header( 'Location: '.$mainurl.'/login.php' ) ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html><head> 
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title><?php echo($maindomain); ?> - Earn Instant Commissions Digital Products!</title>
<link rel="stylesheet" type="text/css" href="style.css" media="all">
</head>
<body> 
<div style="text-align: center;"><br> 
<img alt="Instant Affiliate Commissions" src="images/mainlogo.jpg">&nbsp;<br> 
<br> 
<br> 
</div> 
<br>
<div style="margin-left:100px; margin-right:100px">
<font face="calibri" size="3">
<?php
include("pwd.php");
$result = mysql_query("SELECT * FROM payments where orderid = '$_SESSION[orderid]'") or die(mysql_error());
$row = mysql_fetch_array($result);
$itemname = $row[itemname];
$itemnumber = $row[itemnumber];
$paystatus = $row[paystatus];
$payamt = $row[payamt];
$paycurrency = $row[paycurrency];
$tid = $row[tid];
$bemail = $row[bemail];
$pemail = $row[pemail];
$orderid = $row[orderid];
mysql_close();
if($paystatus=="completed")
{
include("pwd.php");
mysql_query("UPDATE members SET isaff = 'yes' where uname = '$_SESSION[uname]'") or die(mysql_error());
mysql_close();
$_SESSION[isaff] = "yes";
echo("<b>Congratulations, your affiliate account has been activated, please <a href=acpanel.php>click here</a> to continue.</b>");
}
else
echo("<b>Sorry, we could not process your payment!</b> Please contact support for manual payment verification. Please quote order ID as ".$orderid);
?>
<br>
</font>
<h2><i>Questions? Need Support? Visit <a href="<?php echo($mainurl); ?>/support" target="_blank">www.<?php echo($maindomain); ?>/support</a></h2>
</div> 
<br> 
</body></html>
Return current item: ICAN