Changeset 2389702
- Timestamp:
- 09/28/2020 01:35:38 PM (5 years ago)
- Location:
- whmcs-bridge/trunk
- Files:
-
- 5 edited
-
bridge.init.php (modified) (3 diffs)
-
bridge.php (modified) (1 diff)
-
includes/http.class.php (modified) (1 diff)
-
includes/request.class.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
whmcs-bridge/trunk/bridge.init.php
r2389620 r2389702 4 4 if (!defined('WHMCS_BRIDGE_PAGE')) define('WHMCS_BRIDGE_PAGE','WHMCS'); 5 5 6 define("CC_WHMCS_BRIDGE_VERSION","5.10 ");6 define("CC_WHMCS_BRIDGE_VERSION","5.10.1"); 7 7 8 8 if (!defined('PHP_VERSION_ID')) { … … 54 54 add_action('admin_head','cc_whmcs_bridge_admin_header'); 55 55 add_action('admin_notices','cc_whmcs_admin_notices'); 56 57 add_action('wp_loaded', 'cc_whmcs_close_my_session', 30); 58 function cc_whmcs_close_my_session() { 59 if (session_status() == PHP_SESSION_ACTIVE) { 60 session_write_close(); 61 } 62 } 56 63 57 64 require_once(dirname(__FILE__) . '/includes/shared.inc.php'); … … 957 964 function cc_whmcs_bridge_init() { 958 965 ob_start(); 959 if (function_exists('cc_whmcsbridge_sso_session')) cc_whmcsbridge_sso_session(); 960 if (!session_id()) @session_start(); 966 if (function_exists('cc_whmcsbridge_sso_session')) 967 cc_whmcsbridge_sso_session(); 968 969 if (session_status() == PHP_SESSION_NONE) 970 session_start(); 971 961 972 register_sidebars(1,array('name'=>'WHMCS Top Page Widget Area','id'=>'whmcs-top-page',)); 962 //register_sidebars(1,array('name'=>'WHMCS Bottom Page Widget Area','id'=>'whmcs-top-page',)); 973 963 974 if(get_option('cc_whmcs_bridge_jquery')=='wp'){ 964 975 wp_enqueue_script(array('jquery','jquery-ui','jquery-ui-slider','jquery-ui-button')); 965 976 } 977 966 978 if (is_admin() && isset($_REQUEST['page']) && ($_REQUEST['page']=='cc-ce-bridge-cp')) { 967 979 wp_enqueue_script(array('jquery-ui-tabs')); -
whmcs-bridge/trunk/bridge.php
r2389620 r2389702 5 5 Description: WHMCS Bridge is a plugin that integrates the powerful WHMCS support and billing software with WordPress. 6 6 Author: globalprogramming 7 Version: 5.10 7 Version: 5.10.1 8 8 Author URI: http://i-plugins.com/ 9 9 */ -
whmcs-bridge/trunk/includes/http.class.php
r2389620 r2389702 300 300 $this->debug(0, 'Not cached, processing file - '.$url); 301 301 302 if (function_exists('cc_whmcsbridge_sso_session')) cc_whmcsbridge_sso_session(); 303 if (!session_id()) @session_start(); 302 if (function_exists('cc_whmcsbridge_sso_session')) 303 cc_whmcsbridge_sso_session(); 304 if (session_status() == PHP_SESSION_NONE) 305 session_start(); 304 306 305 307 $ch = curl_init(); // initialize curl handle -
whmcs-bridge/trunk/includes/request.class.php
r2062258 r2389702 271 271 $this->debug(0, 'Not cached, processing file - '.$url); 272 272 273 if (function_exists('cc_whmcsbridge_sso_session')) cc_whmcsbridge_sso_session(); 274 if (!session_id()) @session_start(); 275 276 //if (isset($_SESSION[$this->sid])) $this->debug(0, 'session:' . print_r($_SESSION[$this->sid], true)); 277 // $ch = curl_init(); // initialize curl handle 278 //echo '<br />call:'.$url;echo '<br />post='.print_r($this->post,true).'=<br />headers='.print_r($this->httpHeaders,true).'<br />'; 273 if (function_exists('cc_whmcsbridge_sso_session')) 274 cc_whmcsbridge_sso_session(); 275 if (session_status() == PHP_SESSION_NONE) 276 session_start(); 279 277 280 278 $http_args = array(); 281 279 282 280 $this->debug(0, 'HTTP Call: ' . $url . (is_array($this->post) ? ' with ' . print_r($this->post, true) : '')); 283 284 // curl_setopt($ch, CURLOPT_URL, $url); // set url to post to285 // curl_setopt($ch, CURLOPT_FAILONERROR, 1);286 // if ($withHeaders) curl_setopt($ch, CURLOPT_HEADER, 1);287 281 288 282 if (get_option("cc_whmcs_bridge_affiliate_id") && is_numeric(get_option("cc_whmcs_bridge_affiliate_id")) && get_option("cc_whmcs_bridge_affiliate_id") > 0) { -
whmcs-bridge/trunk/readme.txt
r2389620 r2389702 5 5 Requires at least: 5.0 6 6 Tested up to: 5.5.1 7 Stable tag: 5.10 7 Stable tag: 5.10.1 8 8 License: GPLv3 9 9 … … 77 77 78 78 == Changelog == 79 80 = 5.10.1 = 81 * Fix for false site health error report (curl / rest api problems) 79 82 80 83 = 5.10 =
Note: See TracChangeset
for help on using the changeset viewer.