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


All times are GMT. The time now is 02:58 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.01253 seconds
  • Memory Usage 1,749KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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