Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download, Upload, Edit, Rename, Delete, CHMOD Files or Dirs in Admin CP Details »»
Download, Upload, Edit, Rename, Delete, CHMOD Files or Dirs in Admin CP
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-01-2002 Last Update: Never Installs: 96
 
No support by the author.

vB FTP 2.1 - a FTP client for vBulletin
vB Admin CP Integration by Erwin Loh


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 secure FTP interface to your vB Admin CP. You can edit, delete, download, upload, create, or rename files, OR do the same for directories, all from within the comfort of your Admin CP through your browser.

Version 2 update
1) Ability to SEARCH while editing a file (similar to the search feature when editing templates)
2) Ability to view and change CHMOD of files and directories

Version 2.1 update
1) Fixed a view IMAGE cache bug
2) Fixed version number bug


- features as requested!

NOTE: The CHMOD feature can only work if you have set up your server to allow file permission changes - most servers will NOT allow you to CHMOD files or directories through your browser for security reasons.

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) Ability to view and change CHMOD of files and directories (if this is set up on your server!)
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 FTP file (configurable)
8) FTP functions straight from within your Admin CP!!!

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

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

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

Once this is installed, you can just click on the "vBFTP" link in your Admin CP on the left column underneath your "Control Panel Home" to access this.

Additional Features (already inbuilt)
----------------------------------------------

1. Password Protect vB FTP.
2. Toggle functions of FTP on or off.
3. Type of files you can edit.
4. Hide files or directories.
5. Changing the timeout (if you have trouble downloading or uploading large files).
6. Going higher in the directory structure, all the way up to ROOT


Click on this link to read instructions on how to use these in-built features now:
https://vborg.vbsupport.ru/showthrea...466#post305466

I have added a textfile to the ZIP called "ExtraFeatures" with the same instructions.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 10-03-2002, 06:53 AM
iJason iJason is offline
 
Join Date: Feb 2002
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey is it possible to make it so that only certain people can access it? Not everyone with access to the admin cp. Maybe make it require 1 user name and password of my choice?

Also I can't seem to go up any higher then the forum directory..?
Reply With Quote
  #33  
Old 10-03-2002, 08:30 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Additional Features (already inbuilt)

1. Password Protect vB FTP.

In "ftp.php", find:

PHP Code:
$use_login    =    true;            // Toggle login system (true/false).
$auto_login    =    true;            // Toggle auto login (true/false).
$username    =    "";    // Set a username
$password    =    "";    // Set a password. 
Enter a username and password in the blank space - it can be ANYTHING you like, it doesn't have to be your real FTP username and password.

This will password protect your vB FTP. You will have to enter that username and password to access this function. This will prevent other admins from accessing your site.

You can set auto login as well using the variables - basically this means that once you log in with this additional username and password, a cookie will be made, so that you will automatic login the next time. By default this is switched on.


2. Toggle functions of FTP on or off.

You can switch on or off each function of vB FTP.

In "ftp.php", find:

PHP Code:
$allow_view    =    true;
$allow_create    =    true;
$allow_edit    =    true;
$allow_rename    =    true;
$allow_delete    =    true;
$allow_download    =    true;
$allow_upload    =    true
It's self explanatory. Change it to "false" if you want to switch that function off.


3. Type of files you can edit.

You can set the filename extension of files you want to be able to edit.

In "ftp.php", find:

PHP Code:
$text_files    =    array(            // Editable files
                               
"txt",
                               
"php",
                               
"phtml",
                               
"php4",
                               
"php3",
                               
"html",
                               
"htm",
                               
"css",
                               
"xml",
                               
"xsl",
                               
"bat",
                               
"log",
                               
"ini",
                               
"inf",
                               
"cfg",
                             ); 
Just add any extension you like to that list. There are other lists as well underneath this that you can customize.

4. Hide files or directories.

You can set files or directories to be hidden.

In "ftp.php", find:

PHP Code:
$ignore_file_strings        =    array(
                                               
".htaccess",
                                             );
$ignore_file_extensions        =    array(
                                               
"foo",
                                               
"bar",
                                             );
$ignore_directory_strings    =    array(
                                               
"secret dir",
                                             ); 
Just add it to the list. It's self-explanatory.


5. Changing the timeout (if you have trouble downloading or uploading large files).

In "ftp.php", find:

PHP Code:
$use_timeout    =    false;
$timeout    =    30
By default, this is switched off. You can turn it on by changing "false" to "true", and entering the timeout figure in seconds.


6. Changing the default directory, and ability to go higher up in directory structure all the way to ROOT directory.

I made the forum directory the highest directory you can access by default. To change the highest directory you can access-

In "ftp.php", find:

PHP Code:

$home_dir    
=    "../"
Change "../" to the default directory you want to open vB FTP in - put in the full path.

For example:

PHP Code:

$home_dir    
=    "/home/site/var/www/html/forums"
To go to the ROOT directory, replace it with this:

PHP Code:

$home_dir    
=    "/"
There you go! Whatever you put as the default directory is the HIGHEST directory you can go up to.

It works. So you can go as high as you want changing that variable.

Enjoy these extra features! They are already in-built in the hack.
Reply With Quote
  #34  
Old 10-03-2002, 09:12 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by dreamer
Hey is it possible to make it so that only certain people can access it? Not everyone with access to the admin cp. Maybe make it require 1 user name and password of my choice?

My previous post should clarify this. Yes, you can password protect vB FTP. Follow the instructions in my previous post.


Quote:

Also I can't seem to go up any higher then the forum directory..?

I did that intentionally. You can go higher easily, all the way to the ROOT directory. Read my previous post for the instructions.



Enjoy!
Reply With Quote
  #35  
Old 10-03-2002, 11:18 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have one comment.. why is this a FTP? Wouldnt it more so be a browser based file editor since it does not connect to a FTP? or does it?
Reply With Quote
  #36  
Old 10-03-2002, 11:20 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Neo
I also have one comment.. why is this a FTP? Wouldnt it more so be a browser based file editor since it does not connect to a FTP? or does it?
It is a browser-based FTP client integrated into vB. You can upload and download files, something a simple file editor cannot do. It does everything an FTP client does, except CHMODding files, which I can also add, but would need changing of the server PHP permissions, which is not feasible for most servers.
Reply With Quote
  #37  
Old 10-03-2002, 11:35 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats not really want I was asking. Do you us FTP connection in the PHP files since hence PHP has functions that will connect through FTP?
Reply With Quote
  #38  
Old 10-03-2002, 11:38 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why would I want to do that? PHP has an FTP function built-in but that needs to be enabled at a server-level, and most servers don't have this set up. So this hack acts like an FTP client, without using the "File Transfer Protocol" based on PHP. In fact, this hack is based on a PHP FTP client.

Why do you ask? Do you want me to change the name for some reason?
Reply With Quote
  #39  
Old 10-03-2002, 11:43 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In fact, some PHP FTP clients require the FTP feature of PHP installed on your server to be enabled. My hack does NOT require this. I use code that bypasses this requirment. Either way, the outcome is the same.

Also, some firewalls block FTP connections - this hack bypasses this. Which is why I use it at work, and others who don't have access to FTP or can't use it would benefit too.
Reply With Quote
  #40  
Old 10-03-2002, 03:47 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you should put the useful things in the first post

- miSt
Reply With Quote
  #41  
Old 10-03-2002, 05:21 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow this is a very interesting hack..

can there be user access on it?

Whatif you dont want certain admins touching things?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05731 seconds
  • Memory Usage 2,355KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete