Plugin Directory

Changeset 2389702


Ignore:
Timestamp:
09/28/2020 01:35:38 PM (5 years ago)
Author:
globalprogramming
Message:

5.10.1 trunk - see readme

Location:
whmcs-bridge/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • whmcs-bridge/trunk/bridge.init.php

    r2389620 r2389702  
    44if (!defined('WHMCS_BRIDGE_PAGE')) define('WHMCS_BRIDGE_PAGE','WHMCS');
    55
    6 define("CC_WHMCS_BRIDGE_VERSION","5.10");
     6define("CC_WHMCS_BRIDGE_VERSION","5.10.1");
    77
    88if (!defined('PHP_VERSION_ID')) {
     
    5454add_action('admin_head','cc_whmcs_bridge_admin_header');
    5555add_action('admin_notices','cc_whmcs_admin_notices');
     56
     57add_action('wp_loaded', 'cc_whmcs_close_my_session', 30);
     58function cc_whmcs_close_my_session() {
     59    if (session_status() == PHP_SESSION_ACTIVE) {
     60        session_write_close();
     61    }
     62}
    5663
    5764require_once(dirname(__FILE__) . '/includes/shared.inc.php');
     
    957964function cc_whmcs_bridge_init() {
    958965    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
    961972    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
    963974    if(get_option('cc_whmcs_bridge_jquery')=='wp'){
    964975        wp_enqueue_script(array('jquery','jquery-ui','jquery-ui-slider','jquery-ui-button'));
    965976    }
     977
    966978    if (is_admin() && isset($_REQUEST['page']) && ($_REQUEST['page']=='cc-ce-bridge-cp')) {
    967979        wp_enqueue_script(array('jquery-ui-tabs'));
  • whmcs-bridge/trunk/bridge.php

    r2389620 r2389702  
    55 Description: WHMCS Bridge is a plugin that integrates the powerful WHMCS support and billing software with WordPress.
    66 Author: globalprogramming
    7  Version: 5.10
     7 Version: 5.10.1
    88 Author URI: http://i-plugins.com/
    99 */
  • whmcs-bridge/trunk/includes/http.class.php

    r2389620 r2389702  
    300300        $this->debug(0, 'Not cached, processing file - '.$url);
    301301
    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();
    304306
    305307        $ch = curl_init();    // initialize curl handle
  • whmcs-bridge/trunk/includes/request.class.php

    r2062258 r2389702  
    271271        $this->debug(0, 'Not cached, processing file - '.$url);
    272272
    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();
    279277
    280278        $http_args = array();
    281279
    282280        $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 to
    285 //        curl_setopt($ch, CURLOPT_FAILONERROR, 1);
    286 //        if ($withHeaders) curl_setopt($ch, CURLOPT_HEADER, 1);
    287281
    288282        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  
    55Requires at least: 5.0
    66Tested up to: 5.5.1
    7 Stable tag: 5.10
     7Stable tag: 5.10.1
    88License: GPLv3
    99
     
    7777
    7878== Changelog ==
     79
     80= 5.10.1 =
     81* Fix for false site health error report (curl / rest api problems)
    7982
    8083= 5.10 =
Note: See TracChangeset for help on using the changeset viewer.