PDA

View Full Version : Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images


Erwin
07 Jan 2004, 03:03
vB Admin CP File Manager (FTP) 1.2 - a File Manager/ FTP client for vBulletin 3.x.x
vB Admin CP Integration by Erwin Loh

Updated for vB 3.0.7
Totally revised with new code
Previously called vB FTP

UPDATED: This replaces vB FTP 1.0. The whole hack is changed - to install, you need to basically uninstall the old vB FTP hack and reinstall this. It's based on an updated version of what the old hack was based on but I've changed the directories, made changes to most files to make it work with vBulletin and added a search feature to the edit panel.

Improvements: Eliminated need for a /tmp/ directory. Also, you can now select different languages - refer to config file for more information.

It's possible to run both the old and the new together as I've renamed the files.

I suggest using the new version as it fixes a few old bugs and is much better. :)

Have you ever wanted to edit, download or upload files to your server or edit one of your forum PHP files, but have no access to an FTP client?

Well, this is the hack for you. It basically adds a file manager/ secure FTP interface to your vB Admin CP. You can edit, delete, download, upload, create, or rename PHP files, OR do the same for directories, all from within the comfort of your Admin CP through your browser.

Use this hack to install hacks on the fly. ;)

Features
--------------

1) Integrated into vB Admin CP - uses Admin CP cp.css style
2) Create, delete, rename directories
3) Create, delete, rename, edit, upload or download files
4) File Editor with Search functions (feature added by Erwin)
5) View, Zoom In/ Zoom Out with GIF/ JPG files
6) Different icons for different types of file (configurable)
7) Ability to password protect the vB File Manager file (configurable)
8) FTP functions straight from within your Admin CP!!!
9) Select other languages!

Installation
-----------------

YOU MUST FOLLOW ALL THESE STEPS FOR THIS TO WORK PROPERLY! NOTE: This hack requires PHP 4.1.0 installed or better.

Instructions in the "Installation.txt" file of the attachment. It's easy - uploading 1 file and 2 directories to your admin directory, and then editing your admin/index.php file so you can link to the filemanager.php file. :)

1. You need to edit /admincp/vbfm/config.inc.php to point to your forum's absolute directory server path for this hack to work properly.

2. Files that are to be edited or directories where you want to upload need to be chmod 0777.

Once this is installed, you can just click on the "vB File Manager" link in your Admin CP on the left column underneath your "vBulletin Options" to access this.

Update
--------

Version 1.1 - Fixed a path bug in filebrowser.inc.php
Version 1.2 - Corrected spelling mistake in footer.inc.php, updated version number in config.inc.php

Screenshots
----------------------------------------------

1. Screenshot: Main Page
--------------------------------

2. Screenshot: Editing PHP File
--------------------------------------

3. Screenshot: Viewing GIF/ JPG file
--------------------------------------------

4. Screenshot: Downloading file
----------------------------------------

5. Screenshot:Uploading file
-------------------------------------

If you like this, please click the INSTALL link at the bottom of the thread, so that I can send you updates! :)

Enjoy!

Dr. Erwin Loh

Erwin
07 Jan 2004, 03:11
Screenshots updated for vB 3.0.6. ;)

MGM
07 Jan 2004, 03:20
lmao! vB2, vB3... whats the different, right? :D

very nice hack! I would use this myself, but im too in love with FlashFXP :p

/me clicks install anyways

w00t! first post to what will probably be a big hack :D

MGM out

Buczilla
07 Jan 2004, 03:46
Wow, you can edit the files straight in the ACP. I never even thought of that :). This is fantastic Erwin, I will install when vB3 goes gold.......will be able to install hacks and everything straight from the Admin CP!!!!

Fantastic Work!

hume
07 Jan 2004, 06:18
wow this mod is very useful
thz very much

yxboom
07 Jan 2004, 06:21
Great job we have this installed on our vb2 board. The vb2 version that is

HiDeo
07 Jan 2004, 06:41
What's a great hack !
Thx very much !

MindTrix
07 Jan 2004, 06:44
OMG now this is surely more than a hack :) Amazing nice one Erwin and thanks

SnowBot
07 Jan 2004, 08:02
The man does it again :)

Holidazed
07 Jan 2004, 21:59
Amazing hack. Good job.

~clicks install

Gio Takahashi
09 Jan 2004, 21:43
this will no doubt be extremely useful. Thanks.

oh and one more thing: *sent via PM for security reason.

* Gio Takahashi clicks install.

albibak
09 Jan 2004, 22:09
Great hack, thx ;)
I installed it on RC2 and it works :)

Erwin
10 Jan 2004, 00:07
this will no doubt be extremely useful. Thanks.

oh and one more thing: *sent via PM for security reason.

* Gio Takahashi clicks install.
Replied. :) Hope it was helpful.

