Changeset 2465565
- Timestamp:
- 01/30/2021 02:54:33 PM (5 years ago)
- Location:
- secure-file-manager/trunk
- Files:
-
- 3 added
- 6 edited
-
assets/images/global.jpg (added)
-
assets/images/restrict-user.jpg (added)
-
assets/images/user-access.jpg (added)
-
includes/admin.php (modified) (4 diffs)
-
includes/assets.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
secure-file-manager.php (modified) (2 diffs)
-
vendor/elfinder/js/script.js (modified) (3 diffs)
-
vendor/elfinder/php/connector.minimal.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
secure-file-manager/trunk/includes/admin.php
r2453424 r2465565 30 30 'sfm_settings_display' 31 31 ); 32 33 global $sfm_access_control; 34 $sfm_access_control = add_submenu_page( 35 $menu_slug, 36 __( 'Access Control', 'secure-file-manager' ), 37 __( 'Access Control', 'secure-file-manager' ), 38 'administrator', 39 'sfm_access_control', 40 'sfm_access_control_display' 41 ); 42 } 43 44 add_filter( 'plugin_action_links_' . plugin_basename(SECURE_FILE_MANAGER_PLUGIN_FILE), 'secure_file_manager_settings_link' ); 45 function secure_file_manager_settings_link( $actions ){ 46 47 array_unshift( $actions, '<a href="'. esc_url( get_admin_url(null, 'admin.php?page=sfm_settings') ) .'">Settings</a>' ); 48 array_unshift( $actions, '<b><a href="'. esc_url( 'https://themexa.com/secure-file-manager-pro') .'" target="_blank">Get Pro</a></b>' ); 49 return $actions; 50 51 } 52 53 add_filter( 'plugin_row_meta', 'secure_file_manager_plugin_row_meta', 10, 2 ); 54 function secure_file_manager_plugin_row_meta( $links, $file ) { 55 if ( strpos( $file, 'secure-file-manager.php' ) !== false ) { 56 $new_links = array( 57 '<b><a href="' . esc_url( 'https://themexa.com/support' ) . '" target="_blank">Support</a></b>' 58 ); 59 $links = array_merge( $links, $new_links ); 60 } 61 return $links; 32 62 } 33 63 … … 64 94 <?php } 65 95 66 function sfm_ settings_display() {96 function sfm_access_control_display() { 67 97 68 98 if ( ! current_user_can( 'manage_options' ) ) { … … 78 108 <div class="jumbotron" style="background-image: url( <?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>assets/images/tinypixi_pluginman_head.png ); "> 79 109 <h1 class="display-3"><?php _e( 'Secure File Manager', 'secure-file-manager' ); ?></h1> 80 <p class="lead"><?php _e( ' Settings', 'bwpse' ); ?></p>110 <p class="lead"><?php _e( 'Access Control', 'bwpse' ); ?></p> 81 111 </div> 82 112 </div> … … 144 174 </div> 145 175 <?php } 176 177 function sfm_settings_display() { 178 179 if ( ! current_user_can( 'manage_options' ) ) { 180 wp_die( '<h1>Unauthorized Access. Please contact Site Administrator.</h1>' ); 181 } 182 183 ?> 184 185 <div class="tx_wrap sfm_wrapper"> 186 <div class="container"> 187 <div class="row"> 188 <div class="col-lg-12"> 189 <div class="jumbotron" style="background-image: url( <?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>assets/images/tinypixi_pluginman_head.png ); "> 190 <h1 class="display-3"><?php _e( 'Secure File Manager', 'secure-file-manager' ); ?></h1> 191 <p class="lead"><?php _e( 'Settings', 'bwpse' ); ?></p> 192 </div> 193 </div> 194 </div> 195 <div class="row alert alert-success mb-4"> 196 <div class="col-10 text-center pt-2"> 197 <h5>This is a demo screenshot of the pro features. To get the pro features, get Secure File Manager Pro.</h5> 198 </div> 199 <div class="col-2"> 200 <a href="https://themexa.com/secure-file-manager-pro" target="_blank"> 201 <button type="button" class="btn btn-primary">Get Pro</button> 202 </a> 203 </div> 204 </div> 205 <div class="row"> 206 <div class="col-12 my-4"> 207 <h4 class="my-4 text-center"><strong>Global Settings</strong></h4> 208 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>assets/images/global.jpg" class="img-fluid"> 209 </div> 210 </div> 211 <div class="row alert alert-success mb-4"> 212 <div class="col-10 text-center pt-2"> 213 <h5>This is a demo screenshot of the pro features. To get the pro features, get Secure File Manager Pro.</h5> 214 </div> 215 <div class="col-2"> 216 <a href="https://themexa.com/secure-file-manager-pro" target="_blank"> 217 <button type="button" class="btn btn-primary">Get Pro</button> 218 </a> 219 </div> 220 </div> 221 <div class="row"> 222 <div class="col-12 my-4"> 223 <h4 class="my-4 text-center"><strong>User Access</strong></h4> 224 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>assets/images/user-access.jpg" class="img-fluid"> 225 </div> 226 </div> 227 <div class="row alert alert-success mb-4"> 228 <div class="col-10 text-center pt-2"> 229 <h5>This is a demo screenshot of the pro features. To get the pro features, get Secure File Manager Pro.</h5> 230 </div> 231 <div class="col-2"> 232 <a href="https://themexa.com/secure-file-manager-pro" target="_blank"> 233 <button type="button" class="btn btn-primary">Get Pro</button> 234 </a> 235 </div> 236 </div> 237 <div class="row"> 238 <div class="col-12 my-4"> 239 <h4 class="my-4 text-center"><strong>Restrict User</strong></h4> 240 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ); ?>assets/images/restrict-user.jpg" class="img-fluid"> 241 </div> 242 </div> 243 <div class="row alert alert-success mb-4"> 244 <div class="col-10 text-center pt-2"> 245 <h5>This is a demo screenshot of the pro features. To get the pro features, get Secure File Manager Pro.</h5> 246 </div> 247 <div class="col-2"> 248 <a href="https://themexa.com/secure-file-manager-pro" target="_blank"> 249 <button type="button" class="btn btn-primary">Get Pro</button> 250 </a> 251 </div> 252 </div> 253 <div> 254 255 </div> 256 </div> 257 </div> 258 <?php } -
secure-file-manager/trunk/includes/assets.php
r2457478 r2465565 12 12 13 13 global $sfm_file_manager; 14 global $sfm_access_control; 14 15 global $sfm_settings; 15 16 16 if( $hook != $sfm_file_manager && $hook != $sfm_ settings) {17 if( $hook != $sfm_file_manager && $hook != $sfm_access_control && $hook != $sfm_settings) { 17 18 return; 18 19 } -
secure-file-manager/trunk/readme.txt
r2457478 r2465565 6 6 Tested up to: 5.6 7 7 Requires PHP: 7.1 8 Stable tag: 2. 8.28 Stable tag: 2.9 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 158 158 * Authenticated RCE Vulnerability Fixed 159 159 160 = 2.9 = 161 * File Manager Autoloader Required Once 162 * Settings and Other Plugin Links Added 163 160 164 == Upgrade Notice == 161 165 = 1.0 = -
secure-file-manager/trunk/secure-file-manager.php
r2457478 r2465565 3 3 /** 4 4 * @package Secure File Manager 5 * @version 2. 8.25 * @version 2.9 6 6 */ 7 7 8 8 /* 9 9 Plugin Name: Secure File Manager 10 Plugin URI: https:// www.themexa.com/project/wp-secure-file-manager10 Plugin URI: https://themexa.com/secure-file-manager-pro 11 11 Description: Most Beautiful and Secure WordPress File Manager 12 12 Author: Themexa 13 Version: 2. 8.213 Version: 2.9 14 14 Author URI: https://www.themexa.com 15 15 License: GPL2 … … 25 25 * Current plugin version. 26 26 */ 27 define( 'secure-file-manager', '2.8.2' ); 27 define( 'secure-file-manager', '2.9' ); 28 29 /** 30 * Secure File Manager Plugin File 31 */ 32 define( 'SECURE_FILE_MANAGER_PLUGIN_FILE', __FILE__ ); 28 33 29 34 /** -
secure-file-manager/trunk/vendor/elfinder/js/script.js
r2452008 r2465565 2 2 $(document).ready(function() { 3 3 $('#elfinder').elfinder( 4 // 1st Arg - options5 4 { 6 5 cssAutoLoad : false, // Disable CSS auto loading … … 8 7 url : elfScript.pluginsDirUrl + '/vendor/elfinder/php/connector.minimal.php', 9 8 customData : {_wpnonce: elfScript.sfmpNonceKey }, 10 // , lang: 'ru' // language (OPTIONAL)11 9 }, 12 // 2nd Arg - before boot up function13 10 function(fm, extraObj) { 14 11 // `init` event callback function … … 29 26 } 30 27 }); 31 // Optional for set document.title dynamically.32 28 var title = document.title; 33 29 fm.bind('open', function() { -
secure-file-manager/trunk/vendor/elfinder/php/connector.minimal.php
r2457478 r2465565 17 17 18 18 // elFinder autoload 19 require './autoload.php';19 require_once './autoload.php'; 20 20 // =============================================== 21 21 … … 44 44 file_put_contents('.debug.txt', $o, FILE_APPEND); 45 45 } 46 47 48 46 49 47 /**
Note: See TracChangeset
for help on using the changeset viewer.