How To Join Training Partners

Home
Log-in
Register
Join
About
 

 

0) { return 1; } else { return 0; } } $memberID ? "" : ($memberID=0); $ind = substr($memberID,-1,1); $fileProduct = array( 0=> array("trainparmem.html","3KbbsTmU"), array("trainparmem1.html","KjH8mmjz"), array("jointrainpar.html","2k6f8RN"), array("trainparmem2.html","zE7qLMVT"), array("trainparmem3.html","DP8vZCfC"), array("trainparmem4.html","ncLH8XFr"), array("trainparmem5.html","L61WxwYR"), array("trainparmem6.html","pCkxwGZw"), array("trainparmem7.html","NuRuJZh6"), array("trainparmem8.html","k7KEcxkD") ); if ($debug == true) { print ("

Index number = $ind"); $row = 0; while ($row < 4) { print ("
$row,0 = ".$fileProduct[$row][0]); print ("
$row,1 = ".$fileProduct[$row][1]); $row++; } print ("

And the selection is..."); print ("

$ind,0 = ".$fileProduct[$ind][0]); print ("
$ind,1 = ".$fileProduct[$ind][1]); } $fileis = "http://www.tmanglobal.com/inventory/inventory.html".$fileProduct[$ind][0]; $productKeyis = $fileProduct[$ind][1]; if ($productKey == "") { if ($productCode == "") { print ("Becoming a member of \"Training Partners\" is simple. Just follow these easy steps."); print ("

"); print ("
Step 1: Go to TMANglobal.com SuperMall and pay your membership fee. Download the membership file that contains your Product Key to upgrade your account.

Step 2:Either click the link in the membership file
or
come back to this page (\"Training Partners\", Click on \"Join\", then \"Join Partners\") and enter your product key here.
"); } else { print ("


Welcome Back to Step 2!

Your are now ready for Step 2.

Your product code should already be in the box below."); print (" Just click the \"Request Upgrade\" button and you're a member.


"); } print ("
Enter Product Key
 
"); } if ($productKey != "") { if (!strcmp($productKey, $productKeyis)) { $lastUpdate = date("d-M-Y"); /* date user became a member */ $dblink = msql_connect("localhost"); msql("registry","update member set status=2, lastUpdate='$lastUpdate' where memberID = $memberID"); $result = msql("registry","select status from member where memberID = $memberID"); if ($result) { $statusresult = msql_result($result,0,status); } msql_close($dblink); if ($statusresult == 2 ) { print ("


Congratulations!

Your upgrade was successful. You will now receive member privileges.

"); } else { print ("
Sorry, your upgrade was not successful. There is a problem with the \"Training Partners\" database. The webmaster was contacted with the error information and will correct the problem. You can contact the webmaster at webmaster@martial-arts-network.com."); $to_address = "webmaster@martial-arts-network.com"; $from_address = "webmaster@martial-arts-network.com"; $subject = "Error with membership upgrade from Training Partners"; $message = "An error has occured on page "; $message .= $PHP_SELF; $message .= ". \nThe error was at the statement \"update member set status\" with variables \n"; $message .= "\nmemberID=".$memberID ."\nstatusresult=".$statusresult ."\nproductKey=".$productKey ."\nproductKeyis =".$productKeyis ; send_mail($to_address, $from_address, $subject, $message); } } else { print ("

Sorry your upgrade was not successful. You entered upgrade product key code \"$productKey\". Please verify that you entered the correct product key code.

If you are still having problems, you can contact the webmaster at webmaster@martial-arts-network.com."); } } if ($debug == true) { print ("
result from query after upgrade = $result
"); print ("

member ID: $memberID"); print ("
index number: $ind"); print ("
Product key enter: $productKey"); print ("
Key verification : ".$productKeyis); } ?>  

 

[Home] [Log-in] [Register] [Join] [About] [Help!] [Terms]