File Manager - Version 4.1.3

Version Description

(19 February, 2017) =

  • Lower version of PHP error fixed
Download this release

Release Info

Developer aihimel
Plugin Icon 128x128 File Manager
Version 4.1.3
Comparing to
See all releases

Code changes from version 4.1.2 to 4.1.3

BootStart/BootStart.php CHANGED
@@ -255,7 +255,7 @@ abstract class FM_BootStart{
255
  'Permission System', // Menu title
256
  'manage_options', // User capabilities
257
  'file-manager-permission-system', // Menu Slug
258
- function(){ require_once( plugin_dir_path( __FILE__ ) . '..' . DS . 'views' . DS . 'admin' . DS . 'permission_system.php' );}
259
  );
260
  }
261
 
255
  'Permission System', // Menu title
256
  'manage_options', // User capabilities
257
  'file-manager-permission-system', // Menu Slug
258
+ create_function( '', 'include plugin_dir_path( __FILE__ ) . ".." . DS . "views" . DS . "admin" . DS . "permission_system.php";' )
259
  );
260
  }
261
 
BootStart/OptionsManager.php CHANGED
@@ -88,10 +88,21 @@ class FM_OptionsManager{
88
  update_option($this->prefix,array());
89
  $this->options = array();
90
 
91
- } else return $this->options;
92
 
93
  }
94
 
 
 
 
 
 
 
 
 
 
 
 
95
  /**
96
  *
97
  * This function sets the value value of an option.
88
  update_option($this->prefix,array());
89
  $this->options = array();
90
 
91
+ } else return $this->escaping_data( $this->options );
92
 
93
  }
94
 
95
+ /**
96
+ *
97
+ * @function escaping_data
98
+ * @param array $options
99
+ * Filters the options
100
+ *
101
+ * */
102
+ public function escaping_data($options){
103
+ return $options;
104
+ }
105
+
106
  /**
107
  *
108
  * This function sets the value value of an option.
file-manager.php CHANGED
@@ -3,7 +3,7 @@
3
  *
4
  * Plugin Name: File Manager
5
  * Author Name: Aftabul Islam
6
- * Version: 4.1.2
7
  * Author Email: toaihimel@gmail.com
8
  * License: GPLv2
9
  * Description: Manage your file the way you like. You can upload, delete, copy, move, rename, compress, extract files. You don't need to worry about ftp. It is realy simple and easy to use.
3
  *
4
  * Plugin Name: File Manager
5
  * Author Name: Aftabul Islam
6
+ * Version: 4.1.3
7
  * Author Email: toaihimel@gmail.com
8
  * License: GPLv2
9
  * Description: Manage your file the way you like. You can upload, delete, copy, move, rename, compress, extract files. You don't need to worry about ftp. It is realy simple and easy to use.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: aihimel, shovonchoudhury
3
  Donate link: http://www.giribaz.com/
4
  Tags: file manager, wordpress file manager, wp file manager, FTP, elfinder, file Browser, manage files, upload, delete, rename, copy, move, online file browser, remote file manager, drag and drop, folder upload
5
  Requires at least: 4.4.0
6
- Tested up to: 4.7.1
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -21,6 +21,8 @@ Just install the plugin following standard wordpress plugin install process and
21
 
22
  <strong>[Get Express Support](http://www.giribaz.com/support/)</strong> Open a support ticket to get support quickly.
23
 
 
 
24
  = Key Features =
25
 
26
  + Upload, Download and Delete operations
@@ -164,6 +166,10 @@ Yes, I will support the plugin.
164
 
165
  * Minor UI changes
166
 
167
- = 4.1.2 (5 January, 2016) =
168
 
169
  * Extra slash issue solved
 
 
 
 
3
  Donate link: http://www.giribaz.com/
4
  Tags: file manager, wordpress file manager, wp file manager, FTP, elfinder, file Browser, manage files, upload, delete, rename, copy, move, online file browser, remote file manager, drag and drop, folder upload
5
  Requires at least: 4.4.0
6
+ Tested up to: 4.7.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
21
 
22
  <strong>[Get Express Support](http://www.giribaz.com/support/)</strong> Open a support ticket to get support quickly.
23
 
24
+ [youtube https://www.youtube.com/watch?v=93aiNIWRLqY]
25
+
26
  = Key Features =
27
 
28
  + Upload, Download and Delete operations
166
 
167
  * Minor UI changes
168
 
169
+ = 4.1.2 (5 January, 2017) =
170
 
171
  * Extra slash issue solved
172
+
173
+ = 4.1.3 (19 February, 2017) =
174
+
175
+ * Lower version of PHP error fixed
views/admin/extension-themepack.php CHANGED
@@ -7,6 +7,7 @@
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
 
10
  ?>
11
  <div class='fm-extensions'>
12
 
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
10
+ global $FileManager;
11
  ?>
12
  <div class='fm-extensions'>
13
 
views/admin/extensions.php CHANGED
@@ -7,12 +7,13 @@
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
 
10
  ?>
11
  <div class='fm-extensions'>
12
 
13
  <h2>Extension</h2>
14
  <p>
15
- <h4><a href='<?= $this->giribaz_landing_page; ?>'>File Manager Pro</a></h4>
16
  <ul>
17
  <li>Use file manager on the frontend</li>
18
  <li>Users can perform file operations</li>
@@ -30,7 +31,7 @@ if( !defined( 'ABSPATH' ) ) die();
30
  </ul>
31
  </p>
32
  <br/>
33
- <a class='fm-call-toaction' href='<?= $this->giribaz_landing_page; ?>'>Get it now!</a>
34
  <br/>
35
  <br/>
36
  </div>
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
10
+ global $FileManager;
11
  ?>
12
  <div class='fm-extensions'>
13
 
14
  <h2>Extension</h2>
15
  <p>
16
+ <h4><a href='<?php $FileManager->giribaz_landing_page; ?>'>File Manager Pro</a></h4>
17
  <ul>
18
  <li>Use file manager on the frontend</li>
19
  <li>Users can perform file operations</li>
31
  </ul>
32
  </p>
33
  <br/>
34
+ <a class='fm-call-toaction' href='<?php $FileManager->giribaz_landing_page; ?>'>Get it now!</a>
35
  <br/>
36
  <br/>
37
  </div>
views/admin/files.php CHANGED
@@ -5,8 +5,8 @@
5
  *
6
  * */