Symbian.info
14 Jan 2004, 16:36
Installed. looks to work but get errors:-(:

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 128

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 129

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 130

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 131

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 132

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 154

Warning: Cannot add header information - headers already sent by (output started at /home/www/forum/includes/adminfunctions.php:222) in /home/www/forum/admincp/ftp.php on line 155

Warning: Cannot add header information - headers already sent by (output started at /homel/www/forum/includes/adminfunctions.php:222) in /home//www/forum/admincp/ftp.php on line 157

vB FTP Version 1.0

What can be?

SnowBot
14 Jan 2004, 21:17
Im having a small problem with the login



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



If i set it as that for example if i try and login with

myuser
mypass

it doesnt work, just takes me back to the login screen :( what am / have i done wrong ?

gmarik
14 Jan 2004, 21:38
Erwin - could it be remade, so I can browser the folders which are upper than the forum root level, is it possible to browse all the apache folders I need with this hack?

Erwin
14 Jan 2004, 23:19
Erwin - could it be remade, so I can browser the folders which are upper than the forum root level, is it possible to browse all the apache folders I need with this hack?
Yes, it's possible, but the user has to have root access given to it by the root user.

Nmidia
16 Jan 2004, 22:07
OK, I followed the insturctions to the letter. Upped the files, ran the cp and got this:

Fatal error: Call to undefined function: log_admin_action() in /home/legions/public_html/Forum/admincp/index.php on line 33

I still get this even with the changes undone.

Any ideas?

Nmidia
17 Jan 2004, 00:14
OK, I followed the insturctions to the letter. Upped the files, ran the cp and got this:

Fatal error: Call to undefined function: log_admin_action() in /home/legions/public_html/Forum/admincp/index.php on line 33

I still get this even with the changes undone.

Any ideas?
All fixed now. My global had been overwritten with an empty one. no idea how. Perhaps I canceled a dependent file transfer in dreamweaver.

Natch
22 Jan 2004, 00:38
OMG - why was this not integrated into the vB3 release ? Erwin - this is excellent ...

Thanks you and once again you make me proud to call you a countryman :D

/me - a proud Australian - clicks install !

tuanpig
30 Jan 2004, 18:45
Saving file...

Warning: fopen(/backup/home/tuanpig/public_html/forums/calendar.php): failed to open stream: Permission denied in /backup/home/tuanpig/public_html/forums/mylove/ftp.php on line 678

Warning: fwrite(): supplied argument is not a valid stream resource in /backup/home/tuanpig/public_html/forums/mylove/ftp.php on line 680
File saved successfully.
Warning: fclose(): supplied argument is not a valid stream resource in /backup/home/tuanpig/public_html/forums/mylove/ftp.php on line 684

tuanpig
30 Jan 2004, 18:48
please mail for me : tuanpig2003@yahoo.co.uk

OmaniMan
30 Jan 2004, 18:50
Great :nervous:
Installed

Grohl
30 Jan 2004, 19:39
having same problems as others:
Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 155

Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 157



help?

Symbian.info
30 Jan 2004, 21:57
having same problems as others:
Warning: Cannot modify header information - headers already sent by (output started at /home/rufus/public_html/forums/includes/adminfunctions.php:222) in /home/rufus/public_html/forums/admincp/ftp.php on line 128

help?

Exact same problem I have to :tired: !
Try new install, but not working :disappointed: Ask before but nobody knows what the problem is..

Wolfy.2k
30 Jan 2004, 22:21
same problem here too...

i kno the authoer isnt giving help, but any1 else know why this is happening - i am sure it is something simple!

Erwin
01 Feb 2004, 10:34
Hi,

I am going interstate for work for 1 week. I will try to look into this when I come back. In the meantime, other people feel free to help too. :)

Darkwaltz4
05 Feb 2004, 00:19
tuanpig: the file you are tring to edit needs to be chmodded 777 for it to correctly save

also, i have a suggestion. I edited my ftp.php file to chmod files that i upload using it 777, and i think this should be added to the mainscript. possibly allowing two new options the first being 'chmod new uploads' and 'upload chmod level' (so true, and 0777 would be what my equivalent would be :-p) this should be a snap, and if erwin doesnt want to do it, i wouldnt mind writing it for someone interested and with his permission :-p

tuanpig
05 Feb 2004, 10:08
i can't use ftp.php to chmod any file.

Erwin
10 Feb 2004, 10:12
tuanpig: the file you are tring to edit needs to be chmodded 777 for it to correctly save

also, i have a suggestion. I edited my ftp.php file to chmod files that i upload using it 777, and i think this should be added to the mainscript. possibly allowing two new options the first being 'chmod new uploads' and 'upload chmod level' (so true, and 0777 would be what my equivalent would be :-p) this should be a snap, and if erwin doesnt want to do it, i wouldnt mind writing it for someone interested and with his permission :-p
Go ahead and make the changes, and I will upload the new lines here, and give you credit. :)

I-Web
20 Mar 2004, 08:19
Went without any hitch nice work

Enforcerman
30 Mar 2004, 17:21
the download zip is corrupted.

josh929
09 Apr 2004, 02:33
i don't know anything about security, so i was just wondering:

is there any sort of security risk to chmod-ing everything to 777? i never really understood the chmod thing.

or does this hack pose any other sort of risk?

RyoShin
09 Apr 2004, 06:38
For those getting the header errors:

