WordPress.org

Ready to get started?Download WordPress

Forums

WordPress File Manager Hack (23 posts)

  1. NuclearMoose
    Member
    Posted 10 years ago #

    Joe,
    Could you please add this to the Hacks section of the Wiki?

  2. Joe
    Member
    Posted 10 years ago #

    I was actually just doing that as you posted ;-)

  3. jasontromm
    Member
    Posted 10 years ago #

    How do I unpack an .rar file on a Windows machine?
    I also use cygwin if there's a GNU command line utility to unpack .rar files.

  4. nsxpower
    Member
    Posted 10 years ago #

    Google for WinRAR

  5. Joe
    Member
    Posted 10 years ago #

    Oops, I use RAR so much that I sometimes forget that ZIP is still the "web standard" :-)
    Here's a link for a Zipped version:
    http://mudbomb.com/File-Manager-hack.zip

  6. gerard
    Member
    Posted 10 years ago #

    After installing FileManager I do get the menu, but the page starts with these errors:
    Warning: Cannot modify header information - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 6
    Warning: Cannot modify header information - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 7
    Warning: Cannot modify header information - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 8
    Warning: Cannot modify header information - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 9
    Warning: Cannot modify header information - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 10
    Warning: Cannot modify header information - headers already sent by (output started at d:\..\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 11
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wordpress\wp-admin\incl\header.inc.php on line 18
    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at d:\...\wp-admin\admin-header.php:55) in d:\...\wp-admin\incl\header.inc.php on line 18

  7. pstew21
    Member
    Posted 10 years ago #

    Getting the same errors as above...

  8. pstew21
    Member
    Posted 10 years ago #

    I commented out the /incl/header.inc.php lines as these would be handled by WP instead... Not sure how critical they are, they could be moved to the WP Header include, but it seems to work without them now...
    I am getting this error now though, not sure if its an error or just a warning:
    Use of undefined constant SID - assumed 'SID' from Line 20 in /incl/header.inc.php
    Everything so far works besides that error message.

  9. gerard
    Member
    Posted 10 years ago #

    1) the File Manager menu
    2) yes it is
    3) no, although I did try out given options like the # $session_save_path = "C:/WINDOWS/Temp/"; but with no result

  10. avileta
    Member
    Posted 10 years ago #

    I tried this but got several errors on the include lines (could not open). The path to the includes begins with ./ which I'm not familiar with. Using Unix, if the directory is one down should it contain a dot before the slash?

  11. emallinson
    Member
    Posted 10 years ago #

    i'm getting a parse error *snip*/wp-admin/menu.php on line 28
    instead of the menu. any ideas?
    also my first post, glad to be here.

  12. emallinson
    Member
    Posted 10 years ago #

    I figured out what caused the line 28 error in the menu.php - i was editing the file in cPanel and not through WordPress so i hadn't noticed the permissions were not set to 666. now i have the problem above. :)

  13. pstew21
    Member
    Posted 10 years ago #

    Works great now... BTW after edditing the files before, it worked fine... This now removes the warning SID line, and I'm sure gives some sort of additional support...

  14. gerard
    Member
    Posted 10 years ago #

    just uploaded the new files, works like a charm now. Thanks!!

  15. zach
    Member
    Posted 10 years ago #

    Does this thing still exist? None of the links work and I want it�bad.

  16. Joe
    Member
    Posted 10 years ago #

    Sorry about that, zach. I just moved to a new server and I was shuffling a few things around. Files are back up now.

  17. FairlyClever
    Member
    Posted 9 years ago #

    I am getting the error "Admin has disabled this function".

  18. hugo
    Member
    Posted 9 years ago #

    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.

  19. Anonymous
    Unregistered
    Posted 9 years ago #

    If you get the error "Admin has disabled this function" you maybe don't Allow file Uploads, under Options -> Miscellaneous.

  20. brian873
    Member
    Posted 9 years ago #

    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 ?

  21. brian873
    Member
    Posted 9 years ago #

    Hi Dotann,
    Still having problems. My menu.php file taken from wp-admin/menu.php looks like this...
    :::::: MENU.PHP ::::::
    <h1 id="wphead">WordPress</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

  22. {$item[2]}
  23. ";
    }
    }
    ?>

  24. My Profile
  25. ">View site
  26. <li class="last">/wp-login.php?action=logout">Logout (<?php echo stripslashes($user_nickname) ?>)

    <h2><?php echo $title; ?></h2>
    ::::::::::::::::::::::::::::::::::::::::::::::::::::
    Cant work this one out
    hail hail

  • dotann
    Member
    Posted 9 years ago #

    brian873: What version of WordPress are you using? My guess is that the array is probably contained in menu.txt.

  • brian873
    Member
    Posted 9 years ago #

    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

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.