• I couldn’t find a file manager for files uploaded for WP 1.5 so I made this really quick. I was going to see if I could make this into a plugin but I’m not really sure how. Maybe someone could help me with that so that the menu.php file wouldn’t have to be edited.
    Also I’m not sure about any security risks with the way I wrote this. It uses the settings for uploading to determine who can access the page. I haven’t added any confirmations for deletion either. If anybody has any suggestions or any other comments let me know.

    click here to download.

    Instructions:
    1.Put upload-manager.php in the wp-admin folder.
    2.Find this line in menu.php:

    $submenu['themes.php'][10] = array(__('Theme Editor'), 8, 'theme-editor.php');

    After that line add this:

    if ( get_option('use_fileupload') ) {
    $submenu['upload.php'][5] = array(__('Upload'), get_settings('fileupload_minlevel'), 'upload.php');
    $submenu['upload.php'][10] = array(__('Upload Manager'), get_settings('fileupload_minlevel'), 'upload-manager.php');
    }

    3.Your done.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Modified version works fine for me ??

    Thread Starter skp

    (@skp)

    Thanks for the modifications avigell. I didn’t even think about adding a link to the file name. I didn’t have a chance to test this on a linux machine yet so your modifications helped out those with linux servers. I’ll upload the modified version on my server. I gave you credits in the readme.

    To schun,
    you can try adding a @ at the beginning of line 6 where it says…
    require_once(‘admin.php’);
    so that it reads
    @require_once(‘admin.php’);
    This should supress the warning messages. I know this isn’t the correct the way to fix this but it should take care of your warning messages. The file that avigell modified was the same file that I took out the whitespaces.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘My Upload Manager’ is closed to new replies.