Go into your ftp.php file and add a double slash (//) to lines 128-132 (they start with header), 149, 150, 154, 155 (these start with cookie), and 157 (starts with header.)

Here's a better view of what to change, if you've changed how the lines are:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



That entire thing should change to the following (same thing, but with the double-slash (comment code)):


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


And


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


respectively.

In fact, you might be able to comment out that entire if statement, but I'm just removing lines as they're called.

I'm no guru in PHP (working on that), but after doing that the error messages went away, and the hack still worked fine for me. I wouldn't mind seeing a fix by someone who really know it, or Erwin himself.

Oh, and I'm also having problems with making a login name work, but no clue how to fix that.

ajk
12 Apr 2004, 07:53
Hi Dr. really nice hack!

Does any body know or installed it on vB 3.0 gold?
I'd like to check before I install it on mine.

THANKS!

Gio Takahashi
12 Apr 2004, 21:53
I have this installed on my forums, and it is vb3 gold. it works fine.

Charlie Argueta
13 Apr 2004, 02:29
I have this installed on my forums, and it is vb3 gold. it works fine.
Really, excelente Mr. Burns

RyoShin
13 Apr 2004, 02:41
I'm using Gold, but I'm getting the login problems and header errors stated above.

Of course, I haven't CHMODed everything 755/777 yet. Could that be part of the problem?

ajk
13 Apr 2004, 08:00
I have this installed on my forums, and it is vb3 gold. it works fine.

Thank you Gio, I'll try it out.

Sometimes I'm at a computer without FTP.
It would come in handy doing remote maint.

I'll click install.

vau7
21 Apr 2004, 18:53
Unbelieavable cool hack!

flup
23 Apr 2004, 12:58
Fantastic hack.
When my license is renewed im really going to install this one!

Superb job erwin

welo
27 Apr 2004, 19:46
This looks like a really nice hack. Know what would be very handy to add? An FTP upload feature with usergroup restriction so admins can give mods a place to upload files (like images they want to display inline) without needing to give them ACP access. I run into needing this all the time. For now I just give them FTP access to a subdomain but it would be really nice if they could upload stuff to a specified directory from within VB itself.

juanchi
02 May 2004, 00:52
This looks like a really nice hack. Know what would be very handy to add? An FTP upload feature with usergroup restriction so admins can give mods a place to upload files (like images they want to display inline) without needing to give them ACP access. I run into needing this all the time. For now I just give them FTP access to a subdomain but it would be really nice if they could upload stuff to a specified directory from within VB itself.

You just read my mind, I was going to ask for the same thing if posible, this will be a great improvement to this mod, and if you are using a portal system like vbadvanced you can let your moderators upload images to an specific directory to be used in the front page, and you don't have to worry about your mods doing any harm to your vbulletin's file system.

ShutDown23
05 May 2004, 23:44
Any chance at a "Find" button for this?

weitalia
05 Jul 2004, 18:49
Really GREAT HACK! Very FAST,easy to use and graphically beautiful.
I have commented the lines from 128 to 132 like RyoShin have suggested HERE (http://www.vbulletin.org/forum/showpost.php?p=497548&postcount=34).
I got the same problem of SnowBot (take a look HERE (http://www.vbulletin.org/forum/showpost.php?p=462466&postcount=15)) and the only way to make things work was doing:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


I don't know why the:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

don't works :(

:o

AnhTuanCool
06 Sep 2004, 19:49
Yes, it's possible, but the user has to have root access given to it by the root user.

What do you mean by this? :ermm:

hockyfan
24 Sep 2004, 18:34
Excellent hack! No problems at all. I too, however, am not too well-versed in the ways of CHMODing, and I was wondering as well is there any sort of security risk making all folders CHMODed to 777?


h

Erwin
27 Sep 2004, 08:38
Excellent hack! No problems at all. I too, however, am not too well-versed in the ways of CHMODing, and I was wondering as well is there any sort of security risk making all folders CHMODed to 777?


h
Mainly only if you are on a shared server. If so, there is a risk.

This hack is a convenient hack for days without SSH/ FTP access.

hockyfan
29 Sep 2004, 20:00
Thanks, I am now using it regularly and am very happy with it, nice work!


h

BigCheeze
20 Nov 2004, 21:35
Finally got around to upgrading to VB3... Thank Gawd you ported this hack! Still one of my favorites! Thanks AGAIN!

Kagen
24 Nov 2004, 19:46
OMG i have acess to look at every file on my host server.... wow i could just go dealete crazy....XD but then i wouldnt have my forum or site >.> i think this hack shouldnt be avaible to the public all thought its awsome im just worried =/

lancepoint
01 Dec 2004, 14:06
yea i just installed and instead of forcing it to the home path defined in the ftp.php file it took me to my host account root!

is there anyway to force the directory? How would i go about making another usergroup in which only has access to ftp.php inside of admincp/ directory?

The Way I have it setup now ... well planned on it until i noticed after aadding the link to vbftp on nav breadcrumb navigation... that the user must have administration rights. What i need is a usergroup modified in the script or where ever it needs to be edited to give certain users rights to acces ftp.php in the directory and only ftp.php.

Please Any Help Would Be Greatly Worshiped!!!

TruckMuddr
01 Dec 2004, 22:51
How do I change the width of the table????

http://img.photobucket.com/albums/v295/Truckmuddr/FTP.gif

error_22
02 Dec 2004, 21:22
Hi!

I have this wicked problem, and for me it makes no sence. :nervous:
Everytime when click on "User CP" this shows up in the top of the page:


vB FTP Version 1.0
.:Back:.

Download completed successfully!


vB FTP Version 1.0 brought to you by Dr. Erwin Loh




vBulletin v3.0.3, Copyright ©2000-2004, Jelsoft Enterprises Ltd.

--------------------------------------------------------------
what can I do?

Thanks
Niklas

BigCheeze
04 Dec 2004, 20:09
Hi Erwin... I'm having a strange issue that I'm hoping you can help me with.

I'm having problems viewing images. I have 1 of a couple problems... just depending on the config.

1) Using the "../tmp/" as the temp directory I get an "This might be caused by an invalid image type or because you haven't set public read and write access on the temporary directory." error. I've checked the directory it's got full access (BTW it's on a Win2003 server)
2) When I use the full path <drive>:<install path to forums>/tmp/". It doesn't give me an error but it doesn't display the image becasue it's trying to go to that path in the browser.
3) When I use "http://www.domanname.com/forums/tmp'" it works for a few images, then all of the sudden it starts giving me the same error as #1

I'm confused... hoping you might be able to shed some light. Thanks!

Erwin
05 Dec 2004, 23:52
Hi Erwin... I'm having a strange issue that I'm hoping you can help me with.

I'm having problems viewing images. I have 1 of a couple problems... just depending on the config.

1) Using the "../tmp/" as the temp directory I get an "This might be caused by an invalid image type or because you haven't set public read and write access on the temporary directory." error. I've checked the directory it's got full access (BTW it's on a Win2003 server)
2) When I use the full path <drive>:<install path to forums>/tmp/". It doesn't give me an error but it doesn't display the image becasue it's trying to go to that path in the browser.
3) When I use "http://www.domanname.com/forums/tmp'" it works for a few images, then all of the sudden it starts giving me the same error as #1

