Title: WordPress File Manager Hack
Last modified: January 13, 2017

---

# WordPress File Manager Hack

 *  [Joe](https://wordpress.org/support/users/joe/)
 * (@joe)
 * [22 years ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/)
 * This hack adds Morten Bojsen-Hansen’s excellent GPL File Manager “PhpFM” to WordPress
   1.2(sorry **1.2 only**). You can use it to upload/delete files, view images already
   uploaded, and make new folders from within WordPress. Give it a try and let me
   know what you think 🙂
    You can see a screenshot at [http://mudbomb.com](http://mudbomb.com)
   [Download WordPress File Manager](http://mudbomb.com/images/File-manager-hack.rar)

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/wordpress-file-manager-hack/?output_format=md)
[1](https://wordpress.org/support/topic/wordpress-file-manager-hack/?output_format=md)
2

 *  Thread Starter [Joe](https://wordpress.org/support/users/joe/)
 * (@joe)
 * [22 years ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-53916)
 * Sorry about that, zach. I just moved to a new server and I was shuffling a few
   things around. Files are back up now.
 *  [fairlyclever](https://wordpress.org/support/users/fairlyclever/)
 * (@fairlyclever)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54009)
 * I am getting the error “Admin has disabled this function”.
 *  [hugo](https://wordpress.org/support/users/hugo/)
 * (@hugo)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54012)
 * The files are again missing – only the .rar file is available and that can’t 
   be extracted with unrar under linux. Please only post hacks and plugins in either.
   zip or .tgz format, as other formats are not available on all plattforms.
 *  Anonymous
 * [21 years, 9 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54016)
 * If you get the error “Admin has disabled this function” you maybe don’t Allow
   file Uploads, under Options -> Miscellaneous.
 *  [brian873](https://wordpress.org/support/users/brian873/)
 * (@brian873)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54036)
 * Joe,
    All works well apart from the last step. “ 3. Open up wp-admin/menu.php
   and find the line that reads: array(__(‘Upload’), get_settings(‘fileupload_minlevel’),‘
   upload.php’), Just below that line, add this: array(__(‘Files’), get_settings(‘
   fileupload_minlevel’), ‘fm.php’), All done! *Note that because of the potential
   security risk of an open file manager, a WordPress User Level of at least 7 is
   required to use the file manager, regardless of the file settings in WordPress.“
   My menu.php does not contaian the line you say. File Uploads are working OK with
   the standard built function. Any Ideas ?
 *  [brian873](https://wordpress.org/support/users/brian873/)
 * (@brian873)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54037)
 * Hi Dotann,
    Still having problems. My menu.php file taken from wp-admin/menu.
   php looks like this… :::::: MENU.PHP :::::: <h1 id=”wphead”>[WordPress](http://wordpress.org)
   </h1> <ul id=”adminmenu”> <?php $menu = file(‘./menu.txt’); $continue = true;
   foreach ($menu as $item) { $class = ”; $item = trim($item); if (‘***’ == $item)
   $continue = false; if ($continue) { $item = explode(“\t”, $item); // 0 = user
   level, 1 = file, 2 = name $self = str_replace(‘/wp-admin/’, ”, $PHP_SELF); if((
   substr($self, -20) == substr($item[1], -20)) || ($parent_file && ($item[1] ==
   $parent_file))) $class = ‘ class=”current”‘; if ($user_level >= $item[0]) echo“\
   n\t
    - 
    - “;
       } } ?>
    - [My Profile](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/profile.php?output_format=md)
    - 
    - 
    - <h2><?php echo $title; ?></h2>
       ::::::::::::::::::::::::::::::::::::::::::::::::::::
      Cant work this one out hail hail
 *  [dotann](https://wordpress.org/support/users/dotann/)
 * (@dotann)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54038)
 * brian873: What version of WordPress are you using? My guess is that the array
   is probably contained in menu.txt.
 *  [brian873](https://wordpress.org/support/users/brian873/)
 * (@brian873)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54039)
 * ann,
    version 1.0.1 here is my menu.txt file 1 post.php Post 1 edit.php Edit 
   3 categories.php Categories 5 link-manager.php Links 3 users.php Users 4 options.
   php Options 4 templates.php Templates *** (Everything after the ‘***’ is a comment.)
   To add sections to the menu, use this syntax: the minimum level the user needs
   to access the section: between 0 and 10 +tab +the URL of the section’s file +
   tab +the title of this section

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/wordpress-file-manager-hack/?output_format=md)
[1](https://wordpress.org/support/topic/wordpress-file-manager-hack/?output_format=md)
2

The topic ‘WordPress File Manager Hack’ is closed to new replies.

 * 23 replies
 * 14 participants
 * Last reply from: [brian873](https://wordpress.org/support/users/brian873/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/wordpress-file-manager-hack/page/2/#post-54039)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
