1 && strlen($_POST['lname'])>1 && strlen($_POST['email'])>5){ // POST into variables $fname=ucwords($_POST['fname']); $lname=ucwords($_POST['lname']); $email=strtolower($_POST['email']); $phone=$_POST['phone']; $zip=$_POST['zip']; $country=$_POST['country']; $cbid=strtolower($_POST['cbid']); $receipt=strtoupper($_POST['receipt']); // set full name $fullname=$fname." ".$lname; // search for Receipts in Access table $query="SELECT `id`,`code`,`pp`,`status`,`product`,`bid` FROM `".$config['db_access']."` WHERE `code`='".indb($receipt)."' AND `status`='1';"; $datax=mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql search for receipt error: ".mysql_error()); // check if receipt exists if(mysql_num_rows($datax)>0){ $emails=array(); // e-mail templates array $download_pages_for_email=array(); // DP array for e-mails $download_pages=array(); // download pages array $postdata=array(); // list all receipts while($data=mysql_fetch_assoc($datax)){ // set PP $pp=$data['pp']; // if product is set for this bonus if($data['product']>0){ // get download page by product_id $query="SELECT `icontact_listid`,`icontact_specialid`,`icontact_clientid`,`icontact_formid`,`icontact_reallistid`,`icontact_doubleopt`,`download` FROM `".$config['db_products']."` WHERE `id`='".indb($data['product'])."' LIMIT 1;"; $datax2=mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql search for product by id=".$data['product']." error: ".mysql_error()); if(mysql_num_rows($datax2)>0){ $data2=mysql_fetch_assoc($datax2); // fill array element with download page URL for this product $download_pages[]=$data2['download']; $download_page_element=$data2['download']; // used for e-mails array if($data2['icontact_listid']!=0){ // fill array element with array of iContact info from DB for this product $postdata[] = array('listid' => $data2['icontact_listid'], 'specialid:'.$data2['icontact_listid'] => $data2['icontact_specialid'], 'clientid' => $data2['icontact_clientid'], 'formid' => $data2['icontact_formid'], 'reallistid' => $data2['icontact_reallistid'], 'doubleopt' => $data2['icontact_doubleopt'], 'fields_fname'=>$fname, 'fields_lname'=>$lname, 'fields_email'=>$email, 'fields_phone'=>$phone, 'fields_zip'=>$zip, 'fields_country'=>$country, 'fields_cbid'=>$cbid, 'fields_receipt'=>$receipt, 'redirect'=>'http://www.icontact.com/www/signup/thanks.html', 'errorredirect'=>'http://www.icontact.com/www/signup/error.html' ); } }else{ // no product has been found $download_pages[]="[NOT FOUND]"; savelog("access/logs/register.txt","No product with id=".$data['product']); } } // get confemail template id by bid $query="SELECT `confemail` FROM `".$config['db_bonuses']."` WHERE `id`='".indb($data['bid'])."' LIMIT 1;"; $datax2=mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql search for confe-mail in bonuses by id=".$data['product']." error: ".mysql_error()); if(mysql_num_rows($datax2)>0){ $data2=mysql_fetch_assoc($datax2); // check if confemail is set if($data2['confemail']>0){ // fill array element with confemail id for this product $emails[]=$data2['confemail']; $download_pages_for_email[]=$download_page_element; unset($download_page_element); } }else{ // no bonus has been found savelog("access/logs/register.txt","No confemail for bonus with id=".$data['bid']." (Name: ".$fullname.", Receipt: ".$receipt.")"); } } // update access table with correct user details. Search by receipt. $query="UPDATE `".$config['db_access']."` SET `name`='".indb($fullname)."', `email`='".indb($email)."', `updated`=NOW() WHERE `code`='".indb($receipt)."';"; mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql update receipt=".$receipt." with user details error: ".mysql_error()); // update Clickbank transactions with correct user details. Search by receipt. if($pp=="cb"){ $query="UPDATE `".$config['db_cbtrans']."` SET `ccustname`='".indb($fullname)."', `ccustemail`='".indb($email)."' WHERE `ctransreceipt`='".indb($receipt)."';"; mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql update cbtransreceipt=".$receipt." with user details error: ".mysql_error()); } //// Sending e-mails // find out how many e-mails to send $emailtosend=array_unique($emails); if(sizeof($emailtosend)==1){ // Send one single e-mail // insert download pages into one string divided by "\n" $dp=""; foreach($download_pages_for_email as $value){ $dp.=$value."\n"; } // get template id $et=""; foreach($emailtosend as $value){ $et=$value; } // Get Email template from DB $query="SELECT `id`,`title`,`from`,`subject`,`message` FROM `".$config['db_emails']."` WHERE `id`='".indb($et)."' LIMIT 1;"; $datax2=mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql search for e-mail template with id=".$et." Error: ".mysql_error()); if(mysql_num_rows($datax2)>0){ // E-mail template exists $data=mysql_fetch_assoc($datax2); // Fill templates with variables /* %USER_FIRSTNAME% - First Name, %USER_LASTNAME% - Last Name, %USER_EMAIL% - User E-mail, %USER_RECEIPT% - User Receipt, %DOWNLOAD_PAGE% - Download page(s) for product(s) */ ///////////////////////////////// // Subject $data['subject']=str_replace("%USER_FIRSTNAME%",$fname,$data['subject']); $data['subject']=str_replace("%USER_LASTNAME%",$lname,$data['subject']); $data['subject']=str_replace("%USER_EMAIL%",$email,$data['subject']); $data['subject']=str_replace("%USER_RECEIPT%",$receipt,$data['subject']); // Message $data['message']=str_replace("%USER_FIRSTNAME%",$fname,$data['message']); $data['message']=str_replace("%USER_LASTNAME%",$lname,$data['message']); $data['message']=str_replace("%USER_EMAIL%",$email,$data['message']); $data['message']=str_replace("%USER_RECEIPT%",$receipt,$data['message']); $data['message']=str_replace("%DOWNLOAD_PAGE%",$dp,$data['message']); $to = $email; $subject = $data['subject']; $message = $data['message']; $headers = "From: ".$data['from']. "\r\n" . "Reply-To: ".$data['from']. "\r\n" . "X-Mailer: PHP/" . phpversion(); // if(!send_email($email, $data['subject'], $data['message'], $data['from'])){ if(!mail($to, $subject, $message, $headers)){ savelog("access/logs/register.txt","Mail function error for receipt \"".$receipt."\". E-mail: ".$email."."); } }else{ // E-mail Template doesn't exist savelog("access/logs/register.txt","Email Template with ID=".$et." doesn't exist!"); } }else{ // Send an e-mail for each receipt foreach($emails as $i => $template_id){ // Get Email template from DB $query="SELECT `id`,`title`,`from`,`subject`,`message` FROM `".$config['db_emails']."` WHERE `id`='".indb($template_id)."' LIMIT 1;"; $datax2=mysql_query($query); me(mysql_error()); if(mysql_error()!="") savelog("access/logs/register.txt","Mysql search for e-mail template with id=".$et." Error: ".mysql_error()); if(mysql_num_rows($datax2)>0){ // E-mail template exists $data=mysql_fetch_assoc($datax2); // Fill templates with variables /* %USER_FIRSTNAME% - First Name, %USER_LASTNAME% - Last Name, %USER_EMAIL% - User E-mail, %USER_RECEIPT% - User Receipt, %DOWNLOAD_PAGE% - Download page(s) for product(s) */ ///////////////////////////////// // Subject $data['subject']=str_replace("%USER_FIRSTNAME%",$fname,$data['subject']); $data['subject']=str_replace("%USER_LASTNAME%",$lname,$data['subject']); $data['subject']=str_replace("%USER_EMAIL%",$email,$data['subject']); $data['subject']=str_replace("%USER_RECEIPT%",$receipt,$data['subject']); // Message $data['message']=str_replace("%USER_FIRSTNAME%",$fname,$data['message']); $data['message']=str_replace("%USER_LASTNAME%",$lname,$data['message']); $data['message']=str_replace("%USER_EMAIL%",$email,$data['message']); $data['message']=str_replace("%USER_RECEIPT%",$receipt,$data['message']); $data['message']=str_replace("%DOWNLOAD_PAGE%",$download_pages_for_email[$i],$data['message']); $to = $email; $subject = $data['subject']; $message = $data['message']; $headers = "From: ".$data['from']. "\r\n" . "Reply-To: ".$data['from']. "\r\n" . "X-Mailer: PHP/" . phpversion(); // if(send_email($email, $data['subject'], $data['message'], $data['from'])){ if(!mail($to, $subject, $message, $headers)){ savelog("access/logs/register.txt","Mail function error for receipt \"".$receipt."\". E-mail: ".$_POST['email']."."); } }else{ // E-mail Template doesn't exist savelog("access/logs/register.txt","Email Template with ID=".$et." doesn't exist!"); } } } // redirect or show download pages $dptoshow=array_unique($download_pages); if(sizeof($dptoshow)==1){ // Redirect to the download page // get single download page url $dp=""; foreach($dptoshow as $value){ $dp=$value; } $redirect=$dp; }else{ // insert download pages into the string $dp=""; foreach($download_pages as $value){ $dp.="".$value."

"; } } }else{ $error="Your Transaction ID is incorrect or it has been disabled.
Please, make sure you entered correct Receipt Code or contact support team at support@forex-megadroid.com"; sleep(1); } // send to icontact if(sizeof($postdata)>0){ for($i=0;$i '36522', 'specialid:36522' => 'OUMD', 'clientid' => '440720', 'formid' => '2604', 'reallistid' => '1', 'doubleopt' => '0', 'fields_fname'=>$fname, 'fields_lname'=>$lname, 'fields_email'=>$email, 'fields_phone'=>$phone, 'fields_zip'=>$zip, 'fields_country'=>$country, 'fields_cbid'=>$cbid, 'fields_receipt'=>$receipt, 'redirect'=>'http://www.icontact.com/www/signup/thanks.html', 'errorredirect'=>'http://www.icontact.com/www/signup/error.html' ); $response=do_post_request("http://app.icontact.com/icp/signup.php", http_build_query($postdata)); } if($redirect!=""){ header("Location: ".$redirect); } }else{ $error="Please, fill all forms with correct information!"; } } ?> Forex Megadroid
 

 

Thank you for your order!

You can access download pages by this links:


Your transaction has been completed successfully.
Your license has been partly activated but, to finalize the process and reach the download page, you need to complete the details below.

Your Transaction ID (Receipt Code) is: Your license has been partly activated but, to finalize the process and reach the download page, you need to complete the details below.
If you did not make a note of your receipt code then please refer to the confirmation email you were sent.

Please remember that this purchase will appear on your bank or credit card statement as a charge from ClickBank or CLKBANK*COM.

Please confirm your details below in order
to access the Megadroid download area

* First Name
* Last Name
* E-mail Address
* Telephone
* ZIP Code
* Country
* Receipt Code
* = Required Field
Receipt Code - this is your transaction ID (ClickBank use an 8-character code containing letters and numbers). You can find your transaction ID in the confirmation e-mail, that you received right after purchasing your product. If it is not in your Inbox then check your Spam/Junk folder.

Support E-mail: support@forex-megadroid.com

 

 

Copyright © 2009, Forex-Megadroid.com. All rights reserved.


Home | Terms | Privacy

 

 

CFTC RULE 4.41 - HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.

All results shown on this website are hypothetical, back-tested results.

No representation is being made that any account will or is likely to achieve profits or losses similar to those shown. In fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. Hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk in actual trading.

All information on this website is for educational purposes only and is not intended to provide financial advice. Any statements about profits or income, expressed or implied, does not represent a guarantee. Your actual trading may result in losses as no trading system is guaranteed. You accept full responsibilities for your actions, trades, profit or loss, and agree to hold the Forex Megadroid team and any authorized distributors of this information harmless in any and all ways.

The use of this website constitutes acceptance of our user agreement.

 

Logos and trademarks are the property of their respective owners.