I'm confused... hoping you might be able to shed some light. Thanks!
You've chmod the tmp directory to 0777?

rjordan
06 Dec 2004, 16:37
This looks like a really nice hack. Know what would be very handy to add? An FTP upload feature with usergroup restriction so admins can give mods a place to upload files And not just for mods, but how about for any user you wish to give a bit of FTP space to?

I must say that I am particularly fond on a CGI script called eFileMan. It is a free script and has all of the features you could ever want. To see this level of functionality included or have this ported over to PHP/vB would be the most awesome addition for this hack!

red_baron2000
25 Dec 2004, 18:16
one word: fantastic!!

UManiac
10 Jan 2005, 00:59
UManiac CLicks install :)

Thanks!

UManiac
12 Jan 2005, 21:38
Hi Erwin... I'm having a strange issue that I'm hoping you can help me with.

I'm having problems viewing images. I have 1 of a couple problems... just depending on the config.

1) Using the "../tmp/" as the temp directory I get an "This might be caused by an invalid image type or because you haven't set public read and write access on the temporary directory." error. I've checked the directory it's got full access (BTW it's on a Win2003 server)
2) When I use the full path <drive>:<install path to forums>/tmp/". It doesn't give me an error but it doesn't display the image becasue it's trying to go to that path in the browser.
3) When I use "http://www.domanname.com/forums/tmp'" it works for a few images, then all of the sudden it starts giving me the same error as #1

I'm confused... hoping you might be able to shed some light. Thanks!

I'm having the same problem, however, I'm n a Unix server...

I have CHMOD my tmp directory 777.

Any ideas?

Thanks!

Erwin
12 Jan 2005, 22:07
I'm having the same problem, however, I'm n a Unix server...

I have CHMOD my tmp directory 777.

Any ideas?

Thanks!
I can't answer this because I have no idea what the problem is. :)

UManiac
12 Jan 2005, 22:30
I can't answer this because I have no idea what the problem is. :)

hmmm... I thought I quoted "BigCheeze's" message...

Basically I can ftp and have everything working fine but I cannot view any images. I get this error everytime:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks for your help!

yoyoyoyo
12 Jan 2005, 22:47
Erwin is da man! This is an awesome hack! Thanks much for sharing!

*****clicks install*****

I am also having the image error listed above by UManiac, but it is small in comparison to being able to edit files from the admin CP!

Erwin
12 Jan 2005, 23:53
hmmm... I thought I quoted "BigCheeze's" message...

Basically I can ftp and have everything working fine but I cannot view any images. I get this error everytime:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Thanks for your help!
I'll check this. It may be security from the new vB version? Or the fact that you're runnning Windoze? (I run Linux)

UManiac
14 Jan 2005, 07:09
I'll check this. It may be security from the new vB version? Or the fact that you're runnning Windoze? (I run Linux)

