File Manager - Version 3.1.0

Version Description

Download this release

Release Info

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

Code changes from version 3.0.0 to 3.1.0

file-manager.php CHANGED
@@ -2,11 +2,12 @@
2
  /**
3
  *
4
  * Plugin Name: File Manager
5
- * Author Name: Aftabul Islam
6
- * Version: 3.0.0
 
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 any more. It is realy simple and easy to use.
10
  *
11
  * */
12
 
@@ -24,13 +25,16 @@ class FM extends FM_BootStart {
24
  $this->menu_data = array(
25
  'type' => 'menu',
26
  );
27
-
28
  // Adding Ajax
29
  $this->add_ajax('connector'); // elFinder ajax call
30
  $this->add_ajax('valid_directory'); // Checks if the directory is valid or not
31
 
32
  parent::__construct($name);
33
-
 
 
 
34
  }
35
 
36
  /**
@@ -40,7 +44,7 @@ class FM extends FM_BootStart {
40
  * */
41
  public function connector(){
42
 
43
- if(!defined('FILE_MANAGER_PREMIUM')){
44
  $file_operations = array( 'mkdir', 'mkfile', 'rename', 'duplicate', 'paste', 'ban', 'archive', 'extract', 'copy', 'cut', 'edit' );
45
  $mime_allowed = array('text/plain');
46
  $mime_denied = array('image');
@@ -74,6 +78,30 @@ class FM extends FM_BootStart {
74
 
75
  die();
76
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  }
79
 
2
  /**
3
  *
4
  * Plugin Name: File Manager
5
+ * Author: Aftabul Islam
6
+ * Author URI: www.giribaz.website
7
+ * Version: 3.1.0
8
  * Author Email: toaihimel@gmail.com
9
  * License: GPLv2
10
+ * 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.
11
  *
12
  * */
13
 
25
  $this->menu_data = array(
26
  'type' => 'menu',
27
  );
28
+
29
  // Adding Ajax
30
  $this->add_ajax('connector'); // elFinder ajax call
31
  $this->add_ajax('valid_directory'); // Checks if the directory is valid or not
32
 
33
  parent::__construct($name);
34
+
35
+ // Adding plugins page links
36
+ add_filter('plugin_action_links', array(&$this, 'plugin_page_links'), 10, 2);
37
+
38
  }
39
 
40
  /**
44
  * */
45
  public function connector(){
46
 
47
+ if( !defined('FILE_MANAGER_PREMIUM') && !defined('FILE_MANAGER_BACKEND') ){
48
  $file_operations = array( 'mkdir', 'mkfile', 'rename', 'duplicate', 'paste', 'ban', 'archive', 'extract', 'copy', 'cut', 'edit' );
49
  $mime_allowed = array('text/plain');
50
  $mime_denied = array('image');
78
 
79
  die();
80
  }
81
+
82
+ /**
83
+ *
84
+ * Adds plugin page links,
85
+ *
86
+ * */
87
+ public function plugin_page_links($links, $file){
88
+
89
+ static $this_plugin;
90
+
91
+ if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);
92
+
93
+ if ($file == $this_plugin){
94
+ array_unshift( $links, '<a target=\'blank\' href="http://www.giribaz.com/support/">'.__("Support", "file-manager").'</a>');
95
+
96
+ array_unshift( $links, '<a href="admin.php?page=file-manager_settings">'.__("File Manager", "file-manager").'</a>');
97
+
98
+ if( !defined('FILE_MANAGER_PREMIUM') && !defined('FILE_MANAGER_BACKEND') )
99
+ array_unshift( $links, '<a target=\'blank\' class="file-manager-admin-panel-pro" href="http://www.giribaz.com/wordpress-file-manager-plugin/" style="color: white; font-weight: bold; background-color: red; padding-right: 5px; padding-left: 5px; border-radius: 40%;">'.__("Pro", "file-manager").'</a>');
100
+
101
+ }
102
+
103
+ return $links;
104
+ }
105
 
106
  }
107
 
img/icon-24x24.png CHANGED
File without changes
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === File Manager ===
2
  Contributors: aihimel
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.5.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -15,11 +15,13 @@ Manage your file the way you like. You can upload, delete, copy, move, rename, c
15
  Most robust and powerful file manager for wordpress. You can upload, delete, copy, move, rename, archive, extract files. You don't need to worry about ftp any more. It is realy simple and easy to use.
16
  Just install the plugin following standard wordpress plugin install process and visit your dashbord. You will find a side menu called file manager. Just click on it to open file manager.
17
 
18
- > <strong>[Extend File Manager](http://www.giribaz.com/)</strong> with tons of features and priority support.
19
 
20
- <strong>[Documentation](http://www.giribaz.com/file-manager-documentation/)</strong> See detail documentation here.
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
 
@@ -68,7 +70,7 @@ Just install the plugin following standard wordpress plugin install process and
68
  + **Maximum Operations:** Support 8 types of file operation control.
69
  + **Ban Roles/Users:** Ban Users and Roles.
70
 
71
- **[Extend File Manager](http://www.giribaz.com/)**
72
 
73
  == Installation ==
74
 
1
  === File Manager ===
2
  Contributors: aihimel
3
+ Donate link: http://www.giribaz.website/
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.6.0
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
15
  Most robust and powerful file manager for wordpress. You can upload, delete, copy, move, rename, archive, extract files. You don't need to worry about ftp any more. It is realy simple and easy to use.
16
  Just install the plugin following standard wordpress plugin install process and visit your dashbord. You will find a side menu called file manager. Just click on it to open file manager.
17
 
18
+ > <strong>[Extend File Manager](http://www.giribaz.website/)</strong> with tons of features and priority support.
19
 
20
+ > <strong>toaihimel@gmail.com</strong> for contact.
21
 
22
+ <strong>[Documentation](http://www.giribaz.website/file-manager-documentation/)</strong> See detail documentation here.
23
+
24
+ <strong>[Get Express Support](http://www.giribaz.website/support/)</strong> Open a support ticket to get support quickly.
25
 
26
  = Key Features =
27
 
70
  + **Maximum Operations:** Support 8 types of file operation control.
71
  + **Ban Roles/Users:** Ban Users and Roles.
72
 
73
+ **[Extend File Manager](http://www.giribaz.website/)**
74
 
75
  == Installation ==
76
 
views/admin/footer.php CHANGED
@@ -35,6 +35,6 @@ defined('ABSPATH') or die();
35
 
36
  <?php if(!defined('FILE_MANAGER_PREMIUM')): ?>
37
  <div class='footer-sticky-button'>
38
- <a href='http://www.giribaz.com/' target='blank'>Get File Manager Pro</a>
39
  </div>
40
  <?php endif; ?>
35
 
36
  <?php if(!defined('FILE_MANAGER_PREMIUM')): ?>
37
  <div class='footer-sticky-button'>
38
+ <a href='http://www.giribaz.com/wordpress-file-manager-plugin/' target='blank'>Get File Manager Pro</a>
39
  </div>
40
  <?php endif; ?>
views/admin/sidebar.php CHANGED
File without changes