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-03-2002 07:23 PM

Quote:

Originally posted by Mist
you should put the useful things in the first post ;)

- miSt

I have done that.

Erwin 10-03-2002 07:27 PM

Quote:

Originally posted by Da_GoTTi
wow this is a very interesting hack..

can there be user access on it?

No, of course not. The file is in your admin directory. :) It's protected like any other admin CP files.

Quote:


Whatif you dont want certain admins touching things?

Just password protect it - this hack has password protection built-in. Please read my posts in this thread to learn how to do it.

Bison 10-04-2002 05:25 AM

This is the hack of the year! :D

[Click - INSTALL] !!!!

Buddha 10-04-2002 01:57 PM

Quote:

Originally posted by Erwin
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.
is there a way you could set this up regardless, as i would love to test to see if my server would permit it.

JediKNight 10-04-2002 02:47 PM

I have WS_FTP pro, and my UltraEdit has FTP supports (i.e. open/edit/and save files from thru a FTP connection). But it will take longer if we are through an FTP connection than through web interface.

JK

Chris M 10-04-2002 06:08 PM

Erm...

Quote:

4. Hide files or directories.
So I can what - Hide certain PHP files? If so, how?

Satan

Erwin 10-05-2002 01:57 PM

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


- 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.

Erwin 10-05-2002 02:10 PM

Screenshot: Editing PHP File
--------------------------------------

NEW SCREENSHOT:

Added: Ability to search the code in the file

Erwin 10-05-2002 02:11 PM

Screenshot: CHMOD change
--------------------------------------

Changing the CHMOD file permissions of files or directories cannot be easier.

You use drop down menus with descriptions to do this.

NEW SCREENSHOT:

Added: Ability to CHMOD files and directories using dropdown menus!!!

Erwin 10-05-2002 02:15 PM

Quote:

Originally posted by hellsatan
Erm...



So I can what - Hide certain PHP files? If so, how?

Satan

Read my post in this thread about how to do this, or read the "ExtraFeatures.txt" file in the ZIP. :)

Erwin 10-05-2002 02:16 PM

Alright, it took me 3 hours to add these new features in, and it's 1:15 am here, so I'm going to bed. Let me know if you find any bugs. :) Good night all!

Martyjp 10-05-2002 04:49 PM

Fantastic :)

Dean C 10-05-2002 05:45 PM

indeed... awesome... i might just use this now Erwin...

GREAT JOB :D!

- miSt

Erwin 10-05-2002 09:21 PM

Quote:

Originally posted by Mist
indeed... awesome... i might just use this now Erwin...

GREAT JOB :D!

- miSt

:) Let me know what you think if you do use it.

Erwin 10-05-2002 09:36 PM

I just realized I forgot to update the version number to 2.0 in the ftp.php file and in my screenshots. I've just updated the ftp.php file for that minor cosmetic change. I'm too lazy to update the screenshots. :) But it should say version 2.0.

It's easy to change this:

In ftp.php, find:

PHP Code:

$version "Version 1.0"

Change to:

PHP Code:

$version "Version 2.0"

;)

Buddha 10-05-2002 11:05 PM

will check out asap.
thank you very much.

Buddha 10-05-2002 11:16 PM

i'm getting this
Quote:

Warning: chmod failed: Operation not permitted in (name removed)/admin/ftp.php on line 253
Changed permission on to 0777.
here's the line in question.
Quote:

chmod($home_dir.$path.$file,$level);
is that the server restrictions you were referring to erwin, or is this a potential bug?
thanks.

Erwin 10-06-2002 12:44 PM

The message you are getting is "Operation not permitted" - your server doesn't allow you to chmod via your browser.

SemperFidelis 10-06-2002 01:58 PM

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
Congratulations and thankyou
:)

Neo - this hack your working on
Is it what was discussed in general hacking chat ?
Basically a 'template' like editing system but for all your php files ?
If so, cant wait to see it

Graphics 10-06-2002 02:28 PM

Sweet work Erwin! I just gotta contact my host on a few things before I install it...

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?

Erwin 10-15-2002 09:33 PM

test

Erwin 10-15-2002 09:34 PM

Alright, I can post in this thread now... this thread was locked for some reason and I couldn't post in it...

Quote:

Originally posted by BigCheeze
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?

Uploading is working for me with no problems. The bug fix for image
cacheing does not affect uploading at all. The directory you are uploading
to must be 777. Try uploading to your "tmp" directory to see if it works.
Make sure also that your server is not in "safe mode".

I repeat - I have the same ftp.php file and all functions WORK for me.

Erwin 10-15-2002 10:10 PM

Well... upload is working for everyone else and myself... so I'm not sure what the problem is to be honest.