I'm running Linux as well... BigCheeze is the windoze man :rolleyes:

I also ran into a second problem. I tried to change the permissions on a file and got this:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

BigCheeze
30 Jan 2005, 23:10
Sorry... just found my way back here... been too #@%ing busy at work.

While Windows doesn't have "CHMOD" per say, the tmp directory is wide open, and VBFTP shows it as "777" (becasue I've given the group everyone full access.... same as 777).

I found one issue, and it now seems to try to display the image, I get the box around where it should be, but I don't get the actual image.

Marboosh.Net
31 Jan 2005, 01:40
Nice hack

installed on vB 3.0.6


*installed*

Adrian Schneider
31 Jan 2005, 02:27
I installed this ages ago, but have a problem in it.

Whenever I download a file from it, it inserts some of the vbftp HTML into the bottom/top of the file. Also, do I have to CHMOD every file I want to edit?

Marboosh.Net
31 Jan 2005, 09:46
I installed this ages ago, but have a problem in it.

Whenever I download a file from it, it inserts some of the vbftp HTML into the bottom/top of the file. Also, do I have to CHMOD every file I want to edit?

i have this problem TOO

Princeton
03 Feb 2005, 17:50
I installed this ages ago, but have a problem in it.

Whenever I download a file from it, it inserts some of the vbftp HTML into the bottom/top of the file. Also, do I have to CHMOD every file I want to edit?
to fix this find the header and footer html (code) and wrap it with

if ($_REQUEST['action'] != "download")
{

}

On my free time, I'm modifying vb3 FTP and I was wondering if anyone has made some modifcations?

View attachment image of what I currently have.

Converted to XHTML/CSS

Erwin,
I notice that Morten Bojsen-Hansen has a current update of his script...
I was wondering how extensive is it to port the new version over to vb??


thanks for a great addon!!

Erwin
03 Feb 2005, 23:05
to fix this find the header and footer html (code) and wrap it with

if ($_REQUEST['action'] != "download")
{

}

On my free time, I'm modifying vb3 FTP and I was wondering if anyone has made some modifcations?

View attachment image of what I currently have.

Converted to XHTML/CSS

Erwin,
I notice that Morten Bojsen-Hansen has a current update of his script...
I was wondering how extensive is it to port the new version over to vb??


thanks for a great addon!!
I'm happy to port it. Give me this weekend. ;)

Princeton
03 Feb 2005, 23:36
Cool, the new version has all the functions in a separate file -- makes things easier to modify. ;)

Erwin
05 Feb 2005, 12:07
Major update:
Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images
Version 1.0

The whole hack is changed - to install, you need to basically uninstall the old vB FTP hack and reinstall this. It's based on an updated version of what the old hack was based on but I've changed the directories, made changes to most files to make it work with vBulletin and added a search feature to the edit panel.

It's possible to run both the old and the new together as I've renamed the files.

I suggest using the new version as it fixes a few old bugs and is much better. :)

Enjoy!

Erwin
05 Feb 2005, 12:18
Cool, the new version has all the functions in a separate file -- makes things easier to modify. ;)
There you go, I've ported it. :)

It took me a while as I had to work out the file permissions. I also rationalised it into 1 directory, took out unneeded code, added code to make it work with vB, added a search function to the edit code (which I also added to the previous version) - interesting that the old version did not have a download feature which I added myself, but the newer version now has one - I took out the chmod feature as it didn't work.

Marboosh.Net
05 Feb 2005, 13:05
good job for UPDATE

but i got error
Parse error: parse error, unexpected ')' in /home/XXXXX/public_html/vb3/admincp/vbfm/filebrowser.inc.php on line 21

Rambo
05 Feb 2005, 13:19
good job for UPDATE

but i got error

Ditto, got the same error as you

Princeton
05 Feb 2005, 14:58
Erwin,

GREAT JOB ... that was fast :D

I'll start working on the new files ... when completed I'll send you a copy of the finished product.

shadiguy1
05 Feb 2005, 15:31
i just // line 21 of that file and got it to display my folders but when i try and edit or downloadd anything im getting a 404 page not found error. Please help erwin also this is o vb3.0.3

Erwin
05 Feb 2005, 23:48
Update
------------

Version 1.1 - Fixed path bug in filebrowser.inc.php

To upgrade from File Manager version 1.0 and fix this bug, replace your /admincp/vbfm/filebrowser.inc.php with the new one in the updated ZIP file. :)

That's the only file that's been updated in version 1.1 to fix this bug.

Sorry about that bug. Enjoy!

Erwin
05 Feb 2005, 23:50
Erwin,

GREAT JOB ... that was fast :D

I'll start working on the new files ... when completed I'll send you a copy of the finished product.
What files? What product? :)

Erwin
06 Feb 2005, 00:03
If you upgrade, you can also change the version number in config.inc.php from "1.0" to "1.1" just to keep it updated. ;)

Marboosh.Net
06 Feb 2005, 08:38
updated


Thanks

-Marboosh.Net

