Plugin Directory

Changeset 2888254


Ignore:
Timestamp:
03/28/2023 10:20:04 AM (3 years ago)
Author:
nickjamescom
Message:

Fixed Compatibility Issue.

Location:
apm-child/trunk
Files:
6 edited

Legend:

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

    r2745280 r2888254  
    4444$recordCrediantial = $wpdb->get_row($egSqlCrediantial, ARRAY_A);
    4545
     46$apm_first_name = $recordCrediantial['first_name'] ? $recordCrediantial['first_name'] : '';
     47$apm_last_name = $recordCrediantial['last_name'] ? $recordCrediantial['last_name'] : '';
     48$apm_email = $recordCrediantial['email'] ? $recordCrediantial['email'] : '';
     49$apm_jv_zoo_id = $recordCrediantial['jv_zoo_id'] ? $recordCrediantial['jv_zoo_id'] : '';
     50$apm_clickbank_affiliate_nickname = $recordCrediantial['clickbank_affiliate_nickname'] ? $recordCrediantial['clickbank_affiliate_nickname'] : '';
     51$apm_warriorplus_aff_id = $recordCrediantial['warriorplus_aff_id'] ? $recordCrediantial['warriorplus_aff_id'] : '';
     52$apm_thrivecart_affiliate_username = $recordCrediantial['thrivecart_affiliate_username'] ? $recordCrediantial['thrivecart_affiliate_username'] : '';
     53$apm_email_service_provider = $recordCrediantial['email_service_provider'] ? $recordCrediantial['email_service_provider'] : '';
     54
    4655?>
    4756
     
    5867           
    5968            <label for="first_name">First Name</label>
    60             <input class="txt-apmbox" name="first_name" type="text" id="first_name" value="<?php echo esc_html($recordCrediantial['first_name']);?>" size="50" />
     69            <input class="txt-apmbox" name="first_name" type="text" id="first_name" value="<?php echo esc_html($apm_first_name);?>" size="50" />
    6170
    6271            <label for="last_name">Last Name</label>
    63             <input class="txt-apmbox" name="last_name" type="text" id="last_name" value="<?php echo esc_html($recordCrediantial['last_name']);?>" size="50" />
     72            <input class="txt-apmbox" name="last_name" type="text" id="last_name" value="<?php echo esc_html($apm_last_name);?>" size="50" />
    6473           
    6574            <label for="email">Email</label>
    66             <input class="txt-apmbox" name="email" type="email" id="email" value="<?php echo esc_html($recordCrediantial['email']);?>" size="50" />
     75            <input class="txt-apmbox" name="email" type="email" id="email" value="<?php echo esc_html($apm_email);?>" size="50" />
    6776           
    6877            <label for="jv_zoo_id">JV Zoo ID</label>
    69             <input class="txt-apmbox" name="jv_zoo_id" type="text" id="jv_zoo_id" value="<?php echo esc_html($recordCrediantial['jv_zoo_id']);?>" size="50" />
     78            <input class="txt-apmbox" name="jv_zoo_id" type="text" id="jv_zoo_id" value="<?php echo esc_html($apm_jv_zoo_id);?>" size="50" />
    7079           
    7180            <label for="clickbank_affiliate_nickname">ClickBank Affiliate Username</label>
    72             <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" />
     81            <input class="txt-apmbox" name="clickbank_affiliate_nickname" type="text" id="clickbank_affiliate_nickname" value="<?php echo esc_html($apm_clickbank_affiliate_nickname);?>" size="50" />
    7382           
    7483           
    7584            <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" />
     85            <input class="txt-apmbox" name="warriorplus_affiliate_id" type="text" id="warriorplus_affiliate_id" value="<?php echo esc_html($apm_warriorplus_aff_id);?>" size="50" />
    7786
    7887
    7988            <label for="thrivecart_affiliate_username">ThriveCart Affiliate Username</label>
    80             <input class="txt-apmbox" name="thrivecart_affiliate_username" type="text" id="thrivecart_affiliate_username" value="<?php echo esc_html($recordCrediantial['thrivecart_affiliate_username']);?>" size="50" />
     89            <input class="txt-apmbox" name="thrivecart_affiliate_username" type="text" id="thrivecart_affiliate_username" value="<?php echo esc_html($apm_thrivecart_affiliate_username);?>" size="50" />
    8190           
    8291           
     
    8493            <select name="email_service_provider" id="email_service_provider">
    8594                <option value="">_____</option>
    86                 <option value="Aweber" <?php if($recordCrediantial['email_service_provider'] == "Aweber"){?> selected="selected" <?php } ?>>Aweber</option>
    87                 <option value="Sendeagle" <?php if($recordCrediantial['email_service_provider'] == "Sendeagle"){?> selected="selected" <?php } ?>>Send Eagle</option>
    88                 <option value="Infusionsoft" <?php if($recordCrediantial['email_service_provider'] == "Infusionsoft"){?> selected="selected" <?php } ?>>Infusionsoft/Keap</option>
    89                 <option value="GetResponse" <?php if($recordCrediantial['email_service_provider'] == "GetResponse"){?> selected="selected" <?php } ?>>GetResponse</option>
     95                <option value="Aweber" <?php if($apm_email_service_provider == "Aweber"){?> selected="selected" <?php } ?>>Aweber</option>
     96                <option value="Sendeagle" <?php if($apm_email_service_provider == "Sendeagle"){?> selected="selected" <?php } ?>>Send Eagle</option>
     97                <option value="Infusionsoft" <?php if($apm_email_service_provider == "Infusionsoft"){?> selected="selected" <?php } ?>>Infusionsoft/Keap</option>
     98                <option value="GetResponse" <?php if($apm_email_service_provider == "GetResponse"){?> selected="selected" <?php } ?>>GetResponse</option>
    9099            </select>
    91100
  • apm-child/trunk/admin/classes/ESP.Class.php

    r2745280 r2888254  
    3333                    "INSERT INTO `".APM_OPTIONS_TABLE."`
    3434                    (`first_name`,`last_name`, `email`, `jv_zoo_id`, `email_service_provider`, `clickbank_affiliate_nickname`, `thrivecart_affiliate_username`, `warriorplus_aff_id`, `last_updated_date`)
    35                     VALUES(%s, %s, %s, %s, %s, %s, %s, %s)",
     35                    VALUES(%s, %s, %s, %s, %s, %s, %s, %s, %s)",
    3636                    array($first_name, $last_name, $email, $jv_zoo_id, $email_service_provider, $clickbank_affiliate_nickname, $thrivecart_affiliate_username, $warriorplus_aff_id, $current_date));
    3737               
     
    126126        if($recordCrediantial['email_service_provider'] == "Sendeagle")
    127127        {
     128            $company_unique_id =  $sendeagle_company_name  = '';
     129           
    128130            if ($sendeagle_api_key == '')
    129131            {
  • apm-child/trunk/admin/list-aweber.php

    r2745280 r2888254  
    280280<?php
    281281
    282             if(count($resultFunnelList) > 0 && $show_aweber_list == true)
    283             {
    284 ?>
    285                 <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
    286                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
    287                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">AWeber List</label></div>
    288                 </div>
     282            if( is_array($resultFunnelList ))
     283            {
     284                if(count($resultFunnelList) > 0 && $show_aweber_list == true)
     285                {
     286?>
     287                    <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
     288                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
     289                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">AWeber List</label></div>
     290                    </div>
    289291<?php           
     292                }
    290293            }
    291294       
    292295       
    293296            $resultFunnelList = json_decode($resultFunnelList);
    294    
    295             if(count($resultFunnelList) > 0 && $show_aweber_list == true)
    296             {
    297                 foreach($resultFunnelList as $funnelList)
    298                 {
     297           
     298            if( is_array($resultFunnelList ))
     299            {
     300                if(count($resultFunnelList) > 0 && $show_aweber_list == true)
     301                {
     302                    foreach($resultFunnelList as $funnelList)
     303                    {
    299304?>         
    300                     <div style="width:100%; margin:0; padding:0; clear:both"></div>
    301                     <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:5px;">
    302                         <div style="width:49%; display:inline-block">
    303                          <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
    304                         </div>
    305                         <div style="width:49%; display:inline-block">
    306 <?php
    307                         if($show_aweber_list == true)
    308                         {
     305                        <div style="width:100%; margin:0; padding:0; clear:both"></div>
     306                        <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:5px;">
     307                            <div style="width:49%; display:inline-block">
     308                             <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
     309                            </div>
     310                            <div style="width:49%; display:inline-block">
     311<?php
     312                            if($show_aweber_list == true)
     313                            {
    309314?>         
    310                        
    311                            <select name="esp_list_id[]">
    312                                 <option value="">_____________</option>
    313 <?php
    314                             foreach ($account->lists as $list)
    315                             {
    316 ?>
    317                                 <option value="<?php echo $list->id?>"  <?php if(count($MappingFunnelIndexArr) > 0){ if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $list->id){?> selected="selected" <?php } }?>><?php echo esc_html($list->name)?></option>
    318 <?php
    319                             }
    320 ?>
    321315                           
    322                        </select>
    323 <?php
    324                     }
     316                               <select name="esp_list_id[]">
     317                                    <option value="">_____________</option>
     318<?php
     319                                foreach ($account->lists as $list)
     320                                {
     321?>
     322                                    <option value="<?php echo $list->id?>"  <?php if(count($MappingFunnelIndexArr) > 0){ if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $list->id){?> selected="selected" <?php } }?>><?php echo esc_html($list->name)?></option>
     323<?php
     324                                }
     325?>
     326                           
     327                           </select>
     328<?php
     329                            }
    325330?>
    326331                        </div>
    327332                 </div>
    328333<?php           
    329                 }   
     334                    }   
     335                }
    330336            }
    331337        }
     
    340346<?php
    341347
    342             if(count($resultFunnelList) > 0 && count($sendeagle_lists) > 0)
    343             {
    344 ?>
    345                 <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
    346                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
    347                     <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">SendEagle List</label></div>
    348                 </div>
     348            if( is_array( $resultFunnelList )  && is_array( $sendeagle_lists ) )
     349            {
     350                if(count($resultFunnelList) > 0 && count($sendeagle_lists) > 0)
     351                {
     352?>
     353                    <div style="width:100%; display:inline-block; margin-top:20px; margin-bottom:10px; max-width:785px">
     354                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">Funnel Name</label></div>
     355                        <div style="width:49%; display:inline-block;"><label style="font-weight:700; font-size:15px;">SendEagle List</label></div>
     356                    </div>
    349357<?php           
     358                }
    350359            }
    351360       
     
    353362            $resultFunnelList = json_decode($resultFunnelList);
    354363   
    355             if(count($resultFunnelList) > 0 && count($sendeagle_lists) > 0)
    356             {
    357                 foreach($resultFunnelList as $funnelList)
    358                 {
     364            if( is_array( $resultFunnelList ) && is_array( $sendeagle_lists ) )
     365            {
     366                if(count($resultFunnelList) > 0 && count($sendeagle_lists) > 0)
     367                {
     368                    foreach($resultFunnelList as $funnelList)
     369                    {
    359370?>         
    360                     <div style="width:100%; margin:0; padding:0; clear:both"></div>
    361                     <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:5px;">
    362                         <div style="width:49%; display:inline-block">
    363                         <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
    364                         </div>
    365                         <div style="width:49%; display:inline-block">
    366 <?php
    367                         if(count($sendeagle_lists) > 0)
    368                         {
     371                        <div style="width:100%; margin:0; padding:0; clear:both"></div>
     372                        <div style="width:100%; display:inline-block; max-width:785px; margin-bottom:5px;">
     373                            <div style="width:49%; display:inline-block">
     374                            <span><input type="hidden" name="funnel_id[]" value="<?php echo $funnelList->ID;?>" /> <?php echo $funnelList->funnel_name;?></span>
     375                            </div>
     376                            <div style="width:49%; display:inline-block">
     377<?php
     378                            if(count($sendeagle_lists) > 0)
     379                            {
    369380?>         
    370                            <select name="esp_list_id[]">
    371                                 <option value="">_____________</option>
    372 <?php
    373                                 foreach($sendeagle_lists as $sendeagle_list)
    374                                 {
    375 ?>
    376                                 <option value="<?php echo $sendeagle_list['list_unique_id']?>" <?php if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $sendeagle_list['list_unique_id']){?> selected="selected" <?php }?>><?php echo esc_html($sendeagle_list['list_name'])?></option>
    377 <?php
    378                                 }
    379 ?>
    380                             </select>
    381 <?php
    382                         }
    383 ?>
    384                         </div>
    385                 </div>
     381                               <select name="esp_list_id[]">
     382                                    <option value="">_____________</option>
     383<?php
     384                                    foreach($sendeagle_lists as $sendeagle_list)
     385                                    {
     386?>
     387                                    <option value="<?php echo $sendeagle_list['list_unique_id']?>" <?php if(@$MappingFunnelIndexArr[$funnelList->ID] ==  $sendeagle_list['list_unique_id']){?> selected="selected" <?php }?>><?php echo esc_html($sendeagle_list['list_name'])?></option>
     388<?php
     389                                    }
     390?>
     391                                </select>
     392<?php
     393                            }
     394?>
     395                            </div>
     396                    </div>
    386397<?php           
    387                 }   
     398                    }   
     399                }
    388400            }
    389401        }
  • apm-child/trunk/functions/session.php

    r2138159 r2888254  
    5858            $siteURLParent = str_replace("https://","", $siteURLParent);
    5959
    60             if(count($recordCrediantial) > 0 && strtolower($siteURLParent) == $siteURL)
     60            if(is_array( $recordCrediantial ))
    6161            {
    62                 $egSql = $wpdb->prepare("UPDATE `".APM_OPTIONS_TABLE."` SET `user_email_id` = %s WHERE ID = %d LIMIT 1", array(apm_get_session_value('apm_ses_user_login'), $recordCrediantial['ID']));
    63                 $wpdb->query($egSql);
     62                if(count($recordCrediantial) > 0 && strtolower($siteURLParent) == $siteURL)
     63                {
     64                    $egSql = $wpdb->prepare("UPDATE `".APM_OPTIONS_TABLE."` SET `user_email_id` = %s WHERE ID = %d LIMIT 1", array(apm_get_session_value('apm_ses_user_login'), $recordCrediantial['ID']));
     65                    $wpdb->query($egSql);
     66                }
    6467            }
    6568        }
     
    8487    }
    8588}
     89
    8690function apm_logout()
    8791{
     92    @setcookie( $_COOKIE['apm_logged_in'], '', time() - ( 15 * 60 ) );
     93    @setcookie( $_COOKIE['apm_ses_user_login'], '', time() - ( 15 * 60 ) );
    8894    unset($_COOKIE['apm_logged_in']);
    8995    unset($_COOKIE['apm_ses_user_login']);
    90     @setcookie( $_COOKIE['apm_logged_in'], '', time() - ( 15 * 60 ) );
    91     @setcookie( $_COOKIE['apm_ses_user_login'], '', time() - ( 15 * 60 ) );
    9296}
    9397
  • apm-child/trunk/mc-main.php

    r2761202 r2888254  
    99Author: Nick James
    1010E-mail: admin@nickjamesadmin.com
    11 Version: 3.2
     11Version: 3.3
    1212Author URI: http://www.pluginpixie.com
    1313*/
     
    1515//ini_set('display_errors',1);
    1616global $APM_SUBSCRIPTION_VER;
    17 $APM_SUBSCRIPTION_VER = "3.2";
     17$APM_SUBSCRIPTION_VER = "3.3";
    1818
    1919define('APM_SUBSCRIPTION_PATH', plugins_url().'/'. basename(dirname(__FILE__)).'/');
  • apm-child/trunk/readme.txt

    r2761202 r2888254  
    55Stable tag: 2.1.3
    66Requires PHP: 5.4
    7 Tested up to: 6.0
     7Tested up to: 6.1.1
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    207207*Version update
    208208
    209 3.1
     2093.2
    210210*Change optinMonster tag logic
    211211*Version update
     212
     2133.3
     214*Fixed Compatibility Issues
     215*Version update
Note: See TracChangeset for help on using the changeset viewer.