You are sure you are using version 2.1 - and that things are CHMOD. If you can do everything else, then upload should work... Make sure:

The files are not too big. They are files that are approved and can be seen vB FTP, and not something that would be hidden. You can upload using your normal FTP client (upload not blocked by server).

Do you get an error message? What exactly happens?

Quote:

BigCheeze wrote on Today 09:06 AM:
Quote:

Originally posted by Erwin
Uploading is working for me with no problems. The bug fix for imagecacheing does not affect uploading at all. The directory you are uploadingto must be 777. Try uploading to your "tmp" directory to see if it works.Make sure also that your server is not in "safe mode".

I repeat - I have the same ftp.php file and all functions WORK for me. [/B]
OK, I checked that stuff (Belive me I think it's me, or something I have done, not your hack). And still no go. I can edit files, save files, create files, create directories... but just not upload files. I even tired in the tmp directory, and I have made sure it's 777. In either php.ini or Admin CP safe mode is not selected.

Also I couldn't upload before the update to 2.1. So I know it's not that. I am just not sure what else I can check. I've very new to VB/PHP. I haven't done any programming in YEARS!!! I'm just a network engineer now, so.. I leave the programming to others! :D

So I'm just asking for some help or advice to what I'm doing wrong. THANKS!!!!!!!!!!!!!!!

BigCheeze 10-16-2002 02:44 AM

Quote:

Originally posted by Erwin
Well... upload is working for everyone else and myself... so I'm not sure what the problem is to be honest.

You are sure you are using version 2.1 - and that things are CHMOD. If you can do everything else, then upload should work... Make sure:

The files are not too big. They are files that are approved and can be seen vB FTP, and not something that would be hidden. You can upload using your normal FTP client (upload not blocked by server).

Do you get an error message? What exactly happens?


Ok... here are some screen shots for you.

http://www.worldcomputers.com/vbftp/pic1.jpg

http://www.worldcomputers.com/vbftp/pic2.jpg

http://www.worldcomputers.com/vbftp/pic3.jpg

http://www.worldcomputers.com/vbftp/pic4.jpg

http://www.worldcomputers.com/vbftp/pic5.jpg

Thanks!!! Don't know what's configured wrong.. but I'm sure something on my system is.

Erwin 10-16-2002 02:54 AM

Nice screenshots. :)

Let me get this straight - you're trying to upload angel.gif but it is not uploading.

That is very strange, because I just tried it here at work (behind a firewall) and I was able to upload a gif file to my tmp directory of my server 300 times the size of angel.gif.

It has to be something to do with your site - I can't imagine why I can do it and you can't.

Anyone else has the same problem? It works for me.

Erwin 10-16-2002 02:56 AM

Okay this may be one reason:

TAKE NOTE: The tmp directory is the place where image files are moved to when you want to view them. After you've viewed them, when you click "Go back", the image file is automatically deleted in the tmp directory. So if you uploaded the angel.gif file to the tmp directory successfully, then tried to view it, and then go to look for it, it will be gone.

This is intended. Try uploading it to another directory that has been CHMOD 777.

It's interesting that the file tells you that the upload is successful. Make sure that the file is not being uploaded to a strange place on your server by mistake for some reason.

BigCheeze 10-16-2002 03:17 AM

I was just uploading to the tmp directory as an example. However, it happens with any directory I try and upload....

My site is still very new. If your interested in looking, I can grant you access to things... This is just such an awsome idea (I have been an Admin on several other sites for the last year, this is my first attempt at having my own site), and I really want to make things work. Ahhhh.. it's been a rough week. Thanks for all your help!!!

Erwin 10-16-2002 03:49 AM

Check your PM. I will have a look at your site.

Naser 10-16-2002 03:07 PM

i`have install it in free sit

i`can`t inter the ftp coz it`s giving me logout ore logoin but ther is no ftp fill

vB FTP Version 2.1
.:Logout:.

.:Back:.

ERROR: Unable to open the specified path.

/mnt/host-users/sq8y/

can you tell me what`s wrong?

Erwin 10-16-2002 07:48 PM

Quote:

Originally posted by Naser
i`have install it in free sit

i`can`t inter the ftp coz it`s giving me logout ore logoin but ther is no ftp fill

vB FTP Version 2.1
.:Logout:.

.:Back:.

ERROR: Unable to open the specified path.

/mnt/host-users/sq8y/

can you tell me what`s wrong?

Most likely the free host is using an older version of PHP. You need PHP 4.1.2 or higher for this to work.


All times are GMT. The time now is 09:40 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.02031 seconds
  • Memory Usage 1,839KB
  • 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
  • (4)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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