hockyfan
07 Feb 2005, 14:48
How do I uninstall the old version?


h

Marboosh.Net
07 Feb 2005, 15:55
How do I uninstall the old version?


h
just delete the old file
admin/ftp.php
images/ftp

that's all...

T3MEDIA
18 Feb 2005, 23:57
I would love this for my normal users.
I am tying to find a way users I specify (could be usergroup) can upload files larger than 2meg.

This would be perfect but has too much power for them...

Can you make a scaled down version for members?

kevinnguyen
19 Feb 2005, 06:00
i did everything but when i click the link, it gives me a blank page

T3MEDIA
01 Mar 2005, 06:41
I would love this for my normal users.
I am tying to find a way users I specify (could be usergroup) can upload files larger than 2meg.

This would be perfect but has too much power for them...

Can you make a scaled down version for members?
anyone?

Moncal
09 Mar 2005, 03:07
I have it installed, but I get this error. Similar errors were posted earlier, but they were all before the update. Does anyone know what it could be? Great hack btw.

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 13

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home2/moncal/public_html/forum/admincp/vbfm/config.inc.php:188) in /admincp/vbfm/header.inc.php on line 20

Also, does every directory have to be CHMODed 777 or just the forum directory?

Erwin
10 Mar 2005, 22:11
You chmod 777 only the directories you want to upload to, or chmod files you want to edit.

As for your errors - to be honest, no idea... very odd.

Moncal
11 Mar 2005, 02:26
Okay thanks.

I figured out the erros. I just deleted the blank lines at the end of the file config.inc.php. I don't know why that didn't occur to me earlier. That's the only reason I've seen a header error.

Rambo
06 Apr 2005, 19:45
Editing PHP File's through your mod give's error's when saved, have to do it through wordpad or dreamweaver instead of through the site which is a let down, but ah well.

Erwin
07 Apr 2005, 05:48
Editing PHP File's through your mod give's error's when saved, have to do it through wordpad or dreamweaver instead of through the site which is a let down, but ah well.
Not when I do it.

Adrian Schneider
07 Apr 2005, 07:28
I installed this ages ago, but have a problem in it.

Whenever I download a file from it, it inserts some of the vbftp HTML into the bottom/top of the file. Also, do I have to CHMOD every file I want to edit?
Erwin, would updating or do you think it was a problem with my installation. If so, I'm probably going to update, I love it. :)

Would you discourage chmod777 on forums dir on a shared server? I hate having to upload in web client (damn router, but thats another story), this is so much more convenient.

Mr. Brian
07 Apr 2005, 09:51
AweSOME! I'm just loving it!

Rambo
07 Apr 2005, 15:57
Not when I do it.

Must just be me then...hrm, >_<.

Mr. Brian
07 Apr 2005, 16:58
No matter how I tried, these are the two message I got.
========
Creation of folder failed.

This might be caused by insufficient permissions.
========

Erwin
08 Apr 2005, 01:54
Erwin, would updating or do you think it was a problem with my installation. If so, I'm probably going to update, I love it. :)

Would you discourage chmod777 on forums dir on a shared server? I hate having to upload in web client (damn router, but thats another story), this is so much more convenient.
I wouldn't chmod 0777 on a shared server. Other users could run scripts on your site.

Erwin
08 Apr 2005, 01:54
No matter how I tried, these are the two message I got.
========
Creation of folder failed.

This might be caused by insufficient permissions.
========
Chmod 0777 the directory you want to create new directories in.

Jagged Tooth
27 Apr 2005, 09:25
Great Hack, Good work

/me clicks install


--Jagged Tooth--

Dennis Olson
03 May 2005, 18:26
Erwin, I have my webserver split onto two servers. Thus, any changes made need to be ported to both of them. Does your hack support this? Or how can I change it to support this?

thanks!

predatorkill
05 May 2005, 12:34
i cant get it working,i ve done all the steps correctly except the part of
$home_directory = "/home/yourforums/public_html/";

can someone explain me the exact syntax of the line above?i ve tried 10 different combinations and none seems to work!

For example:
/home/xbox/public_html/forum/index.php dont work for me!
i get Invalid home folder in the vb file manager menu in ACP

Thanks a lot in advance!

Problem solved,i ve should removed index.php and replaced public_html to web-root from the syntax...
What a n000b....

Erwin
10 May 2005, 04:34
Erwin, I have my webserver split onto two servers. Thus, any changes made need to be ported to both of them. Does your hack support this? Or how can I change it to support this?

thanks!
Use the subdomain for each webserver you want this to run in.

Dennis Olson
10 May 2005, 14:50
Thanks!

FD929
11 May 2005, 05:07
Thank you kindly Doctor. Outstanding.

dsboyce8624
11 May 2005, 16:35
Okay, I usually just click install and move on, but I freakin love this thing.

I spend most of my time poking around on my own PC, then when I see something I want to do I have to connect remotely to do it. Not anymore!

Thanks a heap, you just saved me a bunch of hassle.

Dennis,

