vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Download, Upload, Edit, Rename, Delete, CHMOD Files or Dirs in Admin CP (https://vborg.vbsupport.ru/showthread.php?t=44197)

Erwin 10-06-2002 11:25 PM

Thanks. :) Let me know if there are any possible bugs. So far it all works well on my server, but every server is different, and I would like to know if there are anything that is not working as it should.

Buddha 10-07-2002 02:10 PM

thanks for the info erwin.
still a very handy addition for me (at work).
many thanks.

scottct1 10-07-2002 02:27 PM

Great hack, my question is is there an easy way to set the CHMOD 777 on all files? I set the CHMOD 777 for all the directories, but I can only save existing files if they are also set to 777.

I can chmod via FTP or cpanel file.

Any help would be appreciated.

Erwin 10-08-2002 01:03 AM

A file needs to be CHMOD to 777 to be able to edit it and save it.

A directory needs to be CHMOD to 777 if you want to upload to it.

You can still view and download without CHMODding though.

Bison 10-08-2002 01:05 AM

Quote:

Originally posted by v-net
Excellent work Erwin
It is super handy to have this.
Especially when you need to do some emergency work to your board from a PC other than your own!


EXACTLY!!!

The Ghost 10-09-2002 07:27 PM

Great Hack, works Great on 2.2.6!

BigCheeze 10-15-2002 03:41 AM

After some stupid user tricks on my part.. I got this working... w00t w00t.. Sorry.. it's my first hack install.

Anyways, when I view an image and try to select back I get this error:


Warning: OpenDir: No such file or directory (errno 2) in /home/www/html/forums/admin/ftp.php on line 302

Warning: Supplied argument is not a valid Directory resource in /home/www/html/forums/admin/ftp.php on line 303

Warning: Supplied argument is not a valid Directory resource in /home/www/html/forums/admin/ftp.php on line 305
.:Back:.

Clearing temporary files...
Temporary files deleted successfully!

Just click on the link to return to the file browser.


System: VB 2.2.8, RH 7.3, PHP 4.2... Thanks!! AWESOME HACK!!

Erwin 10-15-2002 04:51 AM

Version 2.1 Update

Aha... a bug! I forgot to put the TEMP cache directory variable in the right place - instead, I hard coded it by mistake! :) Thanks BigCheeze for letting me know.

I've updated the FTP.PHP file in the ZIP file to version 2.1 - just download and upload the new version.

Or, to upgrade from vB FTP 2.0 to 2.1, just do this:

In ftp.php, find:

PHP Code:

 $open opendir("./tmp/");
 while ((
$file readdir($open)) != false)
  if (
is_file("./tmp/$file")) @unlink("./tmp/$file"); 

Replace with:

PHP Code:

 $open opendir("$temp_dir");
 while ((
$file readdir($open)) != false)
  if (
is_file("$temp_dir/$file")) @unlink("$temp_dir/$file"); 

ie. - replacing the hardcoded "tmp" directory with the $temp_dir variable. The image viewing will not produce any errors.

Thanks!

Erwin 10-15-2002 04:58 AM

I also fixed up the version number bug in the footer (another variable that I hardcoded instead of using the correct variable) :p

To make life easier, download the 2.1 zip file, and upload ftp.php, replacing the old one. Remember to put in your username and password if you have set one in the ftp.php file.

BigCheeze 10-15-2002 01:03 PM

Thanks! Seems to have gotten that fixed. Only problem I have now, is I can't seem to upload anything. I have gone into th direcotry that I am trying to upload to, and checked the CHMOD and made sure it was at 777. I click up load it seems like it does it, but then... nothing happens. It's not there.

Any clue?


All times are GMT. The time now is 01:44 AM.

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.01484 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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