Plugin Directory

Changeset 1236059


Ignore:
Timestamp:
09/02/2015 06:52:47 AM (11 years ago)
Author:
solidearth
Message:

Fix sandbox API override bug

Location:
solid-earth-spring-api/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • solid-earth-spring-api/trunk/menu.php

    r1186905 r1236059  
    1414  if(isset($_POST["main"])) {
    1515    $apikey = $_POST["apikey"];
     16
     17    // YF 27-08-2015 Start.
     18    update_option( 'sesa_apikey', $apikey );
     19    // End.
     20
    1621    $sitename = $_POST["siteselect"];
    1722    $template = stripslashes($_POST["template"]);
     
    2429
    2530  $data = SPRINGAPIWP_get_data('spring.txt');
     31
     32  // YF 27-08-2015 Start.
     33  $sesa_apikey = get_option( 'sesa_apikey' );
     34  if ( $sesa_apikey ) {
     35    $data[0] = $sesa_apikey;
     36  }
     37  // End.
    2638
    2739  $default_template = '
     
    90102  if(isset($_POST["listing"])) {
    91103    $apikey = $_POST["apikey"];
     104
     105    // YF 27-08-2015 Start.
     106    update_option( 'sesa_apikey', $apikey );
     107    // End.
     108   
    92109    $sitename = $_POST["siteselect"];
    93110    $templatePost = stripslashes($_POST["template"]);
     
    102119
    103120  $data = SPRINGAPIWP_get_data('listingRender.txt');
     121
     122  // YF 27-08-2015 Start.
     123  $sesa_apikey = get_option( 'sesa_apikey' );
     124  if ( $sesa_apikey ) {
     125    $data[0] = $sesa_apikey;
     126  }
     127  // End.
    104128
    105129  $default_template = '
     
    231255  if(isset($_POST["quick"])) {
    232256    $apikey = $_POST["apikey"];
     257
     258    // YF 27-08-2015 Start.
     259    update_option( 'sesa_apikey', $apikey );
     260    // End.
     261   
    233262    $sitename = $_POST["siteselect"];
    234263    $template = stripslashes($_POST["template"]);
     
    241270
    242271  $data = SPRINGAPIWP_get_data('quickSearch.txt');
     272
     273  // YF 27-08-2015 Start.
     274  $sesa_apikey = get_option( 'sesa_apikey' );
     275  if ( $sesa_apikey ) {
     276    $data[0] = $sesa_apikey;
     277  }
     278  // End.
    243279
    244280  $default_template = '
     
    363399  if(isset($_POST["agent"])) {
    364400    $apikey = $_POST["apikey"];
     401
     402    // YF 27-08-2015 Start.
     403    update_option( 'sesa_apikey', $apikey );
     404    // End.
     405   
    365406    $sitename = $_POST["siteselect"];
    366407    $template = stripslashes($_POST["template"]);
     
    372413  }
    373414  $data = SPRINGAPIWP_get_data('agentPage.txt');
     415
     416  // YF 27-08-2015 Start.
     417  $sesa_apikey = get_option( 'sesa_apikey' );
     418  if ( $sesa_apikey ) {
     419    $data[0] = $sesa_apikey;
     420  }
     421  // End.
    374422
    375423  $default_template = '
  • solid-earth-spring-api/trunk/readme.txt

    r1200473 r1236059  
    55Requires at least: 3.0.1
    66Tested up to: 4.2.2
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7575= 1.3.1 =
    7676* Minor styling adjustments to the maps and modals
     77
     78= 1.3.2 =
     79* Fix sandbox API override bug
  • solid-earth-spring-api/trunk/shortcode.php

    r1200272 r1236059  
    88  $data = SPRINGAPIWP_get_data('spring.txt');
    99  $key = $data[0];
     10
     11  // YF 27-08-2015 Start.
     12  $sesa_apikey = get_option( 'sesa_apikey' );
     13  if ( $sesa_apikey ) {
     14    $key = $sesa_apikey;
     15  }
     16  // End.
     17 
    1018  $siteValue = $data[1];
    1119  $template = $data[2];
     
    6775    $data = SPRINGAPIWP_get_data('quickSearch.txt');
    6876    $key = $data[0];
     77
     78    // YF 27-08-2015 Start.
     79    $sesa_apikey = get_option( 'sesa_apikey' );
     80    if ( $sesa_apikey ) {
     81      $key = $sesa_apikey;
     82    }
     83    // End.
     84   
    6985    $siteValue = $data[1];
    7086    $template = $data[2];
     
    436452  $data = SPRINGAPIWP_get_data('listingRender.txt');
    437453  $key = $data[0];
     454
     455  // YF 27-08-2015 Start.
     456  $sesa_apikey = get_option( 'sesa_apikey' );
     457  if ( $sesa_apikey ) {
     458    $key = $sesa_apikey;
     459  }
     460  // End.
     461 
    438462  $siteValue = $data[1];
    439463  $template = $data[2];
     
    469493
    470494  $key = $data[0];
     495
     496  // YF 27-08-2015 Start.
     497  $sesa_apikey = get_option( 'sesa_apikey' );
     498  if ( $sesa_apikey ) {
     499    $key = $sesa_apikey;
     500  }
     501  // End.
     502 
    471503  $siteValue = $data[1];
    472504  $template = $data[2];
  • solid-earth-spring-api/trunk/spring-api.php

    r1200473 r1236059  
    99Description: Solid Earth SPRING API.
    1010Author: Solid Earth
    11 Version: 1.3.1
     11Version: 1.3.2
    1212Author URI: http://solidearth.com/
    1313*/
Note: See TracChangeset for help on using the changeset viewer.