Dragon_Z
16 May 2005, 00:55
ok, I have just gotten into mods so give me some time to figure this out, I want to be able to edit all of the files on my forum, I know that I need to CHMOD 0777 the folder (or folders, havent figured that out yet), but what I cant understand is

1. what is chmod 0777
2. What does it do
3. How do I do it

Thank You in advance.

Marco van Herwaarden
16 May 2005, 10:36
1. 'chmod' is a *nix commando.
2. It changes permissions on files
3. You can do this from SSH/Telnet prompt and most FTP clients will also support it.

A small explanation on these numbers:
There are 3 permissions you can set on each file/directory:
- Read permission
- Write permission
- Execute permission (or list contents if it is a directory)
These 3 permission are put together as a binary number:
- 1xx - For the read
- x1x - For the write
- xx1 - for execute
This binary number can be written as a decimal number again:
binary 111 = decimal 7 = Can read, Can Write, Can execute
Binary 100 = decimal 4 = Can read, Can not write, Can not execute

Now we have 3 levels of users we can control. First of all each file is owned by a user and a group. Now we can control the following levels:
- Owner - The user that owns the file
- Group - Any user that is member of the group that owns the file
- Others - Anybody not one of the above.

Now we can write the decimal numbers we calculated above behind each other for each level of access:
750 - Means permission "7" for the owner, permission "5" for the group, permission "0" for others
Resulting in:
owner - Can read, can write, can execute
group - Can read, can NOT write, can execute
others - Can NOT read, can NOT write, can NOT execute

This is just a simplifie explanation, hope it helps understanding a bit more.

cyberxp9
30 May 2005, 21:22
When i install it how do i edit files?

Mr. Brian
31 May 2005, 17:39
Just login to your admincp and hover over your mouse to "vB File Manager" click on it. What's next? (Need I tell you? :) ) Simple as that. :)

SCRIPT3R
03 Jun 2005, 01:06
does this hack give the ability to bypass the default php file-size limitations? my php uploads are limited to 8Megs, but i would like to give my users the ability to download much larger files from within posts... or is there another way of using my regular FTP client to upload the file directly into the attachments folder and link to that within a post?

Erwin
03 Jun 2005, 01:25
does this hack give the ability to bypass the default php file-size limitations? my php uploads are limited to 8Megs, but i would like to give my users the ability to download much larger files from within posts... or is there another way of using my regular FTP client to upload the file directly into the attachments folder and link to that within a post?
AFAIK, this hack will not bypass your php config settings in php.ini.

yoyoyoyo
18 Jun 2005, 02:28
I sure hope that this is ported over to 3.5 since I use this hack so much that I almost take it for granted.

Sovereign
22 Aug 2005, 15:51
Ya, *waits for 3.5 port*

biggjoe
14 Sep 2005, 13:39
Hello Erwin!

I was referred to this site by some of the folks at 'TheAdminZone' and I just joined 2 days ago!

Rather than re-typing my question, let me copy/paste in here the question I originally had posted to the forums at 'TheAdminZone'.

So far, this vB hack looks awesome! My question however, is if you have any future plans on maybe making a version of this hack that's more like 'Invision Power File Manager' which has been discontinued by IPS recently.

IPFM is more geared towards creating multiple users/groups, with different 'root directories' per user, permissions and etc.

I WOULD LOVE to officially make a request for a version of 'vB Admin CP File Manager' that is geared towards the type of setup I've explained. This hack is a perfect 'Admin' tool, as the name suggests, but if theres anyway that a version can be created that's more like IPFM, THAT WOULD BE AWESOME!

It's too bad that there isn't one already created for vBulletin.

Thanks so much for your time Erwin! Following is the original message that I had posted to 'TheAdminZone':

---------------------------------------------------------------------------------

Hello All!

Here's a side-question, something that I'm working on as well;

As I SLOWLY move forward with the building of our new online community
(via vBulletin) I had a question regarding File Managers.

I've searched google for DAYS looking for something that can come somewhat close to a PHP or PERL based/Web-based FTP replacement. I know that none of these would be 100% better than FTP, but I need something none-the-less.

I've checked out HotScripts.Com, DMOZ and tons of websites...and it's gotten out of hand...lol.

There some 'payware' out there that I don't mind...but its still not what I really want.

Plus, alot of these have been designed for you to manage your own web-based content...not really designed to be used like an FTP with extensive user-mgmt and etc.

The only choices I've settled on are the following non-payware choices...but they either lack in a nice UI, support, documentation and etc.

Here they are for your reference:

Top Choice:

http://demo.invisionfilemanager.com/index.php

I know that it's discontinued and the UI is a bit plain...but I got it up and running with no problems. A big 'pet peeve' is that on the directories, you can either click on the actual folder icon for it to open or click on the 'Open Directory' link.

If you click on the folder icon, it's perfect. If you click on the 'Open Directory' link...it takes you to the actual URL of the folder...which means anyone can simply 'walk-in' to your files without even logging in. I've by-passed this in several ways, but still I wish I could just take the 'Open Directory' link OFF completely, because I know that people WILL get confused.

2nd Choice:

http://forums.invisionpower.com/lof...hp/t141655.html

