Plugin Directory

Changeset 1880525


Ignore:
Timestamp:
05/24/2018 08:00:20 AM (8 years ago)
Author:
Blighty
Message:

2.1.8

Location:
blighty-explorer/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • blighty-explorer/trunk/admin-settings.php

    r1878952 r1880525  
    1717along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1818
    19 v2.1.7
     19v2.1.8
    2020
    2121**/
     
    130130        }
    131131        if (!$dropbox->IsConnectionOK()) {
    132             echo '<div class="error"><p>Unable to reach the Dropbox service. Is your server/web host possibly blocking access?</p></div>';
     132            echo '<div class="error"><p>Unable to use cURL function. Check your hosting configuration.</p></div>';
    133133        }
    134134        ?>
     
    160160                                    echo '<font style="background-color: goldenrod; color: white;">&nbsp;Not Connected&nbsp;</font><br /><br />';
    161161                                } else {
    162                                     echo '<font style="background-color: firebrick; color: white;">&nbsp;No access to Dropbox&nbsp;</font><br /><br />';
     162                                    echo '<font style="background-color: firebrick; color: white;">&nbsp;cURL function not enabled&nbsp;</font><br /><br />';
    163163                                }
    164164                                ?>
     
    285285                                    </ol>
    286286                                    (If it doesn't already exist, a subfolder called <b>Blighty Explorer</b> will be created in your <b>Apps</b> folder within Dropbox.)<br /><br />
    287                                 <?php } ?>
     287                                <?php
     288                                } else {
     289                                    echo 'Not connected.<br /><br />';
     290                                } ?>
    288291                            </div>
    289292                        </div>
     
    467470                        <div class="xpostbox">
    468471                            <h3>Upload Options</h3>
    469                             <?php
    470                                 echo 'Max upload (as defined in php.ini): ' .bex_format_bytes(bex_max_upload_file_size());
    471                             ?>
    472472                            <div class="inside">
    473                                 <?php if ($dropbox->IsAuthorized()) { ?>
     473                                <?php if ($dropbox->IsAuthorized()) {
     474                                    echo 'Max upload (as defined in php.ini): ' .bex_format_bytes(bex_max_upload_file_size());
     475                                ?><br /><br />
    474476                                <form method="post" action="options.php">
    475477                                <?php
  • blighty-explorer/trunk/blighty-explorer.php

    r1878952 r1880525  
    77 * to the website. It is also provides functionality to allow for uploads to a Dropbox folder.
    88 * (C) 2015-2018 Chris Murfin (Blighty)
    9  * Version: 2.1.7
     9 * Version: 2.1.8
    1010 * Author: Blighty
    1111 * Text Domain: blighty-explorer
     
    3636
    3737define('BEX_PLUGIN_NAME', 'Blighty Explorer');
    38 define('BEX_PLUGIN_VERSION', '2.1.7');
     38define('BEX_PLUGIN_VERSION', '2.1.8');
    3939
    4040define('BEX_UPLOADS_FOLDER', '_bex_uploads');
  • blighty-explorer/trunk/includes/DropboxClient2.php

    r1742857 r1880525  
    4444    private $locale;
    4545    private $rootPath;
    46     private $blocked;
     46    private $useCurl;
    4747   
    4848    function __construct ($app_params, $locale = "en")
     
    5757        $this->rootPath = empty($app_params['app_full_access']) ? "sandbox" : "dropbox";
    5858        $this->accessToken = null;
    59         $this->code = null;     
    60         $this->blocked = true;
    61        
    62         $ch = curl_init(self::API_URL);
    63         curl_exec($ch);
    64         if (curl_error($ch) == '') {
    65             $this->blocked = false;
    66         }
     59        $this->code = null;             
     60        $this->useCurl = function_exists('curl_init');
    6761    }
    6862
     
    9589    public function IsConnectionOK()
    9690    {
    97         return (!$this->blocked);
     91        return ($this->useCurl);
    9892    }
    9993
     
    215209    private function CallAPI($path,$qs = null,$params = array(),$content = false, $contentData = null, $bearer = true)
    216210    {
    217         if ($this->blocked) {
    218             echo 'Unable to reach the Dropbox service. Is your server/web host possibly blocking access?<br />';
     211        if (!$this->useCurl) {
     212            echo 'Unable to use cURL function.<br />';
    219213            return null;
    220214        }
  • blighty-explorer/trunk/readme.txt

    r1878952 r1880525  
    55Requires at least: 4.1.1
    66Tested up to: 4.9.6
    7 Stable tag: 2.1.7
     7Stable tag: 2.1.8
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5757
    5858== Changelog ==
     59= Version 2.1.8 - May 24th, 2018 =
     60* Bug fix in detecting whether cURL function is enabled.
     61
    5962= Version 2.1.7 - May 22nd, 2018 =
    6063* Added GDPR notices.
     
    282285
    283286== Upgrade Notice ==
    284 * 2.1.7 - GDPR and usability upgrades.
     287* 2.1.8 - Bug fix in detecting whether cURL function is enabled.
Note: See TracChangeset for help on using the changeset viewer.