vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images (https://vborg.vbsupport.ru/showthread.php?t=59820)

Erwin 01-06-2004 10:00 PM

Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images
 
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. ;)

MGM 01-07-2004 01:20 AM

lmao! vB2, vB3... whats the different, right? :D

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

[high]* MGM clicks install anyways
[/high]

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!

hume 01-07-2004 04:18 AM

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

Quote:

Originally Posted by Gio Takahashi
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

PHP Code:

 $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

Quote:

Originally Posted by gmarik
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

Quote:

Originally Posted by Nmidia
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

[high]* Natch - a proud Australian - clicks install ![/high]

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

Quote:

Originally Posted by Grohl
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

Quote:

Originally Posted by Darkwaltz4
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:
PHP 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
PHP Code:

if ($cookie_username == $username && md5($cookie_password) == md5($password))    // Create cookie on login
{
 if (
$auto_login)
 {
  
setcookie("cookie_username"$usernametime()+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)):
PHP 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
PHP Code:

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.

ajk 04-12-2004 05:53 AM

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

Quote:

Originally Posted by Gio Takahashi
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?

ajk 04-13-2004 06:00 AM

Quote:

Originally Posted by Gio Takahashi
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 04-21-2004 04:53 PM

Unbelieavable cool hack!


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01412 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete