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)

gmarik 05-24-2003 08:46 AM

I'll see how can I integrate with my X-Cart, but look promising.

Erwin 05-24-2003 08:59 AM

Quote:

05-04-03 at 05:44 AM charlyc said this in Post #160
This hack doesn't go to any lower directory than where the ftp.php is installed.
I have my forums in a forums directory so it stops there and can't go down to my public_html dir


Yes it can. :) Read this thread carefully - I tell you how to do so.

gmarik 06-10-2003 08:45 AM

I wanted to organize the code in a better way. There you can see, what I wanted to do, but something went wrong. Any ideas?

Create directory (line 461)

PHP Code:

 print "<a href='$PHP_SELF?path=".htmlentities(rawurlencode($path))."'>.:Back:.</a><br>";
 print 
"<form action='$PHP_SELF?action=create_directory' method=post>";
 print 
"The new directory will be placed in <font color='#FF0000'>".htmlentities($home_dir.$path)."</font><br>";
 print 
"Please choose a name for the new directory:<br><br>";
 print 
"<input type=text size=30 name=dirname>&nbsp;";
 print 
"<input type=submit value='Create directory'>";
 print 
"<input type=hidden name=path value='".htmlentities(rawurlencode($path))."'></form>"

PHP Code:

 Remade like:

   
doformheader("ftp","create_directory");

  
maketableheader("Create Directory");
  
makeinputcode("Name","dirname");
  
makehiddencode ("path",".htmlentities(rawurlencode($path)).");

  
doformfooter("Submit"); 


What it says:

ERROR: Unable to open the specified path.
PHP Code:

c:\myserver\root\mtrx\.htmlentities(rawurlencode($path)). 


Erwin 06-10-2003 09:11 AM

Why rewrite the code if it's working? :) It's not going to speed things up.

gmarik 06-10-2003 09:22 AM

Solved it. Why is the code so "dirty"?
So many print instead of one echo''; ;)

A request here/ :beard:

Something really good would be an option when I create a new file, to choose from some premade templates, something like the Tom Bot hack, only your, Erwin, version.

And a script, that automaticly deletes Thumbs.db, than are created by Windows XP and get rather large some times.

Sliderx 08-02-2003 10:07 AM

thx erwin a love that hack

Erwin 08-02-2003 11:40 AM

It works for vB3 too. :)

BigCheeze 08-02-2003 12:58 PM

Quote:

Today at 05:40 AM Erwin said this in Post #167
It works for vB3 too. :)

Sweet!!! Good to know I get to keep one of my fovorite hacks when I upgrade! :D

13th_Disciple 01-02-2004 08:00 PM

erwin.. i need a deal like this, and i have thought about coding one myself.. but i need users to be able to upload zip files, and only zip files, into a directory until i or another admin move those files to a correct location.. is there a way i can contact you for chat? i currently only use IRC, but also have ICQ if you have that..

hope you have subscribed to this thread.. will send pm as well..

Erwin 01-02-2004 10:44 PM

Quote:

Originally Posted by 13th_Disciple
erwin.. i need a deal like this, and i have thought about coding one myself.. but i need users to be able to upload zip files, and only zip files, into a directory until i or another admin move those files to a correct location.. is there a way i can contact you for chat? i currently only use IRC, but also have ICQ if you have that..

hope you have subscribed to this thread.. will send pm as well..

There are other hacks that do what you want... do a search for it. :)

gmarik 01-03-2004 12:00 PM

Erwin - any links to "those" hacks? :)

Erwin 01-04-2004 04:08 AM

One of them is an upload hack. Do a search for it. :)

chrisvonc 01-08-2004 01:40 PM

Ok... Bear with a newbie here... I installed this and it loads fine from the CP but then I too cant modify files because of the CHMOD settings. After reading the previous 12 pages, do I understand it correctly that to fix this to be able to modify the forums files, I need to change the permissions of the folders I want to work in to 777? Or do all the files inside need to be changed as well?

Also, the server side setting adjustment mentioned a few times earlier that would need to be made by the host to fix this as another option, can this be done per site or is that a server global thing meaning if they do it, its goes across anyones site on that box?

Cool hack Erwin. Thank you. If I get the permissions thing beat it will be perfect for me to be able to work on the fly.

Chris

Erwin 01-08-2004 07:22 PM

Quote:

Originally Posted by chrisvonc
Ok... Bear with a newbie here... I installed this and it loads fine from the CP but then I too cant modify files because of the CHMOD settings. After reading the previous 12 pages, do I understand it correctly that to fix this to be able to modify the forums files, I need to change the permissions of the folders I want to work in to 777? Or do all the files inside need to be changed as well?

Also, the server side setting adjustment mentioned a few times earlier that would need to be made by the host to fix this as another option, can this be done per site or is that a server global thing meaning if they do it, its goes across anyones site on that box?

Cool hack Erwin. Thank you. If I get the permissions thing beat it will be perfect for me to be able to work on the fly.

Chris

Change the folder first to 777 - that should be enough. If not, change the files inside as well. Do it with a separate FTP client. It is unlikely that your server is setup with permissions for you to change CHMOD of files and directories via PHP.

chrisvonc 01-08-2004 07:52 PM

Thanks Erwin! I will give it a go tonight from home.

- Chris


All times are GMT. The time now is 02:46 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.01306 seconds
  • Memory Usage 1,765KB
  • 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
  • (3)bbcode_php_printable
  • (4)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
  • (15)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