Plugin Directory

Changeset 2288500


Ignore:
Timestamp:
04/21/2020 03:06:32 PM (6 years ago)
Author:
nickjamescom
Message:

2.4.7
*WarriorPlus Integration.
*Changes at ClickBank Integration.
*Bug fixes
*Version Update.

Location:
apm-child/trunk
Files:
1 added
10 edited

Legend:

Unmodified
Added
Removed
  • apm-child/trunk/admin/apm-subscription-settings.php

    r2235661 r2288500  
    7171            <label for="clickbank_affiliate_nickname">ClickBank Affiliate Username</label>
    7272            <input class="txt-apmbox" name="clickbank_affiliate_nickname" type="text" id="clickbank_affiliate_nickname" value="<?php echo esc_html($recordCrediantial['clickbank_affiliate_nickname']);?>" size="50" />
     73
     74
     75            <label for="warriorplus_affiliate_id">WarriorPlus Affiliate ID</label>
     76            <input class="txt-apmbox" name="warriorplus_affiliate_id" type="text" id="warriorplus_affiliate_id" value="<?php echo esc_html($recordCrediantial['warriorplus_aff_id']);?>" size="50" />
     77
    7378           
    7479            <label for="email_service_provider">Email Service Provider</label>
     
    8691            <p>Copy the listener URL and paste the value into your JVZoo Affiliate settings.</p>
    8792    <input type="text" class="jvzoo_ipn_clickboard_txt_box" id="copy_jvzoo_ipn_clickboard" value="<?php echo site_url()?>/apm-jvzoo-ipn-listener" readonly="readonly" /> <a onclick="copyJVZooIpnClickboard();" class="button jvzoo_ipn_clickboard_btn button-primary add-new-h2"> Copy to clipboard </a>
     93            <br /><br />
     94           
     95            <p>Copy the listener URL and paste the value into your WarriorPlus Affiliate settings.</p>
     96            <input type="text" class="jvzoo_ipn_clickboard_txt_box" id="copy_warriorplus_affliate_ipn_clickboard" value="http://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>
     97
    8898        </div>
    8999       
  • apm-child/trunk/admin/classes/ESP.Class.php

    r2269126 r2288500  
    1717        $email_service_provider =  $apm_arr_request_val['email_service_provider'];
    1818        $clickbank_affiliate_nickname =  $apm_arr_request_val['clickbank_affiliate_nickname'];
     19        $warriorplus_aff_id =  $apm_arr_request_val['warriorplus_aff_id'];
    1920       
    2021       
     
    3233            $egSql = $wpdb->prepare(
    3334                    "INSERT INTO `".APM_OPTIONS_TABLE."`
    34                     (`first_name`,`last_name`, `email`, `jv_zoo_id`, `email_service_provider`, `clickbank_affiliate_nickname`, `last_updated_date`)
    35                     VALUES(%s, %s, %s, %s, %s,%s, %s)",
    36                     array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $current_date));
     35                    (`first_name`,`last_name`, `email`, `jv_zoo_id`, `email_service_provider`, `clickbank_affiliate_nickname`, `warriorplus_aff_id`, `last_updated_date`)
     36                    VALUES(%s, %s, %s, %s, %s,%s, %s, %s)",
     37                    array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $warriorplus_aff_id, $current_date));
    3738               
    3839                $wpdb->query($egSql);
     
    4546            $option_id = $recordCrediantial['ID'];
    4647   
    47             $egSql = $wpdb->prepare("UPDATE `".APM_OPTIONS_TABLE."` SET `first_name` = %s, `last_name` = %s, `email` = %s, `jv_zoo_id` = %s, `email_service_provider` = %s, `clickbank_affiliate_nickname` = %s, `last_updated_date` = %s WHERE ID = %d LIMIT 1", array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $current_date, $option_id));
     48            $egSql = $wpdb->prepare("UPDATE `".APM_OPTIONS_TABLE."` SET `first_name` = %s, `last_name` = %s, `email` = %s, `jv_zoo_id` = %s, `email_service_provider` = %s, `clickbank_affiliate_nickname` = %s, `warriorplus_aff_id` = %s, `last_updated_date` = %s WHERE ID = %d LIMIT 1", array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $warriorplus_aff_id, $current_date, $option_id));
    4849            $wpdb->query($egSql);
    4950        }
     
    105106                    $egmail_errors[] = $AWeberAPIException;
    106107                    $consumerKey = $consumerSecret = $accessKey = $accessSecret = '';
     108                   
     109                    $egmail_errors      = __($exc->message, 'apm-child');
    107110                    $egmail_error_found = TRUE;
    108111                }
     
    236239            }
    237240           
    238             if ($getresponse_custom_field == '')
     241            /*if ($getresponse_custom_field == '')
    239242            {
    240243                $egmail_errors  = __('Please choose Custom field to for clickid mapping.', 'apm-child');
    241244                $egmail_error_found = TRUE;
    242             }
     245            }*/
    243246           
    244247           
     
    250253                $getresponse_list =  $getresponse->getCampaigns();
    251254
    252                 if(is_array($getresponse_list) && sizeof($getresponse_list) > 0)
     255                if(isset($getresponse_list->codeDescription))
     256                {
     257                    $egmail_errors = __($getresponse_list->codeDescription, 'apm-child');
     258                    $egmail_error_found = TRUE;
     259                    $getresponse_api_key  = "";
     260                }
     261                else
    253262                {
    254263                    $getresponse_api_key  = $getresponse_api_key;
    255264                }
    256                 else
    257                 {
    258                     $egmail_errors = __('Something is wrong with GetResponse API Key', 'apm-child');
    259                     $egmail_error_found = TRUE;
    260                 }
     265               
    261266            }
    262267            else
     
    292297        $egmail_errors = '';
    293298        $egmail_error_found = false;
     299        $show_aweber_list = $account = '';
    294300       
    295301        if($aweber_auth_code != '')
     
    453459        $email_service_provider = $recordCrediantial['email_service_provider'];
    454460        $clickbank_affiliate_nickname   = $recordCrediantial['clickbank_affiliate_nickname'];
     461        $warriorplus_aff_id = $recordCrediantial['warriorplus_aff_id'];
    455462       
    456463        //--> AWeber API       
     
    495502            'email_service_provider' => $email_service_provider,
    496503            'clickbank_affiliate_nickname' => $clickbank_affiliate_nickname,
     504            'warriorplus_aff_id' => $warriorplus_aff_id,
    497505            'sendeagle_api_key' => $sendeagle_api_key,
    498506            'sendeagle_company_unique_id' => $sendeagle_company_unique_id,
  • apm-child/trunk/admin/list-aweber.php

    r2269126 r2288500  
    6666   
    6767    $form['clickbank_affiliate_nickname'] = isset($_POST['clickbank_affiliate_nickname']) ? sanitize_text_field($_POST['clickbank_affiliate_nickname']) : '';
     68    $form['warriorplus_affiliate_id'] = isset($_POST['warriorplus_affiliate_id']) ? sanitize_text_field($_POST['warriorplus_affiliate_id']) : '';
    6869   
    6970   
    7071    if($egmail_error_found == FALSE)
    7172    {
    72         $egmail_success = $_APMESP->apm_esp_add(array("first_name" => $form['first_name'], "last_name" => $form['last_name'], "email" => $form['email'], "jv_zoo_id" => $form['jv_zoo_id'], "email_service_provider" => $form['email_service_provider'], "clickbank_affiliate_nickname" => $form['clickbank_affiliate_nickname']));
     73        $egmail_success = $_APMESP->apm_esp_add(array("first_name" => $form['first_name'], "last_name" => $form['last_name'], "email" => $form['email'], "jv_zoo_id" => $form['jv_zoo_id'], "email_service_provider" => $form['email_service_provider'], "clickbank_affiliate_nickname" => $form['clickbank_affiliate_nickname'], "warriorplus_aff_id" => $form['warriorplus_affiliate_id']));
    7374    }
    7475   
     
    123124
    124125
    125 
    126126//--> Get Affiliate Settings details
    127127$egSqlCrediantial = "SELECT * FROM `".APM_OPTIONS_TABLE."` WHERE 1";
     
    171171    {
    172172        $InfusionsoftAPIUtil = new InfusionsoftAPIUtil($INFUSIONSOFT_APP_NAME, $INFUSIONSOFT_API_KEY);
     173       
    173174        $infusionsoft_lists = $InfusionsoftAPIUtil->getInfusionsoftTags();
    174175        $custom_field_list = $InfusionsoftAPIUtil->getInfusionsoftDataFieldHTML();
     
    182183{
    183184    $mapping_type = "GetResponse";
    184     $getresponse_lists = '';
     185    $getresponse_lists = $getresponse_response = '';
    185186   
    186187    $getresponse_api_key = $recordCrediantial['getresponse_api_key'];
     
    190191    {
    191192        $getresponse        = new GetResponse($getresponse_api_key);
     193       
    192194        $getresponse_list   = $getresponse->getCampaigns();
    193195        $custom_field_list  = $getresponse->getCustomFields();
     196
     197        if(isset($getresponse_list->codeDescription))
     198        $getresponse_response = $getresponse_list->codeDescription;
     199       
    194200    }
    195201}
     
    287293            $resultFunnelList = json_decode($resultFunnelList);
    288294   
    289             if(count($resultFunnelList) > 0)
     295            if(count($resultFunnelList) > 0 && $show_aweber_list == true)
    290296            {
    291297                foreach($resultFunnelList as $funnelList)
     
    394400            <div style="width:100%; margin:0; padding:0; clear:both"></div>
    395401<?php
    396             if(count($resultFunnelList) > 0 && is_array($infusionsoft_lists))
    397             {
    398                 if(count($custom_field_list) > 0)
     402            if(is_array($infusionsoft_lists) && count($infusionsoft_lists) > 0)
     403            {
     404           
     405                if(count($resultFunnelList) > 0)
    399406                {
    400 ?>
    401                 <div style="width:100%; display:block; max-width:785px; margin-bottom:15px;">
    402                     <label for="getresponse_custom_field">Choose Custom field for clickid mapping.</label>
    403                     <select id="getresponse_custom_field" name="getresponse_custom_field" required>
    404                         <option value="">___</option>
    405 <?php
    406                             foreach($custom_field_list as $custom_list)
    407                             {
    408 ?>
    409                                 <option value="<?php echo $custom_list->Name;?>" <?php if($getresponse_custom_field == $custom_list->Name){?> selected="selected" <?php } ?>><?php echo $custom_list->Label;?></option>
    410 <?php
    411                             }
    412 ?>
    413                     </select>
    414                 </div>
    415 <?php
     407                    if(isset($custom_field_list) > 0)
     408                    {
     409    ?>
     410                    <div style="width:100%; display:block; max-width:785px; margin-bottom:15px;">
     411                        <label for="getresponse_custom_field">Choose Custom field for clickid mapping.</label>
     412                        <select id="getresponse_custom_field" name="getresponse_custom_field" required>
     413                            <option value="">___</option>
     414    <?php
     415                                foreach($custom_field_list as $custom_list)
     416                                {
     417    ?>
     418                                    <option value="<?php echo $custom_list->Name;?>" <?php if($getresponse_custom_field == $custom_list->Name){?> selected="selected" <?php } ?>><?php echo $custom_list->Label;?></option>
     419    <?php
     420                                }
     421    ?>
     422                        </select>
     423                    </div>
     424    <?php
     425                    }
     426    ?>               
     427                    <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
     428                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
     429                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Infusionsoft Tags</label></div>
     430                    </div>
     431    <?php           
    416432                }
    417 ?>               
    418                 <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
    419                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
    420                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Infusionsoft Tags</label></div>
    421                 </div>
    422 <?php           
    423             }
    424        
    425        
     433       
     434            }
     435           
    426436            $resultFunnelList = json_decode($resultFunnelList);
    427    
    428             if(count($resultFunnelList) > 0 && is_array($infusionsoft_lists))
    429             {
    430                 foreach($resultFunnelList as $funnelList)
     437            if(is_array($infusionsoft_lists) && count($infusionsoft_lists) > 0)
     438            {
     439                if(count($resultFunnelList))
    431440                {
    432 ?>         
    433                     <div style="width:100%; margin:0; padding:0; clear:both"></div>
    434                     <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:15px;">
    435                         <div style="width:49%; display:inline-block">
    436                          <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
    437                         </div>
    438                         <div style="width:49%; display:inline-block">
    439 <?php
    440                         if(is_array($infusionsoft_lists))
    441                         {
    442 ?>         
    443                            <select class='infusionsoft_lists' name="esp_list_id[]">
    444                                 <option value="">_____________</option>
    445 <?php
    446                                 foreach($infusionsoft_lists as $infusionsoft_list)
    447                                 {
    448 ?>
    449                                 <option value="<?php echo $infusionsoft_list->tagId; ?>" <?php if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $infusionsoft_list->tagId){?> selected="selected" <?php }?>><?php echo esc_html($infusionsoft_list->tagName)?></option>
    450                        
    451 <?php
    452                                 }
    453 ?>
    454                             </select><br />
    455 <?php
    456                         }
    457 ?>
    458                          <div id='result'></div>
    459                         </div>
    460                  </div>
    461 <?php           
    462                 }   
     441                    foreach($resultFunnelList as $funnelList)
     442                    {
     443    ?>         
     444                        <div style="width:100%; margin:0; padding:0; clear:both"></div>
     445                        <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:15px;">
     446                            <div style="width:49%; display:inline-block">
     447                             <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
     448                            </div>
     449                            <div style="width:49%; display:inline-block">
     450    <?php
     451                            if(is_array($infusionsoft_lists))
     452                            {
     453    ?>         
     454                               <select class='infusionsoft_lists' name="esp_list_id[]">
     455                                    <option value="">_____________</option>
     456    <?php
     457                                    foreach($infusionsoft_lists as $infusionsoft_list)
     458                                    {
     459    ?>
     460                                    <option value="<?php echo $infusionsoft_list->tagId; ?>" <?php if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $infusionsoft_list->tagId){?> selected="selected" <?php }?>><?php echo esc_html($infusionsoft_list->tagName)?></option>
     461                           
     462    <?php
     463                                    }
     464    ?>
     465                                </select><br />
     466    <?php
     467                            }
     468    ?>
     469                             <div id='result'></div>
     470                            </div>
     471                     </div>
     472    <?php           
     473                    }   
     474                }
    463475            }
    464476        }
     
    473485            <div style="width:100%; margin:0; padding:0; clear:both"></div>
    474486<?php
    475             if(is_array($getresponse_list) && count($getresponse_list) > 0)
     487
     488            if(isset($getresponse_list) && $getresponse_response == '')
    476489            {
    477490                if(count($resultFunnelList) > 0)
    478491                {
    479                     if(count($custom_field_list) > 0)
     492                    if(isset($custom_field_list) > 0)
    480493                    {
    481494?>
     
    507520            $resultFunnelList = json_decode($resultFunnelList);
    508521   
    509             if(is_array($getresponse_list) && count($getresponse_list) > 0)
     522            if(isset($getresponse_list) && $getresponse_response == '')
    510523            {
    511524                if(count($resultFunnelList) > 0)
     
    520533                            </div>
    521534                            <div style="width:49%; display:inline-block">
    522 <?php
    523                             if(is_array($getresponse_list) && count($getresponse_list) > 0)
    524                             {
    525 ?>         
    526535                               <select name="esp_list_id[]">
    527536                                    <option value="">_____________</option>
     
    537546                                </select>
    538547                                <br />
    539 <?php
    540                             }
    541 ?>
    542548                            </div>
    543549                     </div>
  • apm-child/trunk/clickbank-instant-notification.php

    r2235661 r2288500  
    55   
    66    $TodaysDate = date('Y-m-d H:i:s');
     7    $responseMsg = "Failed";
    78   
    89    //--> Tracking jvZoo response.
     
    2021        $sql = $wpdb->prepare("INSERT INTO `".$wpdb->prefix."cso_my_income`
    2122                         (`inc_caffitid`, `inc_ccustcc`, `inc_ccustemail`, `inc_ccustname`, `inc_ccuststate`, `inc_cproditem`, `inc_cprodtitle`, `inc_cprodtype`, `inc_ctransaction`, `inc_ctransaffiliate`, `inc_ctransamount`, `inc_commision_amt`, `inc_ctranspaymentmethod`, `inc_ctransreceipt`, `inc_ctranstime`, `inc_ctransvendor`, `inc_cverify`, `inc_processed`, `income_date`, `cron_status`, `inc_income_type`)
    22                          VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, NOW(), 'Yes', 'ClickBank')",
    23                          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['affiliatePayout'])), 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['cverify'])), 'No'));
     23                         VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, 'Yes', 'ClickBank')",
     24                         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['affiliatePayout'])), 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['cverify'])), 'No', addslashes_gpc(sanitize_text_field($_REQUEST['record_date'])) ));
    2425        $wpdb->query($sql);
    2526       
     
    2728       
    2829        $commision_insert_id = $wpdb->insert_id;
     30       
     31        if($commision_insert_id > 0)
     32        {
     33            $responseMsg = "Successful";
     34        }
    2935    }
    3036   
     
    102108    fwrite($fp, $new_data);
    103109
     110    echo $responseMsg;die;
     111   
    104112    //---> This page will be called through IPN so, we can die it.
    105113    exit();
  • apm-child/trunk/css/apm-style.css

    r1972763 r2288500  
    1414.form-col{width:49%; float:left;}
    1515.row-full-width{width:100%; float:left; margin:10px 0;}
    16 .jvzoo_ipn_clickboard_txt_box{width:100%; max-width:800px;}
     16.jvzoo_ipn_clickboard_txt_box{width:100%; max-width:550px;}
    1717.jvzoo_ipn_clickboard_btn{margin-top:3px !important}
    1818#my_income_from_date, #my_income_to_date{width:100%;}
  • apm-child/trunk/functions/database-function.php

    r2235661 r2288500  
    4040        last_updated_date DATETIME,
    4141        user_email_id varchar(255),
    42         clickbank_affiliate_nickname varchar(255),
     42        clickbank_affiliate_nickname varchar(255),
     43        warriorplus_aff_id varchar(255),
    4344        extra_field_1 varchar(255),
    4445        email_service_provider ENUM('Aweber', 'Sendeagle', 'Infusionsoft', 'GetResponse') NOT NULL DEFAULT 'Aweber',
     
    8990        cron_running_status ENUM('Running', 'Executed') NOT NULL DEFAULT 'Executed',
    9091        cron_status ENUM('Yes', 'No') NOT NULL DEFAULT 'No',
    91         inc_income_type ENUM('JvZoo', 'ClickBank') NOT NULL DEFAULT 'JvZoo'
     92        inc_income_type ENUM('JvZoo', 'ClickBank', 'Warrior') NOT NULL DEFAULT 'JvZoo'
    9293    )$charset_collate;";
    9394    require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
     
    186187   
    187188   
     189    //--> Create page for WarriorPlus Instant Notification
     190   
     191    $valid_page_found = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type='page' AND post_status NOT IN ( 'pending', 'trash', 'future', 'auto-draft' )  AND post_name = %s LIMIT 1;", 'warriorplus-instant-notification' ) );
     192   
     193    if ( $valid_page_found ) {
     194    } else {
     195        $ipn_page_data = array(
     196            'post_status'    => 'publish',
     197            'post_type'      => 'page',
     198            'post_author'    => 1,
     199            'post_name'      => 'warriorplus-instant-notification',
     200            'post_title'     => 'WarriorPlus Instant Notification',
     201            'post_content'   => 'Do not delete this page.',
     202            'post_parent'    => '',
     203            'comment_status' => 'closed',
     204        );
     205        $ipn_page_id = wp_insert_post( $ipn_page_data );
     206    }
     207   
     208   
    188209    return true;
    189210}
  • apm-child/trunk/mc-main.php

    r2269126 r2288500  
    99Author: Nick James
    1010E-mail: admin@nickjamesadmin.com
    11 Version: 2.4.6
     11Version: 2.4.7
    1212Author URI: http://www.pluginpixie.com
    1313*/
    14 ini_set('display_errors',1);
     14//ini_set('display_errors',1);
    1515global $APM_SUBSCRIPTION_VER;
    16 $APM_SUBSCRIPTION_VER = "2.4.6";
     16$APM_SUBSCRIPTION_VER = "2.4.7";
    1717
    1818define('APM_SUBSCRIPTION_PATH', plugins_url().'/'. basename(dirname(__FILE__)).'/');
     
    3131include_once ('affiliate-jvzoo-ipn-listener.php');
    3232include_once ('clickbank-instant-notification.php');
     33include_once ('warrior-instant-notification.php');
    3334include_once ('add-manual-commission.php');
    3435include_once ('jvzoo-affiliate-commission-api.php');
     
    128129}
    129130
     131//--> Fire WarriorPlus INP page
     132if(strpos($current_url, 'warriorplus-instant-notification') !== false)
     133{
     134    execute_warriorplus_instant_notification();
     135}
     136
    130137//--> Fire Add Manual Commission page
    131138if(strpos($current_url, 'add-manual-commission') !== false)
  • apm-child/trunk/optin-monster-settings.php

    r2235661 r2288500  
    4545        app.setCustomVariable('list_id', '<input type="hidden" name="list_id" value="<?php echo esc_html($recordCrediantial['aweber_list_id'],'apm-child')?>" />');
    4646        app.setCustomVariable('clickbank_nickname', '<?php echo __($recordCrediantial['clickbank_affiliate_nickname'],'apm-child')?>');
     47        app.setCustomVariable('warriorplus_aff_id', '<?php echo __($recordCrediantial['warriorplus_aff_id'],'apm-child')?>');
    4748        app.setCustomVariable('jv_zoo_id', '<?php echo __($recordCrediantial['jv_zoo_id'],'apm-child')?>');
    4849        app.setCustomVariable('customer_email', '<input type="hidden" name="customer_email" value="<?php echo esc_html($recordCrediantial['user_email_id'],'apm-child')?>" />');
  • apm-child/trunk/readme.txt

    r2269126 r2288500  
    159159*Bug fixes
    160160*Version Update.
     161
     1622.4.7
     163*WarriorPlus Integration.
     164*Changes at ClickBank Integration.
     165*Bug fixes
     166*Version Update.
  • apm-child/trunk/scripts/apm-settings.js

    r2188308 r2288500  
    7373}
    7474
     75
     76function copyWarriorPlusClickboard()
     77{
     78   
     79    var url = document.getElementById("copy_warriorplus_affliate_ipn_clickboard");
     80    url.select();
     81    document.execCommand("Copy");
     82}
     83
     84
    7585function RetryClickMagicSubmission(id)
    7686{
Note: See TracChangeset for help on using the changeset viewer.