Changeset 1949548
- Timestamp:
- 10/01/2018 08:22:06 AM (8 years ago)
- Location:
- blighty-explorer/trunk
- Files:
-
- 4 edited
-
admin-settings.php (modified) (3 diffs)
-
blighty-explorer.php (modified) (2 diffs)
-
folder.php (modified) (3 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blighty-explorer/trunk/admin-settings.php
r1880525 r1949548 17 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 18 19 v2. 1.819 v2.2.0 20 20 21 21 **/ … … 546 546 547 547 if (!$folderAuth) { 548 $newFolderAuth = true; 548 549 $folderAuth = array(); 549 550 } else { 551 $newFolderAuth = false; 550 552 $folderAuth = array_change_key_case($folderAuth, CASE_LOWER); 551 553 } … … 566 568 echo $folderAuth[$filePath ."/"]; 567 569 } else { 568 echo BEX_ANONYMOUS; 570 if ($newFolderAuth) { 571 echo BEX_ANONYMOUS; 572 } else { 573 echo BEX_ADMIN; 574 } 569 575 } 570 576 $i++; -
blighty-explorer/trunk/blighty-explorer.php
r1880525 r1949548 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.89 * Version: 2.2.0 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.8');38 define('BEX_PLUGIN_VERSION', '2.2.0'); 39 39 40 40 define('BEX_UPLOADS_FOLDER', '_bex_uploads'); 41 41 42 42 define('BEX_ANONYMOUS', 'All/Anonymous'); 43 define('BEX_ADMIN', 'Administrator'); 43 44 44 45 define('BEX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__FILE__))); -
blighty-explorer/trunk/folder.php
r1878952 r1949548 17 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 18 19 v2. 1.719 v2.2.0 20 20 21 21 **/ … … 321 321 foreach($folderAuth as $folder=>$auth) { 322 322 $folder = untrailingslashit($folder); 323 323 324 324 // find a match on this level or higher level... 325 if (strcasecmp(substr($efn ,0,strlen($folder)),$folder) == 0) {325 if (strcasecmp(substr($efn .'/',0,strlen($folder)+1),$folder.'/') == 0) { 326 326 $efnFound = true; 327 328 327 if ($auth == BEX_ANONYMOUS) { 329 328 return true; … … 340 339 341 340 if (!$efnFound) { 342 return true; 341 if ( in_array( strtolower(BEX_ADMIN), $userRoles ) ) { 342 return true; 343 } else { 344 return false; 345 } 343 346 } else { 344 347 return false; 345 }348 } 346 349 347 350 } -
blighty-explorer/trunk/readme.txt
r1880525 r1949548 4 4 Donate link: http://blighty.net/go/blighty-explorer-plugin-paypal-donation/ 5 5 Requires at least: 4.1.1 6 Tested up to: 4.9. 67 Stable tag: 2. 1.86 Tested up to: 4.9.8 7 Stable tag: 2.2.0 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.2.0 - Oct 1st, 2018 = 60 * Improve access control. 61 * Change default folder access to be "Administrator" role instead of anonymous (if access control being used). 62 59 63 = Version 2.1.8 - May 24th, 2018 = 60 64 * Bug fix in detecting whether cURL function is enabled. … … 285 289 286 290 == Upgrade Notice == 287 * 2. 1.8 - Bug fix in detecting whether cURL function is enabled.291 * 2.2.0 - Access control improvements.
Note: See TracChangeset
for help on using the changeset viewer.