View Full Version : Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images
Erwin
01-06-2004, 10:00 PM
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
01-07-2004, 01:11 AM
Screenshots updated for vB 3.0.6. ;)
lmao! vB2, vB3... whats the different, right? :D
very nice hack! I would use this myself, but im too in love with FlashFXP :p
* MGM clicks install anyways
w00t! first post to what will probably be a big hack :D
MGM out
Buczilla
01-07-2004, 01:46 AM
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!
wow this mod is very useful
thz very much
yxboom
01-07-2004, 04:21 AM
Great job we have this installed on our vb2 board. The vb2 version that is
HiDeo
01-07-2004, 04:41 AM
What's a great hack !
Thx very much !
MindTrix
01-07-2004, 04:44 AM
OMG now this is surely more than a hack :) Amazing nice one Erwin and thanks
SnowBot
01-07-2004, 06:02 AM
The man does it again :)
Holidazed
01-07-2004, 07:59 PM
Amazing hack. Good job.
~clicks install
Gio Takahashi
01-09-2004, 07:43 PM
this will no doubt be extremely useful. Thanks.
oh and one more thing: *sent via PM for security reason.
* Gio Takahashi clicks install.
albibak
01-09-2004, 08:09 PM
Great hack, thx ;)
I installed it on RC2 and it works :)
Erwin
01-09-2004, 10:07 PM
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
01-14-2004, 02:36 PM
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
01-14-2004, 07:17 PM
Im having a small problem with the login
$use_login = true; // Toggle login system (true/false).
$auto_login = true; // Toggle auto login (true/false).
$username = "myuser"; // Set a username
$password = "mypass"; // Set a password.
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
01-14-2004, 07:38 PM
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
01-14-2004, 09:19 PM
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
01-16-2004, 08:07 PM
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
01-16-2004, 10:14 PM
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
01-21-2004, 10:38 PM
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
* Natch - a proud Australian - clicks install !
tuanpig
01-30-2004, 04:45 PM
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
01-30-2004, 04:48 PM
please mail for me : tuanpig2003@yahoo.co.uk
OmaniMan
01-30-2004, 04:50 PM
Great :nervous:
Installed
Grohl
01-30-2004, 05:39 PM
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
01-30-2004, 07:57 PM
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
01-30-2004, 08:21 PM
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
02-01-2004, 08:34 AM
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
02-04-2004, 10:19 PM
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
02-05-2004, 08:08 AM
i can't use ftp.php to chmod any file.
Erwin
02-10-2004, 08:12 AM
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
03-20-2004, 06:19 AM
Went without any hitch nice work
Enforcerman
03-30-2004, 03:21 PM
the download zip is corrupted.
josh929
04-09-2004, 12:33 AM
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
04-09-2004, 04:38 AM
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:
//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Headers
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
And
if ($cookie_username == $username && md5($cookie_password) == md5($password)) // Create cookie on login
{
if ($auto_login)
{
setcookie("cookie_username", $username, time()+31536000);
setcookie("cookie_password", md5($cookie_password), time()+31536000);
}
else
{
setcookie("cookie_username", $username);
setcookie("cookie_password", md5($cookie_password));
}
header("Location: $PHP_SELF");
}
That entire thing should change to the following (same thing, but with the double-slash (comment code)):
//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Headers
//header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
//header("Cache-Control: no-store, no-cache, must-revalidate");
//header("Cache-Control: post-check=0, pre-check=0", false);
//header("Pragma: no-cache");
And
if ($cookie_username == $username && md5($cookie_password) == md5($password)) // Create cookie on login
{
if ($auto_login)
{
//setcookie("cookie_username", $username, time()+31536000);
//setcookie("cookie_password", md5($cookie_password), time()+31536000);
}
else
{
//setcookie("cookie_username", $username);
//setcookie("cookie_password", md5($cookie_password));
}
//header("Location: $PHP_SELF");
}
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.
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
04-12-2004, 07:53 PM
I have this installed on my forums, and it is vb3 gold. it works fine.
Charlie Argueta
04-13-2004, 12:29 AM
I have this installed on my forums, and it is vb3 gold. it works fine.
Really, excelente Mr. Burns
RyoShin
04-13-2004, 12:41 AM
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?
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.
Fantastic hack.
When my license is renewed im really going to install this one!
Superb job erwin
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
05-01-2004, 10:52 PM
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-05-2004, 09:44 PM
Any chance at a "Find" button for this?
weitalia
07-05-2004, 04:49 PM
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 (https://vborg.vbsupport.ru/showpost.php?p=497548&postcount=34).
I got the same problem of SnowBot (take a look HERE (https://vborg.vbsupport.ru/showpost.php?p=462466&postcount=15)) and the only way to make things work was doing:
$use_login = false; // Toggle login system (true/false).
$auto_login = true; // Toggle auto login (true/false).
$username = "myuser"; // Set a username
$password = "mypass"; // Set a password.
I don't know why the:
$use_login = true; // Toggle login system (true/false).
$auto_login = true; // Toggle auto login (true/false).
$username = "myuser"; // Set a username
$password = "mypass"; // Set a password.don't works :(
:o
AnhTuanCool
09-06-2004, 05:49 PM
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
09-24-2004, 04:34 PM
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
09-27-2004, 06:38 AM
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
09-29-2004, 06:00 PM
Thanks, I am now using it regularly and am very happy with it, nice work!
h
BigCheeze
11-20-2004, 07:35 PM
Finally got around to upgrading to VB3... Thank Gawd you ported this hack! Still one of my favorites! Thanks AGAIN!
Kagen
11-24-2004, 05:46 PM
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
12-01-2004, 12:06 PM
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
12-01-2004, 08:51 PM
How do I change the width of the table????
http://img.photobucket.com/albums/v295/Truckmuddr/FTP.gif
error_22
12-02-2004, 07:22 PM
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
12-04-2004, 06:09 PM
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
12-05-2004, 09:52 PM
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
12-06-2004, 02:37 PM
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
12-25-2004, 04:16 PM
one word: fantastic!!
UManiac
01-09-2005, 10:59 PM
UManiac CLicks install :)
Thanks!
UManiac
01-12-2005, 07:38 PM
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
01-12-2005, 08:07 PM
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
01-12-2005, 08:30 PM
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:
Error opening image.
This might be caused by an invalid image type or because you haven't
set public read and write access on the temporary directory.
Check config.php for more information on the temporary directory.
Thanks for your help!
yoyoyoyo
01-12-2005, 08:47 PM
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
01-12-2005, 09:53 PM
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:
Error opening image.
This might be caused by an invalid image type or because you haven't
set public read and write access on the temporary directory.
Check config.php for more information on the temporary directory.
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
01-14-2005, 05:09 AM
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:
Warning: chmod(): Operation not permitted in /adminPanel/ftp.php on line 281
BigCheeze
01-30-2005, 09:10 PM
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.
iSpanish
01-30-2005, 11:40 PM
Nice hack
installed on vB 3.0.6
*installed*
Adrian Schneider
01-31-2005, 12:27 AM
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?
iSpanish
01-31-2005, 07:46 AM
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
02-03-2005, 03:50 PM
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
02-03-2005, 09:05 PM
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
02-03-2005, 09:36 PM
Cool, the new version has all the functions in a separate file -- makes things easier to modify. ;)
Erwin
02-05-2005, 10:07 AM
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
02-05-2005, 10:18 AM
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.
iSpanish
02-05-2005, 11:05 AM
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
02-05-2005, 11:19 AM
good job for UPDATE
but i got error
Ditto, got the same error as you
Princeton
02-05-2005, 12:58 PM
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
02-05-2005, 01:31 PM
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
02-05-2005, 09:48 PM
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
02-05-2005, 09:50 PM
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
02-05-2005, 10:03 PM
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. ;)
iSpanish
02-06-2005, 06:38 AM
updated
Thanks
-Marboosh.Net
hockyfan
02-07-2005, 12:48 PM
How do I uninstall the old version?
h
iSpanish
02-07-2005, 01:55 PM
How do I uninstall the old version?
h
just delete the old file
admin/ftp.php
images/ftp
that's all...
T3MEDIA
02-18-2005, 09:57 PM
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
02-19-2005, 04:00 AM
i did everything but when i click the link, it gives me a blank page
T3MEDIA
03-01-2005, 04:41 AM
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
03-09-2005, 01:07 AM
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
03-10-2005, 08:11 PM
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
03-11-2005, 12:26 AM
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
04-06-2005, 05:45 PM
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
04-07-2005, 03:48 AM
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
04-07-2005, 05:28 AM
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
04-07-2005, 07:51 AM
AweSOME! I'm just loving it!
Rambo
04-07-2005, 01:57 PM
Not when I do it.
Must just be me then...hrm, >_<.
Mr. Brian
04-07-2005, 02:58 PM
No matter how I tried, these are the two message I got.
========
Creation of folder failed.
This might be caused by insufficient permissions.
========
Erwin
04-07-2005, 11:54 PM
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
04-07-2005, 11:54 PM
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
04-27-2005, 07:25 AM
Great Hack, Good work
/me clicks install
--Jagged Tooth--
Dennis Olson
05-03-2005, 04:26 PM
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-05-2005, 10:34 AM
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
05-10-2005, 02:34 AM
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
05-10-2005, 12:50 PM
Thanks!
FD929
05-11-2005, 03:07 AM
Thank you kindly Doctor. Outstanding.
dsboyce8624
05-11-2005, 02:35 PM
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
05-15-2005, 10:55 PM
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
05-16-2005, 08:36 AM
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
05-30-2005, 07:22 PM
When i install it how do i edit files?
Mr. Brian
05-31-2005, 03:39 PM
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
06-02-2005, 11:06 PM
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
06-02-2005, 11:25 PM
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
06-18-2005, 12:28 AM
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
08-22-2005, 01:51 PM
Ya, *waits for 3.5 port*
biggjoe
09-14-2005, 11:39 AM
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
09-14-2005, 11:48 AM
FTP is insecure by design, why bother with it when you can use SCP or SFTP instead?
biggjoe
09-15-2005, 01:16 AM
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
09-15-2005, 02:41 AM
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
09-26-2005, 05:10 PM
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
11-05-2005, 07:36 AM
Nice hack for 3.5, wait patiently ;)
Stone Cold 3:16
11-05-2005, 08:47 PM
This deserves a HOTM award! Cool dude!
~Installed!
Developer
01-19-2006, 11:11 PM
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:
Hi any ideas when this will be working on 3.5.x ?
Robbjedi
04-21-2006, 05:59 PM
Any chance of seeing this for 3.5.x?
Mysticales
07-12-2006, 11:49 PM
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
12-03-2006, 07:19 PM
I would love to see this ported to 3.5, also
Scribbller
02-03-2007, 03:49 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.