7
  defined('ABSPATH') or die();
 
8
  if( !current_user_can('manage_options') ) die();
9
-
10
  ?>
11
 
12
  <div id='file-manager'>
@@ -28,7 +28,7 @@ jQuery(document).ready(function(){
28
 
29
  <?php
30
 
31
- if( isset( $this->options->options['file_manager_settings']['show_url_path'] ) && !empty( $this->options->options['file_manager_settings']['show_url_path']) && $this->options->options['file_manager_settings']['show_url_path'] == 'hide' ){
32
 
33
  ?>
34
  <style>
5
  *
6
  * */
7
  defined('ABSPATH') or die();
8
+ global $FileManager;
9
  if( !current_user_can('manage_options') ) die();
 
10
  ?>
11
 
12
  <div id='file-manager'>
28
 
29
  <?php
30
 
31
+ if( isset( $FileManager->options->options['file_manager_settings']['show_url_path'] ) && !empty( $FileManager->options->options['file_manager_settings']['show_url_path']) && $FileManager->options->options['file_manager_settings']['show_url_path'] == 'hide' ){
32
 
33
  ?>
34
  <style>
views/admin/footer.php CHANGED
@@ -6,7 +6,7 @@
6
  * */
7
  // Security check
8
  if( !defined('ABSPATH') ) die();
9
-
10
  ?>
11
  <div class='fm-footer'>
12
 
@@ -15,9 +15,9 @@ if( !defined('ABSPATH') ) die();
15
  <li><a href='https://wordpress.org/plugins/file-manager/changelog/'>Changelog</a></li>
16
  <li><a href='http://giribaz.com/contacts/'>Contacts</a></li>
17
  <li><a href='http://giribaz.com/documentations/'>Docs</a></li>
18
- <li><a href='<?= $this->feedback_page; ?>'>Review</a></li>
19
- <li><a href='<?= $this->support_page; ?>'>Help & Support</a></li>
20
- <li><a href='<?= $this->site; ?>'>Giribaz</a></li>
21
  </ul>
22
 
23
  </div>
6
  * */
7
  // Security check
8
  if( !defined('ABSPATH') ) die();
9
+ global $FileManager;
10
  ?>
11
  <div class='fm-footer'>
12
 
15
  <li><a href='https://wordpress.org/plugins/file-manager/changelog/'>Changelog</a></li>
16
  <li><a href='http://giribaz.com/contacts/'>Contacts</a></li>
17
  <li><a href='http://giribaz.com/documentations/'>Docs</a></li>
18
+ <li><a href='<?= $FileManager->feedback_page; ?>'>Review</a></li>
19
+ <li><a href='<?= $FileManager->support_page; ?>'>Help & Support</a></li>
20
+ <li><a href='<?= $FileManager->site; ?>'>Giribaz</a></li>
21
  </ul>
22
 
23
  </div>
views/admin/header.php CHANGED
@@ -7,15 +7,16 @@
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
 
10
  ?>
11
  <div class='fm-header'>
12
 
13
- <h1><img class='fm-logo' src='<?php echo plugin_dir_url(__FILE__) . '../..' . DS . 'img' . DS . 'icon-128x128.png';?>'><?= $this->name; ?></h1>
14
 
15
  <ul>
16
- <li><a href='<?= $this->support_page; ?>'>Need help?</a></li>
17
- <li><a href='<?= $this->feedback_page; ?>'>Leave us a feedback</a></li>
18
- <li class='fm-marketing'><a href='<?= $this->giribaz_landing_page; ?>'>Extend</a></li>
19
  </ul>
20
 
21
  </div>
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
10
+ global $FileManager;
11
  ?>
12
  <div class='fm-header'>
13
 
14
+ <h1><img class='fm-logo' src='<?php echo plugin_dir_url(__FILE__) . '../..' . DS . 'img' . DS . 'icon-128x128.png';?>'><?= $FileManager->name; ?></h1>
15
 
16
  <ul>
17
+ <li><a href='<?= $FileManager->support_page; ?>'>Need help?</a></li>
18
+ <li><a href='<?= $FileManager->feedback_page; ?>'>Leave us a feedback</a></li>
19
+ <li class='fm-marketing'><a href='<?= $FileManager->giribaz_landing_page; ?>'>Extend</a></li>
20
  </ul>
21
 
22
  </div>
views/admin/index.php CHANGED
@@ -7,11 +7,12 @@
7
 
8
  // Security check
9
  if( !defined('ABSPATH') ) die();
 
10
  ?>
11
 
12
  <?php
13
  // Loading admin assets
14
- $this->admin_assets();
15
 
16
  ?>
17
 
7
 
8
  // Security check
9
  if( !defined('ABSPATH') ) die();
10
+ global $FileManager;
11
  ?>
12
 
13
  <?php
14
  // Loading admin assets
15
+ $FileManager->admin_assets();
16
 
17
  ?>
18
 
views/admin/permission_system.php CHANGED
@@ -7,11 +7,12 @@
7
 
8
  // Security check
9
  if( !defined('ABSPATH') ) die();
 
10
  ?>
11
-
12
  <?php
13
  // Loading admin assets
14
- $this->admin_assets();
 
15
 
16
  ?>
17
 
7
 
8
  // Security check
9
  if( !defined('ABSPATH') ) die();
10
+ global $FileManager;
11
  ?>
 
12
  <?php
13
  // Loading admin assets
14
+ global $FileManager;
15
+ $FileManager->admin_assets();
16
 
17
  ?>
18
 
views/admin/sales.php CHANGED
@@ -7,6 +7,7 @@
7
 
8
  // Security Check
9
  if( !defined('ABSPATH') ) die();
 
10
  ?>
11
 
12
  <div class='fm-donate'>
7
 
8
  // Security Check
9
  if( !defined('ABSPATH') ) die();
10
+ global $FileManager;
11
  ?>
12
 
13
  <div class='fm-donate'>
views/admin/settings.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php defined('ABSPATH') or die(); ?>
 
 
2
 
3
- <?php
 
4
 
5
- // Settings processing
6
- if( isset( $_POST ) && !empty( $_POST ) ){
7
-
8
- $this->options->options['file_manager_settings'] = $_POST;
9
-
10
- }
11
-
12
- //~ $this->pr($this->options->options['file_manager_settings']);
13
-
14
- $admin_page_url = admin_url()."admin.php?page={$this->prefix}";
15
-
16
- if( !isset($_GET['sub_page']) || empty($_GET['sub_page']) ) $_GET['sub_page'] = 'files';
17
- // Escaping data
18
- $_GET['sub_page'] = preg_replace( "/[<>#$%]/", "", $_GET['sub_page']);
19
- // Sanitizing data
20
- $_GET['sub_page'] = filter_var($_GET['sub_page'], FILTER_SANITIZE_STRING);
21
-
22
- /**
23
- *
24
- * array(
25
- * 'page_slug' => array('page_slug', 'page_path', 'name')
26
- * )
27
- *
28
- * */
29
-
30
- $admin_menu_pages = array(
31
- 'files' => array( 'files', ABSPATH . 'wp-content' . DS . 'plugins' . DS . 'file-manager' . DS . 'views' . DS . 'admin' . DS . 'files.php', 'Files'),
32
- );
33
-
34
- $admin_menu_pages = apply_filters('fm_admin_menu_sub_pages', $admin_menu_pages);
35
 
36
- // Enqueing admin assets
37
- $this->admin_assets();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ?>
39
  <?php require_once( 'header.php' ); ?>
40
  <div class='fm-container'>
@@ -52,10 +52,10 @@
52
  <td><h4>URL and Path</h4></td>
53
  <td>
54
  <label for='show_url_path_id'> Show </label>
55
- <input type='radio' name='show_url_path' id='show_url_path_id' value='show' <?php if( isset( $this->options->options['file_manager_settings']['show_url_path'] ) && !empty( $this->options->options['file_manager_settings']['show_url_path'] ) && $this->options->options['file_manager_settings']['show_url_path'] == 'show' ) echo 'checked'; ?>/>
56
 
57
  <label for='hide_url_path_id'> Hide </label>
58
- <input type='radio' name='show_url_path' id='hide_url_path_id' value='hide' <?php if( isset( $this->options->options['file_manager_settings']['show_url_path'] ) && !empty( $this->options->options['file_manager_settings']['show_url_path'] ) && $this->options->options['file_manager_settings']['show_url_path'] == 'hide' ) echo 'checked'; ?>/>
59
  </td>
60
  </tr>
61
  <tr>
1
+ <?php
2
+ if(!defined('ABSPATH')) die();
3
+ global $FileManager;
4
 
5
+ // Settings processing
6
+ if( isset( $_POST ) && !empty( $_POST ) ){
7
 
8
+ $FileManager->options->options['file_manager_settings'] = $_POST;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
+ }
11
+
12
+ //~ $FileManager->pr($FileManager->options->options['file_manager_settings']);
13
+
14
+ $admin_page_url = admin_url()."admin.php?page={$FileManager->prefix}";
15
+
16
+ if( !isset($_GET['sub_page']) || empty($_GET['sub_page']) ) $_GET['sub_page'] = 'files';
17
+ // Escaping data
18
+ $_GET['sub_page'] = preg_replace( "/[<>#$%]/", "", $_GET['sub_page']);
19
+ // Sanitizing data
20
+ $_GET['sub_page'] = filter_var($_GET['sub_page'], FILTER_SANITIZE_STRING);
21
+
22
+ /**
23
+ *
24
+ * array(
25
+ * 'page_slug' => array('page_slug', 'page_path', 'name')
26
+ * )
27
+ *
28
+ * */
29
+
30
+ $admin_menu_pages = array(
31
+ 'files' => array( 'files', ABSPATH . 'wp-content' . DS . 'plugins' . DS . 'file-manager' . DS . 'views' . DS . 'admin' . DS . 'files.php', 'Files'),
32
+ );
33
+
34
+ $admin_menu_pages = apply_filters('fm_admin_menu_sub_pages', $admin_menu_pages);
35
+
36
+ // Enqueing admin assets
37
+ $FileManager->admin_assets();
38
  ?>
39
  <?php require_once( 'header.php' ); ?>
40
  <div class='fm-container'>
52
  <td><h4>URL and Path</h4></td>
53
  <td>
54
  <label for='show_url_path_id'> Show </label>
55
+ <input type='radio' name='show_url_path' id='show_url_path_id' value='show' <?php if( isset( $FileManager->options->options['file_manager_settings']['show_url_path'] ) && !empty( $FileManager->options->options['file_manager_settings']['show_url_path'] ) && $FileManager->options->options['file_manager_settings']['show_url_path'] == 'show' ) echo 'checked'; ?>/>
56
 
57
  <label for='hide_url_path_id'> Hide </label>
58
+ <input type='radio' name='show_url_path' id='hide_url_path_id' value='hide' <?php if( isset( $FileManager->options->options['file_manager_settings']['show_url_path'] ) && !empty( $FileManager->options->options['file_manager_settings']['show_url_path'] ) && $FileManager->options->options['file_manager_settings']['show_url_path'] == 'hide' ) echo 'checked'; ?>/>
59
  </td>
60
  </tr>
61
  <tr>
views/admin/sidebar.php CHANGED
@@ -5,7 +5,7 @@
5
  *
6
  * */
7
  if( !defined('ABSPATH') ) die();
8
-
9
  ?>
10
 
11
  <div class='col-sidebar'>
5
  *
6
  * */
7
  if( !defined('ABSPATH') ) die();
8
+ global $FileManager;
9
  ?>
10
 
11
  <div class='col-sidebar'>
views/admin/site-backup.php CHANGED
@@ -7,7 +7,8 @@
7
 
8
  // Security Check
9
  if( !defined('ABSPATH') ) die();
10
- $this->admin_assets();
 
11
  ?>
12
  <?php require_once( 'header.php' ); ?>
13
 
7
 
8
  // Security Check
9
  if( !defined('ABSPATH') ) die();
10
+ global $FileManager;
11
+ $FileManager->admin_assets();
12
  ?>
13
  <?php require_once( 'header.php' ); ?>
14
 
views/admin/utility.php CHANGED
@@ -7,6 +7,7 @@
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
 
10
  ?>
11
  <?php
12
 
7
 
8
  // Security Check
9
  if( !defined( 'ABSPATH' ) ) die();
10
+ global $FileManager;
11
  ?>
12
  <?php
13