Changeset 1880525
- Timestamp:
- 05/24/2018 08:00:20 AM (8 years ago)
- Location:
- blighty-explorer/trunk
- Files:
-
- 4 edited
-
admin-settings.php (modified) (5 diffs)
-
blighty-explorer.php (modified) (2 diffs)
-
includes/DropboxClient2.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blighty-explorer/trunk/admin-settings.php
r1878952 r1880525 17 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 18 19 v2.1. 719 v2.1.8 20 20 21 21 **/ … … 130 130 } 131 131 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>'; 133 133 } 134 134 ?> … … 160 160 echo '<font style="background-color: goldenrod; color: white;"> Not Connected </font><br /><br />'; 161 161 } else { 162 echo '<font style="background-color: firebrick; color: white;"> No access to Dropbox </font><br /><br />';162 echo '<font style="background-color: firebrick; color: white;"> cURL function not enabled </font><br /><br />'; 163 163 } 164 164 ?> … … 285 285 </ol> 286 286 (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 } ?> 288 291 </div> 289 292 </div> … … 467 470 <div class="xpostbox"> 468 471 <h3>Upload Options</h3> 469 <?php470 echo 'Max upload (as defined in php.ini): ' .bex_format_bytes(bex_max_upload_file_size());471 ?>472 472 <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 /> 474 476 <form method="post" action="options.php"> 475 477 <?php -
blighty-explorer/trunk/blighty-explorer.php
r1878952 r1880525 7 7 * to the website. It is also provides functionality to allow for uploads to a Dropbox folder. 8 8 * (C) 2015-2018 Chris Murfin (Blighty) 9 * Version: 2.1. 79 * Version: 2.1.8 10 10 * Author: Blighty 11 11 * Text Domain: blighty-explorer … … 36 36 37 37 define('BEX_PLUGIN_NAME', 'Blighty Explorer'); 38 define('BEX_PLUGIN_VERSION', '2.1. 7');38 define('BEX_PLUGIN_VERSION', '2.1.8'); 39 39 40 40 define('BEX_UPLOADS_FOLDER', '_bex_uploads'); -
blighty-explorer/trunk/includes/DropboxClient2.php
r1742857 r1880525 44 44 private $locale; 45 45 private $rootPath; 46 private $ blocked;46 private $useCurl; 47 47 48 48 function __construct ($app_params, $locale = "en") … … 57 57 $this->rootPath = empty($app_params['app_full_access']) ? "sandbox" : "dropbox"; 58 58 $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'); 67 61 } 68 62 … … 95 89 public function IsConnectionOK() 96 90 { 97 return ( !$this->blocked);91 return ($this->useCurl); 98 92 } 99 93 … … 215 209 private function CallAPI($path,$qs = null,$params = array(),$content = false, $contentData = null, $bearer = true) 216 210 { 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 />'; 219 213 return null; 220 214 } -
blighty-explorer/trunk/readme.txt
r1878952 r1880525 5 5 Requires at least: 4.1.1 6 6 Tested up to: 4.9.6 7 Stable tag: 2.1. 77 Stable tag: 2.1.8 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 57 57 58 58 == Changelog == 59 = Version 2.1.8 - May 24th, 2018 = 60 * Bug fix in detecting whether cURL function is enabled. 61 59 62 = Version 2.1.7 - May 22nd, 2018 = 60 63 * Added GDPR notices. … … 282 285 283 286 == 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.