Love the UI, but way too buggy...of course I was warned. I just found a PDR 3 which has tons of fixes...so I'm going to install that tonight and test it.

3rd Choice:

http://phpfilenavigator.litoweb.net/ and for demo:
http://www.litoweb.net/pfn/

This one works perfect without any problems. The only thing is that the UI is pretty cheesy and the docs have been HORRIFICALLY translated into english.

Support is there, but I'm at the mercy of the developer who is in Spain.

4th Choice:

http://sourceforge.net/project/scre...?group_id=72517

This one is 'ok'. It's kinda plain...but light-weight which I like. Not too many options for user-mgmt. Maybe too light-weight for what I want.

Runner-ups

http://projects.quasars.de/storage/

This one looked 'very clean' but they strictly prohibit commercial use...which is what I need. I sure wish the makers of vBulletin made a nice File Manger that I could use with vBulletin, or possibly a separate module/add-on for vBulletin.

http://www.afian.com/demo.php

This one was pretty clean as well...but payware.

There are so many that I tried during this weekend, but these make the list. Hell...maybe these will be good for someone else needing something like this.

Anyway, your suggestions will be greatly appreciated!

Thanks,

J.
---------------------------------------------------------------------------------
Thanks again Erwin!

Joe

Andreas
14 Sep 2005, 13:48
FTP is insecure by design, why bother with it when you can use SCP or SFTP instead?

biggjoe
15 Sep 2005, 03:16
Hey KirbeDE!

Thanks for the input! Basically, what I'm asking for, is if they can some how create something like IPFM but for vBulletin. It doesn't have to necessarily 'plug-in' to vB, it can be a totally 'stand alone' app like IPFM.

If you look at IPFM, it's not FTP by any means. Being that's http/php, you can use https for the session and the dl of files, if I'm not mistaken.

I'm not asking for an FTP client by any means, but for a replacement that functions 'very much like' FTP.

I look forward to what Dr. Erwin might have to say!

Thanks again,

Joe

Erwin
15 Sep 2005, 04:41
I sure hope that this is ported over to 3.5 since I use this hack so much that I almost take it for granted.

This should be an easy port to 3.5. Once 3.5 turns gold I will port it.

As for biggjoe's questions, this hack gives file management powers to the site admin. Giving them to the users brings about a lot more security issues and would be more complicated.

biggjoe
26 Sep 2005, 19:10
Hello Erwin!

Thanks so much for the response! I was just curious as to if there would be some kind of 'hack' developed such as in the 'Invision Power File Manager', where it would work as a pure File Manager.

It seems that this hack is mainly for Admin management...which is why I asked the question.

Anyway, here's another related question. I know that vBulletin supports 'attachments/files' to be attached to posts and etc.

Are there any hacks, for example, that would allow one to specificy some kind of 'download' area', where registered members can download various files/documentation, of course this would be within the forums after they've logged in?

Thanks in advance!

Joe

Rhoads
05 Nov 2005, 09:36
Nice hack for 3.5, wait patiently ;)

Stone Cold 3:16
05 Nov 2005, 22:47
This deserves a HOTM award! Cool dude!

~Installed!

Developer
20 Jan 2006, 01:11
This should be an easy port to 3.5. Once 3.5 turns gold I will port it.

As for biggjoe's questions, this hack gives file management powers to the site admin. Giving them to the users brings about a lot more security issues and would be more complicated.
hey 20/1/2005 3.5.3 is online now where is the ported version :surprised:

carl
06 Feb 2006, 17:33
Hi any ideas when this will be working on 3.5.x ?

Robbjedi
21 Apr 2006, 19:59
Any chance of seeing this for 3.5.x?

Mysticales
13 Jul 2006, 01:49
Hey slight issue.. not sure if anyone has reported it yet..

I am a admin using this mod (Thumbs up btw.. saved my life to have it.. hehe)
However.. I just spent 5 hours learning that THIS is the mod that caused my parse error issues.

Here is the issue. I was overjoyed when I saw a "edit" feature in the file browser! Yeaaa!!! Access at work to quick edit things! How wrong I was..

My 1st edit was on adminfunctions_template.php and as soon as you hit "save" it will ruin the PHP code and make it like a 2 year old did it. How? It will remove \ and maybe use " instead of what they should be etc. It changed the entire format of the php design.. which shouldnt be.

So... if your using edit to work on your files, update and so... it will bite you!

(I am using on 3.0.9 vB) So the "safe" way to do this? You can download the php file using the manager, then edit it OUTSIDE the manager, use notepad, whatever, then goto the folder, hit upload and just upload the file to overwrite the exsiting one. Vola all worked well. =)

However.. does bug me about this edit feature... ruined 2 php files and if I wouldnt check everything, wouldve been hard to figure it out.. but I do support this app. =D Just checking on whats known about that issue.

yoyoyoyo
03 Dec 2006, 21:19
I would love to see this ported to 3.5, also

Scribbller
03 Feb 2007, 17:49
Has anyone been able to port this? I am using this on vb 3.0.x but want it ported over to 3.6.x now.