Plugin Directory

Changeset 1949548


Ignore:
Timestamp:
10/01/2018 08:22:06 AM (8 years ago)
Author:
Blighty
Message:

2.2.0

Location:
blighty-explorer/trunk
Files:
4 edited

Legend:

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

    r1880525 r1949548  
    1717along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1818
    19 v2.1.8
     19v2.2.0
    2020
    2121**/
     
    546546
    547547                                    if (!$folderAuth) {
     548                                        $newFolderAuth = true;
    548549                                        $folderAuth = array();
    549550                                    } else {
     551                                        $newFolderAuth = false;
    550552                                        $folderAuth = array_change_key_case($folderAuth, CASE_LOWER);
    551553                                    }
     
    566568                                                echo $folderAuth[$filePath ."/"];
    567569                                            } else {
    568                                                 echo BEX_ANONYMOUS;
     570                                                if ($newFolderAuth) {
     571                                                    echo BEX_ANONYMOUS;
     572                                                } else {
     573                                                    echo BEX_ADMIN;
     574                                                }
    569575                                            }
    570576                                            $i++;
  • blighty-explorer/trunk/blighty-explorer.php

    r1880525 r1949548  
    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.8
     9 * Version: 2.2.0
    1010 * Author: Blighty
    1111 * Text Domain: blighty-explorer
     
    3636
    3737define('BEX_PLUGIN_NAME', 'Blighty Explorer');
    38 define('BEX_PLUGIN_VERSION', '2.1.8');
     38define('BEX_PLUGIN_VERSION', '2.2.0');
    3939
    4040define('BEX_UPLOADS_FOLDER', '_bex_uploads');
    4141
    4242define('BEX_ANONYMOUS', 'All/Anonymous');
     43define('BEX_ADMIN', 'Administrator');
    4344
    4445define('BEX_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . dirname(plugin_basename(__FILE__)));
  • blighty-explorer/trunk/folder.php

    r1878952 r1949548  
    1717along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1818
    19 v2.1.7
     19v2.2.0
    2020
    2121**/
     
    321321    foreach($folderAuth as $folder=>$auth) {
    322322        $folder = untrailingslashit($folder);
    323 
     323   
    324324        // 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) {
    326326            $efnFound = true;
    327 
    328327            if ($auth == BEX_ANONYMOUS) {
    329328                return true;
     
    340339
    341340    if (!$efnFound) {
    342         return true;
     341        if ( in_array( strtolower(BEX_ADMIN), $userRoles ) ) {
     342            return true;
     343        } else {
     344            return false;
     345        }
    343346    } else {
    344347        return false;
    345     }
     348    }
    346349
    347350}
  • blighty-explorer/trunk/readme.txt

    r1880525 r1949548  
    44Donate link: http://blighty.net/go/blighty-explorer-plugin-paypal-donation/
    55Requires at least: 4.1.1
    6 Tested up to: 4.9.6
    7 Stable tag: 2.1.8
     6Tested up to: 4.9.8
     7Stable tag: 2.2.0
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5757
    5858== 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
    5963= Version 2.1.8 - May 24th, 2018 =
    6064* Bug fix in detecting whether cURL function is enabled.
     
    285289
    286290== 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.