Changeset 2327903
- Timestamp:
- 06/20/2020 10:55:36 AM (6 years ago)
- Location:
- apm-child/trunk
- Files:
-
- 7 edited
-
admin/apm-subscription-settings.php (modified) (1 diff)
-
admin/classes/ESP.Class.php (modified) (1 diff)
-
admin/my_income.php (modified) (3 diffs)
-
affiliate-jvzoo-ipn-listener.php (modified) (3 diffs)
-
mc-main.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
scripts/apm-settings.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
apm-child/trunk/admin/apm-subscription-settings.php
r2288999 r2327903 93 93 <br /><br /> 94 94 95 96 <br /> 97 <p>Copy the listener URL and paste the value into your JVZoo Affiliate settings. (Response will generate from master website.)</p> 98 <input type="text" class="jvzoo_ipn_clickboard_txt_box" id="master_jvzoo_ipn_clickboard_txt_box" value="https://affiliatepromembership.com/jvzoo_affiliate_ipn.php" readonly="readonly" /> <a onclick="copyJVZooIpnMasterClickboard();" class="button jvzoo_ipn_clickboard_btn button-primary add-new-h2"> Copy to clipboard </a> 99 <br /><br /> 100 101 95 102 <p>Copy the listener URL and paste the value into your WarriorPlus Affiliate settings.</p> 96 103 <input type="text" class="jvzoo_ipn_clickboard_txt_box" id="copy_warriorplus_affliate_ipn_clickboard" value="https://affiliatepromembership.com/warriorplus_affliate_ipn.php" readonly="readonly" /> <a onclick="copyWarriorPlusClickboard();" class="button jvzoo_ipn_clickboard_btn button-primary add-new-h2"> Copy to clipboard </a> -
apm-child/trunk/admin/classes/ESP.Class.php
r2289248 r2327903 32 32 "INSERT INTO `".APM_OPTIONS_TABLE."` 33 33 (`first_name`,`last_name`, `email`, `jv_zoo_id`, `email_service_provider`, `clickbank_affiliate_nickname`, `warriorplus_aff_id`, `last_updated_date`) 34 VALUES(%s, %s, %s, %s, %s, %s, %s, %s)",34 VALUES(%s, %s, %s, %s, %s, %s, %s, %s)", 35 35 array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $warriorplus_aff_id, $current_date)); 36 36 -
apm-child/trunk/admin/my_income.php
r2235661 r2327903 12 12 $my_income_to_date = ''; 13 13 $my_income_search = ''; 14 15 if (isset($_GET['mode']) && $_GET['mode'] == 'retry' && isset($_GET['mode']) && $_GET['mode'] != '') 16 { 17 18 $page_name = APM_PHYSICAL_PATH."/logs/debug_clickmagic.txt"; 19 $fp = fopen($page_name, "a"); 20 $dataArr = print_r($_REQUEST, TRUE); 21 fwrite($fp, $dataArr); 22 23 $id = $_GET['sid']; 24 25 if(isset($id) && $id == '') 26 { 27 echo "Unauthorized Access";die; 28 } 29 30 $egSql = "SELECT * FROM ".APM_MY_INCOME." WHERE ID = '".$id."'"; 31 $egRecord = $wpdb->get_row($egSql, ARRAY_A); 32 33 34 $egSqlCrediantial = "SELECT * FROM `".$wpdb->prefix.'cso_options'."` WHERE 1"; 35 $recordCrediantial = $wpdb->get_row($egSqlCrediantial, ARRAY_A); 36 37 //--> Setup CURL for ClickMagick 38 $url = "http://www.clkmg.com/api/s/post/"; 39 40 $postdata = array( 41 'uid' => __($recordCrediantial['clickmagick_clickid'], 'apm-child'), 42 's1' => __($egRecord['inc_caffitid']), 43 'amt' => $egRecord['inc_commision_amt'], 44 'ref' => __($egRecord['inc_ctransreceipt']), 45 ); 46 $args = array( 47 'body' => $postdata, 48 'timeout' => 45, 49 'redirection' => 5, 50 'httpversion' => '1.0', 51 'blocking' => true, 52 'headers' => array(), 53 'cookies' => array() 54 ); 55 56 $response = wp_remote_post( $url, $args ); 57 58 $new_data2 = "\n\n".'Array Send to to CLICK MAGIC:'.print_r($postdata, TRUE); 59 fwrite($fp, $new_data2); 60 61 //--> Tracking CLICK MAGIC Response for debug. 62 $new_data3 = "\n\n".'CLICK MAGIC Response = '.print_r($response, TRUE); 63 fwrite($fp, $new_data3); 64 65 //--> Update My Income 66 if($response['body'] == 'OK') 67 { 68 $TodaysDate = date('Y-m-d H:i:s'); 69 70 $egSql = $wpdb->prepare("UPDATE `".$wpdb->prefix.'cso_my_income'."` SET `inc_processed` = %s, `magic_postback_date` = %s WHERE ID = %d LIMIT 1", array('Yes', $TodaysDate, addslashes_gpc(sanitize_text_field($id)))); 71 72 $wpdb->query($egSql); 73 74 $clickmagic_response = "ClickMagic has proccessed your entry successfully."; 75 } 76 else 77 { 78 $clickmagic_response = "ClickMagic has not proccessed your entry."; 79 } 80 $new_data4 = "\n\n".'======================================================================='."\n\n"; 81 fwrite($fp, $new_data4); 82 } 83 84 85 14 86 15 87 if(isset($_REQUEST['my_income_search']) && $_REQUEST['my_income_search'] != '') … … 157 229 <?php if(esc_html($record->cron_status) == 'No'){ echo "Pending"; } else { ?> <?php echo $append; ?>$<?php echo str_replace("-", "", number_format($commision_amount, 2, '.', '')); }?> 158 230 </td> 159 <td><?php if(esc_html($record->cron_status) == 'No'){ echo "Pending"; } else { ?><?php if(esc_html($record->inc_processed) == 'Yes'){ echo "Yes"; } else { ?> <a class="Untraceable_clickmagic" href="javascript:void(0);">Untraceable</a> <? }} ?></td> 231 <td> 232 <?php if(esc_html($record->cron_status) == 'No'){ echo "Pending"; } else { ?> 233 <?php if(esc_html($record->inc_processed) == 'Yes'){ echo "Yes"; } else { ?> 234 <a onClick="javascript:RetryClickMagicSubmission('<?php echo esc_html($record->ID); ?>')" href="javascript:void(0);">Resend To ClickMagic</a> 235 <? }} ?></td> 160 236 <td width="80"><?php echo date("m-d-Y H:i:s", strtotime(esc_html($record->income_date))); ?></td> 161 237 <td width="80"><?php if($record->magic_postback_date != "0000-00-00 00:00:00" && $record->magic_postback_date != ""){ echo date("m-d-Y H:i:s", strtotime(esc_html($record->magic_postback_date))); }?></td> … … 238 314 }); 239 315 240 jQuery('.Untraceable_clickmagic').mouseover(function(){316 /*jQuery('.Untraceable_clickmagic').mouseover(function(){ 241 317 jQuery('.hover_bkgr_fricc').show(); 242 }); 318 });*/ 243 319 }); 244 320 </script> -
apm-child/trunk/affiliate-jvzoo-ipn-listener.php
r2288501 r2327903 25 25 $egRecord = $wpdb->get_results($egSql, ARRAY_A); 26 26 27 //fwrite($fp, "\n".$egSql); 27 if(isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'jvzoo_ipn_listner') 28 { 29 $TodaysDate = sanitize_text_field($_REQUEST['record_date']); 30 } 31 32 28 33 29 34 if(count($egRecord) <= 0) … … 33 38 VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, 'No')", 34 39 array(addslashes_gpc(sanitize_text_field($_REQUEST['caffitid'])), addslashes_gpc(sanitize_text_field($_REQUEST['ccustcc'])), addslashes_gpc(sanitize_text_field($_REQUEST['ccustemail'])), addslashes_gpc(sanitize_text_field($_REQUEST['ccustname'])), addslashes_gpc(sanitize_text_field($_REQUEST['ccuststate'])), addslashes_gpc(sanitize_text_field($_REQUEST['cproditem'])), addslashes_gpc(sanitize_text_field($_REQUEST['cprodtitle'])), addslashes_gpc(sanitize_text_field($_REQUEST['cprodtype'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctransaction'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctransaffiliate'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctransamount'])) ,addslashes_gpc(sanitize_text_field($_REQUEST['ctranspaymentmethod'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctransreceipt'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctranstime'])), addslashes_gpc(sanitize_text_field($_REQUEST['ctransvendor'])), addslashes_gpc(sanitize_text_field($_REQUEST['cupsellreceipt'])), addslashes_gpc(sanitize_text_field($_REQUEST['cvendthru'])), addslashes_gpc(sanitize_text_field($_REQUEST['cverify'])), 'No', $TodaysDate, $customer_ip)); 40 35 41 $wpdb->query($sql); 36 42 37 43 //fwrite($fp, "\n".$sql); 44 } 45 46 if(!isset($_REQUEST['mode']) && $_REQUEST['mode'] != 'jvzoo_ipn_listner') 47 { 48 49 //--> Send email to update master based ZvZoo IPN 50 51 $email_sender = get_bloginfo('admin_email'); 52 $email_subject = "Urgent Action Required: Please Update Your JVZoo Listener URL"; 53 54 $sqlUser = "SELECT * FROM `".$wpdb->prefix.'users'."` WHERE user_email = '".$email_sender."'"; 55 $recordUser = $wpdb->get_row($sqlUser, ARRAY_A); 56 57 $email_body = "Dear ". $recordUser['display_name'] .", <br /><br /> 58 59 We've noticed that you still have an 'old' JVZoo Listener URL entered into your JVZoo account for the following product: 60 ".$_REQUEST['cproditem'].": ".$_REQUEST['cprodtitle']."<br /><br /> 61 62 Please click here to log into JVZoo.com and update this listener URL to be:<br /> 63 <a href=\"https://affiliatepromembership.com/jvzoo_affiliate_ipn.php\">https://affiliatepromembership.com/jvzoo_affiliate_ipn.php</a><br /><br /> 64 65 If you wish to watch a step-by-step video of the process please click the link below:<br /> 66 <a href=\"https://affiliatepromembership.com/level-3/ongoing-maintenance-and-management/how-to-update-your-jvzoo-listener-url\">https://affiliatepromembership.com/level-3/ongoing-maintenance-and-management/how-to-update-your-jvzoo-listener-url</a><br /><br /> 67 68 Updating this listener link will give you more information about every sale you generate, so please do this ASAP.<br /><br /> 69 70 Thanks<br /> 71 APM Support Team"; 72 73 74 // Always set content-type when sending HTML email 75 $headers = "MIME-Version: 1.0" . "\r\n"; 76 $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; 77 $headers .= 'From: Affiliate Pro Membership <support@affiliatepromembership.com>' . "\r\n"; 78 79 @mail( $email_sender, $email_subject, $email_body, $headers); 38 80 } 39 81 } … … 41 83 $new_data4 = "\n\n".'======================================================================='."\n\n"; 42 84 fwrite($fp, $new_data4); 43 85 44 86 //---> This page will be called through IPN so, we can die it. 87 echo "Successful";die; 45 88 exit(); 46 89 } -
apm-child/trunk/mc-main.php
r2289248 r2327903 9 9 Author: Nick James 10 10 E-mail: admin@nickjamesadmin.com 11 Version: 2. 4.911 Version: 2.5 12 12 Author URI: http://www.pluginpixie.com 13 13 */ 14 14 //ini_set('display_errors',1); 15 15 global $APM_SUBSCRIPTION_VER; 16 $APM_SUBSCRIPTION_VER = "2. 4.9";16 $APM_SUBSCRIPTION_VER = "2.5"; 17 17 18 18 define('APM_SUBSCRIPTION_PATH', plugins_url().'/'. basename(dirname(__FILE__)).'/'); -
apm-child/trunk/readme.txt
r2289248 r2327903 173 173 *Autoresponder Settings update bug fixed. 174 174 *Version Update. 175 176 2.5 177 *JvZoo IPN Listener page from Master Website. 178 *Resend Failed Click Magic request. 179 *Version Update. -
apm-child/trunk/scripts/apm-settings.js
r2288500 r2327903 82 82 } 83 83 84 function copyJVZooIpnMasterClickboard() 85 { 86 87 var url = document.getElementById("master_jvzoo_ipn_clickboard_txt_box"); 88 url.select(); 89 document.execCommand("Copy"); 90 } 91 84 92 85 93 function RetryClickMagicSubmission(id)
Note: See TracChangeset
for help on using the changeset viewer.