Changeset 2634712
- Timestamp:
- 11/24/2021 11:38:42 AM (4 years ago)
- Location:
- immotoolbox-connect/trunk
- Files:
-
- 8 edited
-
admin/ITBConnectAdmin.php (modified) (2 diffs)
-
admin/partials/settings.php (modified) (1 diff)
-
immotoolbox-connect.php (modified) (2 diffs)
-
includes/ITBConnect.php (modified) (2 diffs)
-
includes/ITBConnectAPI.php (modified) (3 diffs)
-
public/ITBConnectPublic.php (modified) (5 diffs)
-
readme.md (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
immotoolbox-connect/trunk/admin/ITBConnectAdmin.php
r2049606 r2634712 92 92 $data['include_bootstrap_css'] = (bool)$_POST['itbconnect_include_bootstrap_css']; 93 93 } 94 if (isset($_POST['itbconnect_nocheck_ssl'])) { 95 $data['nocheck_ssl'] = (bool)$_POST['itbconnect_nocheck_ssl']; 96 } 94 97 update_option(ITBCONNECT_OPTION_NAME, $data); 95 98 flush_rewrite_rules(); … … 137 140 , 'accept: application/ld+json' 138 141 ]; 139 $response = ITBConnect::getRemoteUrl($url, [], [], $headers, 60 );142 $response = ITBConnect::getRemoteUrl($url, [], [], $headers, 60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 140 143 141 144 return $response?json_decode($response):null; -
immotoolbox-connect/trunk/admin/partials/settings.php
r2118203 r2634712 157 157 </select> 158 158 <p class="description" id="tagline-description"><?php _e( 'The WordPress page used to display client selection', 'itbconnect' ); ?></p> 159 </td> 160 </tr> 161 <tr> 162 <th scope="row"> 163 <label for="itbconnect_include_bootstrap_js"><?php _e( 'Check SSL certificate', 'itbconnect' ); ?></label> 164 </th> 165 <td> 166 <select name="itbconnect_nocheck_ssl" 167 id="itbconnect_nocheck_ssl" 168 class="regular-text" 169 > 170 <option value="0"><?php _e( 'Check SSL', 'itbconnect' ); ?> : <?php _e('Yes'); ?></option> 171 <option value="1" <?=isset($data['nocheck_ssl'])&&$data['nocheck_ssl']?"selected":""; ?>><?php _e( 'Check SSL', 'itbconnect' ); ?> : <?php _e('No'); ?></option> 172 </select> 173 <p class="description" id="tagline-description"><?php _e( 'You can set this option to "No" if the connection to ImmoToolBox fails (can happen on old server)' ); ?></p> 159 174 </td> 160 175 </tr> -
immotoolbox-connect/trunk/immotoolbox-connect.php
r2453844 r2634712 4 4 Plugin URI: https://www.immotoolbox.com/ 5 5 Description: Displays ImmoToolBox real estate listings in your website 6 Version: 1.2.2 06 Version: 1.2.21 7 7 Author: ZebraSoft Monaco 8 8 Author URI: https://www.zebrasoft.mc … … 24 24 along with ImmoToolBox Connect. If not, see https://www.gnu.org/licenses/gpl.html. 25 25 */ 26 define('ITBCONNECT_VERSION', '1.2.2 0');26 define('ITBCONNECT_VERSION', '1.2.21'); 27 27 28 28 /** -
immotoolbox-connect/trunk/includes/ITBConnect.php
r2028439 r2634712 94 94 } 95 95 96 static function getRemoteUrl($url, $get = null, $post = null, $headers = null, $cachetime = 300 )96 static function getRemoteUrl($url, $get = null, $post = null, $headers = null, $cachetime = 300, $nocheck_ssl = false) 97 97 { 98 98 global $wp_version; … … 111 111 ) 112 112 ); 113 if ($nocheck_ssl) { 114 $opts['ssl'] = array( 115 "verify_peer"=>false, 116 "verify_peer_name"=>false, 117 ); 118 } 113 119 $get['ori'] = $_SERVER['SERVER_NAME']; 114 120 $get['wp_version'] = $wp_version; -
immotoolbox-connect/trunk/includes/ITBConnectAPI.php
r2151810 r2634712 145 145 146 146 // print_r($get);die($apiurl); 147 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers );147 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers, 300, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 148 148 149 149 if ($response) { … … 254 254 ]; 255 255 $get['locale'] = current(explode('_', get_locale())); 256 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers, 60*60 );256 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 257 257 if ($response) { 258 258 $return = json_decode( $response, true ); … … 309 309 $get['page'] = get_query_var('npage', 1); 310 310 $return['get'] = $get; 311 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers, 60*60 );311 $response = ITBConnect::getRemoteUrl($apiurl, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 312 312 313 313 if ($response) { -
immotoolbox-connect/trunk/public/ITBConnectPublic.php
r2151823 r2634712 327 327 , 'accept: application/ld+json' 328 328 ]; 329 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60 );329 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 330 330 331 331 if ($response) { … … 643 643 ]; 644 644 $get['locale'] = current(explode('_', get_locale())); 645 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60 );645 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 646 646 647 647 if ($response) { … … 679 679 ]; 680 680 $get['locale'] = current(explode('_', get_locale())); 681 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60 );681 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 682 682 683 683 if ($response) { … … 709 709 $get['locale'] = current(explode('_', get_locale())); 710 710 $get['nbpp'] = 1000; 711 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60 );711 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 712 712 713 713 if ($response) { … … 730 730 $get['locale'] = current(explode('_', get_locale())); 731 731 $get['nbpp'] = 1000; 732 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60 );732 $response = ITBConnect::getRemoteUrl($url, $get, [], $headers, 60*60, isset($option['nocheck_ssl'])&&$option['nocheck_ssl']); 733 733 734 734 if ($response) { -
immotoolbox-connect/trunk/readme.md
r2453844 r2634712 4 4 Tags: immotoolbox, realestate, agency, property 5 5 Requires at least: 4.9 6 Tested up to: 5. 67 Requires PHP: 5. 68 Stable tag: 1.2.2 06 Tested up to: 5.9 7 Requires PHP: 5.9 8 Stable tag: 1.2.21 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html … … 45 45 * Sort by Type,Country, City 46 46 * Fix contact button on mobile 47 * Option to disable SSL verification 47 48 48 49 -
immotoolbox-connect/trunk/readme.txt
r2453844 r2634712 4 4 Tags: immotoolbox, realestate, agency, property 5 5 Requires at least: 4.9 6 Tested up to: 5. 67 Requires PHP: 5. 68 Stable tag: 1.2.2 06 Tested up to: 5.9 7 Requires PHP: 5.9 8 Stable tag: 1.2.21 9 9 License: GPL3 10 10 License URI: https://www.gnu.org/licenses/gpl.html … … 45 45 * Sort by Type,Country, City 46 46 * Fix contact button on mobile 47 * Option to disable SSL verification 47 48 48 49
Note: See TracChangeset
for help on using the changeset viewer.