View Full Version : Download, Upload, Edit, Rename, Delete, CHMOD Files or Dirs in Admin CP
Erwin
10-01-2002, 10:00 PM
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/showthread.php?postid=305466#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
Erwin
10-02-2002, 01:21 PM
Screenshot: Main Page
--------------------------------
NOTE: The screenshots say "Version 1.0" but it's actually the screenshots for "Version 2.0" - I forgot to change the version number when I made them, and I'm too lazy to make new screenshots. ;)
What you see in your Admin CP (this screenshot uses the standard Admin CP cp.css - the hack will be customized to your own Admin CP colors).
NEW SCREENSHOT:
Added: CHMOD values for files and directories
Erwin
10-02-2002, 01:39 PM
Screenshot: Editing PHP File
--------------------------------------
This is what you see when you are editing a PHP file. It's similar to the template system, isn't it. :) Who needs FTP anymore?
NEW SCREENSHOT:
Added: Ability to search the code in the file
Erwin
10-02-2002, 01:40 PM
Screenshot: Viewing GIF/ JPG file
--------------------------------------------
You can view GIF/ JPG files in your Admin CP, and ZOOM IN or ZOOM OUT... the page will also tell you the size of the image file and the scale of the zoom...
Erwin
10-02-2002, 01:40 PM
Screenshot: Downloading file
----------------------------------------
Click on the "Disk" icon to instantly download any file from your server to your local hard disk if you want to backup your files or edit it on your local drive.
Erwin
10-02-2002, 01:41 PM
Screenshot:Uploading file
-------------------------------------
You can upload up to 4 files at once to any directory on your server.
Erwin
10-02-2002, 01:41 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!!!
Dan Flynn
10-02-2002, 02:17 PM
Very cool,
I think this would be good for anyone regardless of there ftp access to a client.
I think it's just more convient to do it all right in the cp sometimes. I know this is your first version and I will install later today.
How about adding a find feature to this hack. that would really top it off. :)
Great Job
Erwin
10-02-2002, 02:20 PM
[explanation removed since it is no longer needed]
Erwin
10-02-2002, 02:24 PM
Edit: I've added the find feature already in Version 2.0 :)
Dan Flynn
10-02-2002, 02:31 PM
Thanks,
That's good to know. I do mean like the feature that's in the template mod area. Screen attached :)
You say to CHMOD 777 all the directories you may want to edit via adminCP, isn't this extremely dangerous?
Dean C
10-02-2002, 03:40 PM
good god... this is an amazing idea doctor :D
Hack rating: 9/10
- miSt
zachb
10-02-2002, 03:42 PM
10/10! this is such a great hack. thanks a lot erwin!
installed. :D
*my vote for hack of the month if it ever comes back.
Velocd
10-02-2002, 04:04 PM
Hey pretty neat, although I'll stick with CuteFTP Pro ;)
Defiantly nice for those without FTP agents.
Dark Shogun
10-02-2002, 05:04 PM
Dang good hack Erwin. I have CuteFTP Pro also but I am going to try this out for awhile.
/me clicks install
Dark Shogun
Buddha
10-02-2002, 06:12 PM
installed it.
thank you very much, good doctor.
i prefer using smartFTP, but from work, i'm behind a firewall that prevents ftp access... but it allows http access. so i've been editing files using the engine hack, which is great, but limited. this will really help from work.
is there a way you can set it up so that you can change the chmod through this ftp?
that would be fantastic.
I use Cute ftp pro myself, im installing this one anyone, can come in handy :)
Link14716
10-02-2002, 07:12 PM
yeah, CuteFTP Pro has CuteHTML integrated, works kickass because you get a huge find/replace box :) I think I'll stick with it.
Nice job on this hack. I think a lot of people have been wanting something like this for a while ;)
Erwin
10-02-2002, 08:13 PM
Originally posted by Tha Rock
You say to CHMOD 777 all the directories you may want to edit via adminCP, isn't this extremely dangerous?
It's not extremely dangerous. But there are some risks if someone can get access to your server, which should not be possible. There is no other way to edit or change files and directories in PHP.
Bear in mind that you only have to CHMOD 777 the directory and file you want editable. And if you don't want to CHMOD 777 anything, you don't have to.
Without CHMOD 777 (ie. just installing the hack as is), you can still:
1) Browse your site directories
2) Look at all your files
3) Open and view contents of all your files
4) Download files to your local hard disk
5) View, zoom in or out with image files
6) Upload files into tmp directory
7) Edit files in tmp directory
8) Create files in tmp directory
9) Delete files in tmp directory
10) Rename files in tmp directory
With CHMOD 777, you have the additional ability to:
11) Upload files in all directories
12) Edit files in all directories
13) Rename files/ directories in all directories
14) Delete files/ directories in all directories
15) Create files/ directories in all directories
But this hack is useful in itself even without CHMOD 777 anything. :)
This is also why there is a "tmp" directory that you make CHMOD 777. It stores image files temporarily to be viewed, but you can also upload files into it and edit them there.
Erwin
10-02-2002, 08:24 PM
Originally posted by Dan Flynn
Thanks,
That's good to know. I do mean like the feature that's in the template mod area. Screen attached :)
It's possible, but I won't do it, because it works the same as the CTRL-F button in your browser, so there's not much point bulking up the file for no real reason. :)
DrkFusion
10-02-2002, 09:44 PM
I use CuteFTP Pro too :) ITs the best especially the html editer built within.
Also Tha Rock it is not completly dangerous only people whom are on your server, and know your absolute path can upload files to your site, as long as you have your site# used in your path then its basically impossible. But i am sure there are other ways which I do not know, the average person does not know how, or doesn't have intentions to cause harm.
Anyways good hack Erwin
Regards
-Arunan
Unknown553
10-02-2002, 11:03 PM
Doesn't work for me, when I load ftp.php it's just a blank page, all white. I edited the file to try both OSes, still nothing. Ideas?
Server running on FreeBSD / PHP v4.0.6 Safe Mode
Henry-RS
10-02-2002, 11:03 PM
This is literally useless for editing files without a find feature.
Velocd
10-03-2002, 12:04 AM
Can't you just go to "edit -> find" in the Internet Explorer menu bar at the top? As for a FIND & REPLACE feature, just download TEXTpad (best free text editor out there) and use it's powerful FIND & REPLACE feature.
mewgood
10-03-2002, 12:29 AM
This is a great hack 100% will use it but will wait awhile for ppl to find bugs...
Erwin
10-03-2002, 02:38 AM
Originally posted by Henry-RS
This is literally useless for editing files without a find feature.
I've added the FIND feature for editing files in Version 2.0 as requested. :)
Erwin
10-03-2002, 02:38 AM
Originally posted by Unknown553
Doesn't work for me, when I load ftp.php it's just a blank page, all white. I edited the file to try both OSes, still nothing. Ideas?
Server running on FreeBSD / PHP v4.0.6 Safe Mode
This needs PHP 4.1.2 or higher. Sorry. You should get your host to upgrade, since 4.0.6 is fairly old.
I currently have something like this in development but its ment for hacking.
iJason
10-03-2002, 06:33 AM
OMFG this hack is so perfect for me! I have been looking for something like this for a long time! Thank you so much! You see at school I don't have access to get through the proxy so I can't use an FTP program but with this I don't need to! Thanks alot!
iJason
10-03-2002, 06:53 AM
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..?
Erwin
10-03-2002, 08:30 AM
Additional Features (already inbuilt)
1. Password Protect vB FTP.
In "ftp.php", find:
$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:
$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:
$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:
$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:
$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:
$home_dir = "../";
Change "../" to the default directory you want to open vB FTP in - put in the full path.
For example:
$home_dir = "/home/site/var/www/html/forums";
To go to the ROOT directory, replace it with this:
$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. :)
Erwin
10-03-2002, 09:12 AM
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. :)
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!
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?
Erwin
10-03-2002, 11:20 AM
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.
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?
Erwin
10-03-2002, 11:38 AM
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?
Erwin
10-03-2002, 11:43 AM
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.
Dean C
10-03-2002, 03:47 PM
you should put the useful things in the first post ;)
- miSt
GoTTi
10-03-2002, 05:21 PM
wow this is a very interesting hack..
can there be user access on it?
Whatif you dont want certain admins touching things?
Erwin
10-03-2002, 07:23 PM
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
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.
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
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...
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
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
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:
$version = "Version 1.0";
Change to:
$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
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.
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
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:
$open = opendir("./tmp/");
while (($file = readdir($open)) != false)
if (is_file("./tmp/$file")) @unlink("./tmp/$file");
Replace with:
$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...
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?
BigCheeze wrote on Today 09:06 AM:
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
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
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.
Naser
10-16-2002, 10:05 PM
i`have install it in my web
www.skuwait.com/test/
but still did not work :( if i`go to vBFTP frome CP it open white windo nothing in it blz help me
Bloodfist
10-17-2002, 01:08 AM
This is an excellent hack. Although I will not install it on my forums for now because I do not need it (I will be upgrade to vb3 soon anyways), I'll look for a similar version for vb3.
Great hack, like i Said.
Erwin
10-17-2002, 02:36 AM
Originally posted by Naser
i`have install it in my web
www.skuwait.com/test/
but still did not work :( if i`go to vBFTP frome CP it open white windo nothing in it blz help me
What version PHP, Apache and vBulletin are you using?
Erwin
10-17-2002, 02:36 AM
There's no point giving me a link to the URL - I cannot access your Admin CP so I cannot access vB FTP.
BigCheeze
10-19-2002, 01:59 AM
I m n00bie gawd!! HAHAHA!!
I figured out my problem Erwin... in PHP.INI upload via HTTP was off. I turned it on, and restarted httpd, and BOOM! Uploads work!!
w00t... w00t.. phear me!! HAHAHA!
Thanks for the great product, and the hand!!!
groovesalad
10-20-2002, 06:21 PM
Why do I get this line of code added to the end of the PHP file when I download a php file using this hack?
<a href='/forum/admin/ftp.php?path=./'>.:Back:.</a><br><br><font color='#009900'>Download completed successfully!<br><br></font><head><title>.: vB FTP Version 2.1 - by Dr. Erwin Loh :.</title><link rel='stylesheet' href='../cp.css' type='text/css'></head><br><br><div class='line_bottom'> </div><center>vB FTP Version 2.1 brought to you by Dr. Erwin Loh</center><br><br><br>
I need to get that to stop because it is inserting itself after the ?> and it's throwing my code off.
Erwin
10-20-2002, 07:21 PM
@ Groovesalad:
When I download files, that is NOT inserted after the ?> - it's an error caused by your server, not by this hack.
What version PHP have you got installed on your server? This hack needs PHP 4.1.2 or higher. I suspect it's something not set up properly on your server. Also, in your server's PHP.INI file, make sure download via HTTP is "on". The download feature should work fine. At least for me and the other vB FTP users.
groovesalad
10-20-2002, 09:11 PM
Originally posted by Erwin
@ Groovesalad:
When I download files, that is NOT inserted after the ?> - it's an error caused by your server, not by this hack.
What version PHP have you got installed on your server? This hack needs PHP 4.1.2 or higher. I suspect it's something not set up properly on your server. Also, in your server's PHP.INI file, make sure download via HTTP is "on". The download feature should work fine. At least for me and the other vB FTP users.
I'll check on the version of PHP, not sure what version. I guess I should contact my hosting company and ask them about the PHP.INI file, because I don't think I have anything to do with that.
One quick question. I upgraded from 2.2.6 > 2.2.8. When I installed this hack now, it keeps giving me a login when I click on vbFTP in the Admin CP. I can't seem to get past that. I don't have a pass set. I tried setting one and then logging in, still no go. So I took the username and pass away from FTP.PHP and still I can't get in. Any ideas?
Erwin
10-20-2002, 10:23 PM
Originally posted by groovesalad
I'll check on the version of PHP, not sure what version. I guess I should contact my hosting company and ask them about the PHP.INI file, because I don't think I have anything to do with that.
One quick question. I upgraded from 2.2.6 > 2.2.8. When I installed this hack now, it keeps giving me a login when I click on vbFTP in the Admin CP. I can't seem to get past that. I don't have a pass set. I tried setting one and then logging in, still no go. So I took the username and pass away from FTP.PHP and still I can't get in. Any ideas?
Also, is your server Linux or Win NT based? Depending on which one it is, follow the instructions to change the setting in the vbftp.php file.
As for you login problem - have you got cookies switched on in your browser? The vBFTP program uses the same login as your Admin CP. Setting username and password in the vbftp.php adds a SECOND layer of username and password (MD5 encrypted). Both of these uses cookies, so make sure that is switched on.
For 99% of server this hack is going to work out of the box. For the remaining 1%, it's a matter of tweaking the server to make it work.
groovesalad
10-21-2002, 12:50 PM
It's Win NT based and I changed the number to 1. Is there a way to get rid of that login? I have everything set correctly and it won't let me past it. I don't even need it to be there.
Erwin
10-21-2002, 10:35 PM
The login shouldn't be there if you left the username and password blank. Download the ZIP and upload a fresh unchanged copy of ftp.php to your admin folder again, making sure to only change the NT setting to 1.
groovesalad
10-21-2002, 10:38 PM
I cleared my cookies and tried again..everything worked :)
Wells
10-25-2002, 06:58 PM
Cool, but I can not download (my dial-up can't) and install it. Someone ! please e-mail me. Plz...
Erwin
10-26-2002, 05:53 AM
Originally posted by Wells
Cool, but I can not download (my dial-up can't) and install it. Someone ! please e-mail me. Plz...
Why can't you download this hack with your dialup ISP?
adriandaz
11-03-2002, 04:02 AM
this is way cool :D thanks Doc.
assassingod
11-03-2002, 11:56 AM
Working fine until:
Edit: Sorted, I hadnt CHMODed the files - how stupid of me:p
getting this error when CHMODing a directory/file:
Warning: chmod failed: Operation not permitted in /home/ffdcsite/public_html/forums/admin/ftp.php on line 253
Changed permission on to 0777.:Back:.
Erwin
11-03-2002, 06:17 PM
Like I said in the first post, most servers disallow browser-based CHMODDING of files. :)
assassingod
11-03-2002, 06:28 PM
Ah, yes I missed that. I see:) Thanks for the hack Erwin!:)
KaiN6993
11-08-2002, 03:30 AM
Amazing!!! How do you guys do it? best hack so far.
Darkwaltz4
11-10-2002, 08:46 PM
wow, ill havta say that while my co-admin thought such a add-on would be useless, i find it cuts down on so may things..
since im always hacking my boards, the ability to search files, and save them live is great! it removes about 3 major steps in hacking--excellent..
BigCheeze
11-16-2002, 08:12 PM
Grrr... this is a GREAT hack. Now for some reason it stoped working locally on my LAN. Works across the WAN though...
Any clues??? (Yes it used to work, so I know something changed that "broke it"... but I don't know what) And I'm not blaming the hack... I know it's something some place on my side... but I don't know where.
Erwin
11-17-2002, 04:58 AM
Check to make sure that PHP permissions for file downloads, uploads etc. are all set up properly on your server. Make sure you are using at least PHP 4.1.2 or better. Otherwise, I don't know since like you say it's something on your side, so it could be almost anything.
z3comp
11-17-2002, 02:21 PM
PROBLEM! When i try to run the script, Apache Crashes.....thats right, i installed it on my localhost, and apache crashed!
HELP! I have another file manager running in the root DIR, so i know it can't be file managers in general....
Erwin
11-17-2002, 05:45 PM
Originally posted by z3comp
PROBLEM! When i try to run the script, Apache Crashes.....thats right, i installed it on my localhost, and apache crashed!
HELP! I have another file manager running in the root DIR, so i know it can't be file managers in general....
Are you running at least PHP 4.1.2? Are you running the latest version of Apache? Did you set the config file properly to make it compatible with either Linux or Windows?
Other than those suggestions, I have nothing else to add. The hack does work on most servers, but for some servers, it may just not work because of the way it's set up.
BigCheeze
11-18-2002, 03:19 PM
Originally posted by Erwin
Check to make sure that PHP permissions for file downloads, uploads etc. are all set up properly on your server. Make sure you are using at least PHP 4.1.2 or better. Otherwise, I don't know since like you say it's something on your side, so it could be almost anything.
I figured it out. It was becasue I had the zlib compression turned on in my php.ini file. It was causing all kinds of strange little problems.
Erwin
11-18-2002, 05:08 PM
Glad to know it's fixed! :)
camikazi2k
11-19-2002, 02:13 AM
Erwin this is an awesome hack
it would be WAY BETTER HACK if u can dothis.
implement the hack into vbulletin 2.2.8 which
1. The uploading by user would be uploaded to an FTP
2. Downloaded files would be downloaded form an ftp
two small things are they hard to do?
i know alot of ppl well love this because it will save us alot of time and money.
Erwin
11-19-2002, 04:09 AM
Originally posted by camikazi2k
Erwin this is an awesome hack
it would be WAY BETTER HACK if u can dothis.
implement the hack into vbulletin 2.2.8 which
1. The uploading by user would be uploaded to an FTP
2. Downloaded files would be downloaded form an ftp
two small things are they hard to do?
i know alot of ppl well love this because it will save us alot of time and money.
This hack is meant as an admin feature, to help you manage the files for your forum easily. It is not meant to be used to make an FTP server. :) I will not be converting this site to allow members access to the server - the potential for abuse is too great.
camikazi2k
11-19-2002, 05:10 AM
sorry Erwin abuse to what. converting this to be for an ftp server will be the best hack out there ever.
as you know it cost alot of $$ to get a good ammount of space on hosting site.
i mean alot of people that have dsl or cable can run the main site on the hoting minimum and then just put there file on there PC.
it's a great hack. and it would be awesome to see it in an FTP design for users.
dont get me wrong i just want to save money and thatas wat everybody want to do
Erwin
11-19-2002, 05:19 AM
What you want is a totally different hack to this one, using very different permissions, and would take a lot more time since it will need to be template-based to integrate it into vB.
When I say abuse, I mean that this will give a lot more access to your server which is a security risk.
camikazi2k
11-19-2002, 04:22 PM
Is it security risk. i see no risk at all. i wont argue about it. but here is how i was think it will work
you going to have Two folders.
Folder with anyn access or user name and password with permission to read.
second folder will be an upload folder to each person personal folder
its going to work same as VB but with FTP integration
i would do it if i know anything about PHP :)
BigCheeze
11-19-2002, 08:22 PM
Like I said, I'm using this a little differently. I have 2 copies of ftp.php (one called ftp.php, one called ftp2.php) in my admin directory.
The first one is to be used just to manage my forums. So it's access only starts at the /html folder. But I have the 2nd copy that I want to use to have complete access to my server (Like I said.. I really like this hack! It's GREAT!!). And becasue of the access level I want it username & password protected. But they both appear to be using the same cookie, so it's causing some strange results.
Erwin - is there anything quickly I can do to change the 2nd php file to use a different cookie?? Thanks!!!
Erwin
11-19-2002, 09:38 PM
Originally posted by BigCheeze
Erwin - is there anything quickly I can do to change the 2nd php file to use a different cookie?? Thanks!!!
In your ftp2.php, find:
cookie_username (with and without $ in front)
Change it to
cookie_username2
Do the same for cookie_password.
See if that works. :)
BigCheeze
11-20-2002, 02:29 AM
Originally posted by Erwin
In your ftp2.php, find:
cookie_username (with and without $ in front)
Change it to
cookie_username2
Do the same for cookie_password.
See if that works. :)
https://vborg.vbsupport.ru/
OOO Great Erwin... I bow to you!
https://vborg.vbsupport.ru/
THANKS! Works GREAT!!!!
BigCheeze
11-20-2002, 03:30 AM
And, I made it so ftp.php won't display ftp.php or ftp2.php.
:D
Not like it's REAL secure, but it add's a little extra security so only I can access everything, but the other admin's can still access the forum. Again.. THANKS for my favorite and most used hack!!!
Davey
12-03-2002, 08:53 PM
A couple of things.
For some reason (and don't start saying stuff :P) CHMODDING will not work for me.
I run my server locally (this is the part), and I KNOW there is no need for FTP access, but I want to give access to my other Administrators. Also, if I ever find a host, I will have this access to FTP using this, since no other FTP clients really please me.
Okay here's what I mean.
http://localhost/vB/admin/ftp.php?action=chmod_prompt&path=announcement.php.
This is to CHMOD 'announcement.php'. The CHMOD is 666. I click on '666' to change the CHMOD. I selected ' 7 - Write, Execute & Read' for Owner, Group and Public. It didn't CHMOD. No errors, nothing.
The other thing, is the hack on the whole is working VERY slowly. Twice as slow as other .php pages. I can't understand why, though.
Any ideas/suggestions will be appreciated.
Thanks.
Dave.
Erwin
12-03-2002, 09:08 PM
What version PHP are you using? This hack needs at least 4.1.2.
As for CHMOD, you need to enable it in your php.ini. I don't know how to do this to be honest, I have my server technical guys do it.
As for the speed, this hack works fast for me. I can upload, download, edit files, etc. just as fast as I do using an FTP client.
Davey
12-03-2002, 09:13 PM
Umm, I'm using php version: 'PHP Version 4.2.3'.
Dave.
Erwin
12-03-2002, 09:14 PM
Security on most servers will prevent remote CHMOD via browser from working. It needs to be explicitly enabled.
Davey
12-03-2002, 09:16 PM
As my signature explains, it's being run on this system as we are speaking.
Any ideas on how to do it, still?
I can access and edit any files necessary. Just explain what and how.
Thanks.
Dave.
Erwin
12-03-2002, 09:31 PM
You run a site off a 56k modem connection??? LOL! I am impressed! :) I will try to catch it when you're online.
Davey
12-03-2002, 09:53 PM
Well anything's possible, no matter how insufficient it may be =P. Besides it's not even completely setup yet. I gotta edit forum permissions yet, *rolleyes*.
Yeah, Edwin you're a moderator, you can find my site from there and keep trying it. Eventually you will get lucky =).
But I can't find any relevant text in php.ini that could determine whether CHMOD is on/off. I did glimpse down it, by the way.
Dave.
PS: If you are on MSN/AIM, PM me the addy =D I will contact you and set it up just for you =) =P =D.
NTLDR
12-03-2002, 10:00 PM
I would guess that your using Windows, if your using IIS then there isn't CHMOD, you need to edit the security settings for the files to determin what access ISS has to them and uses browsing the site.
BigCheeze
12-04-2002, 12:06 AM
Actually I would like to find out how to do the CHMOD remotely as well. I have it on Red Hat 7.2 w PHP 4.1.2
And Davey e-mail me at brian@[NoSpam!!]networkstoday.com or AIM @ BigCheezeAOC and we can talk about hosting you.
Davey
12-04-2002, 02:26 PM
Okay, what is of my forum is open, as of now (4:29pm GMT(0)).
Check it out if you want to, but it's not a pretty site at the moment.
I emailed you BigCheeze.
Dave.
freeshares1
12-04-2002, 05:25 PM
fantastic!!!!
Davey
12-04-2002, 10:01 PM
I'm now closing my server for a while, since packet kiddies found out about the DNS address.
Dave.
Erwin
12-05-2002, 01:19 AM
These packet kiddies...
* Erwin shakes his head... ;)
Davey
12-05-2002, 02:31 PM
That's the only reason I don't like putting up servers of any kind (forums, websites, IRC, etc.), because they ALWAYS find a way of spoiling it.
Sad really, isn't it?
Dave.
DaveRobbo
12-06-2002, 11:42 AM
I've had this hack installed for a couple of weeks now and been very impressed with it. However, in the last couple of days it's just stopped working with no warning. I've not knowingly changed anything in my server setup, now have I (knowingly) changed any files.
Is there anything that my hosts could have changed to stop it working? They had some downtime for routine maintenance a couple of days ago and it hasn't seemed to work since then. WHat sort of things should I be looking for and asking them?
When I click the vBFTP link in Admin CP all I get is a white background load in the main frame - and nothing else - no errors.
Cheers,
Dave
Davey
12-06-2002, 01:40 PM
Perhaps your provider downgraded their PHP version, which might explain the downtime.
That's all I can think of.
Dave.
PS: Try emailing them to ask them if they have the version of PHP required installed.
Erwin
12-06-2002, 10:57 PM
Davey is right... this hack needs PHP 4.1.2 or higher... It would be strange for your host to downgrade, but it's possible. They might have disabled all the FTP functions in PHP as well... just email and ask them.
DaveRobbo
12-09-2002, 11:49 AM
Thanks for the info guys ... would disabling of the FTP functions in PHP give rise to these symptoms? I'm just getting a white background in the main frame of Admin CP
Erwin
12-09-2002, 07:56 PM
I don't know to be honest - never tried it. Ask your host what they changed on the server.
Julio
12-12-2002, 03:15 PM
Erwin:
I know this may be a silly question, but I will not loose anything by asking.
Is there a way we can download a whole directory?
I mean... Is great we can upload/download/edit files from work, some from school, or places where we don't have access to an ftp client.... but for example... I have an emergency where I need to backup my public_html folder.... It would be nice to be able to download a full folder...
Can this be done?
BigCheeze
12-12-2002, 03:39 PM
DaveRobbo - I had a problem just like that... It had to do with turning on the site compression (The GZIP option under the vBulletin Options in the Admin CP). If it's on, try turnning it off.
Erwin
12-13-2002, 01:33 AM
Mmm... I will have to recode it... if I have time I will look into it... I'm not sure if it's possible via a browser, but it should be...
Erwin
12-13-2002, 01:34 AM
Also, I use this hack with GZIP switched on and it works fine for me.
BigCheeze
12-13-2002, 03:55 AM
Erwin... this hack isn't the only problem. On my system when I turn on GZip, LOT's of stuff (including the site) get's screwed up in one way or another.
Erwin
12-13-2002, 06:01 AM
BigCheeze, that means that your host already has ZLIB or GZIP running - you can't compress the info twice. :)
BigCheeze
12-13-2002, 12:12 PM
Hmmm.... Wonder how I did that... HAHAHA! I'm my own host :D
Guess I need to go pick up that Red Hat book huh :D
Julio
12-13-2002, 02:46 PM
Erwin: It should be possible since it has been done for another forum software... Take your time... Im not rushing anyone to do it... just to let you know it would be a nice idea if it could be included. (By the way... I sent you a PM)
EvilLS1
12-13-2002, 11:48 PM
Looks like a nice hack.. I'll have to add this one to my "to-do" list. :)
a43079
12-16-2002, 11:31 PM
is there a way a tessing can be added that will allow you to change drives for example i store my haces on another drive and i would like to goto that drive say the board is on drive c: and i wanted to goto drive d:...
thanks
a4
Erwin
12-17-2002, 02:39 AM
No.
I made it so you cannot point to remote or separate drives or servers, to prevent leeching.
Boofo
12-17-2002, 10:44 AM
Erwin, is there a way to copy files into the temp directory with this hack so we can edit them and copy them back to the right dir? That would fix the problem of having to chmod everything, wouldn't it?
a43079
12-17-2002, 10:44 AM
ok is there a way i can change that just so i can access my other drive...or no way possible.....
Thanks for the quick answer..
A4
Erwin
12-17-2002, 07:39 PM
Originally posted by Boofo
Erwin, is there a way to copy files into the temp directory with this hack so we can edit them and copy them back to the right dir? That would fix the problem of having to chmod everything, wouldn't it?
No, because once you copy a file to the temp directory, and edit it, you can't copy it back as you cannot replace a directory or file without chmodding it. :)
Erwin
12-17-2002, 07:41 PM
Originally posted by a43079
ok is there a way i can change that just so i can access my other drive...or no way possible.....
Thanks for the quick answer..
A4
Oops... sorry, I thought you were asking about my Flash Player hack! :) That's why I was talking about pointing and leeching...
Mmm... changing drives... I don't think so. You may have to just put the vBftp.php file on the separate drive.
Boofo
12-17-2002, 07:42 PM
The reason I asked is because both EditPlus2 and Total Commander allow me to edit files even when they are not the right chmod. They copy them to a temp dir first, edit them and then copy them back without having to change anything.
a43079
12-17-2002, 07:49 PM
Originally posted by Erwin
Oops... sorry, I thought you were asking about my Flash Player hack! :) That's why I was talking about pointing and leeching...
Mmm... changing drives... I don't think so. You may have to just put the vBftp.php file on the separate drive.
ok i will try
Thank you
Erwin
12-17-2002, 08:03 PM
Originally posted by Boofo
The reason I asked is because both EditPlus2 and Total Commander allow me to edit files even when they are not the right chmod. They copy them to a temp dir first, edit them and then copy them back without having to change anything.
Really? Are they browser-based FTP PHP programs? I will need to look at the source code to see how they do it. Can you link to them please?
Boofo
12-17-2002, 08:12 PM
No, they aren't browser based. At least I don't think they are, in the way you mean it. Total Commander (used to be called Windows Commander) is a file manager and EditPlus2 is a programmer's editor. It, like TC, has FTP support built in. TC's site is:
http://www.ghisler.com
and EditPlus2 can be found at:
http://www.editplus.com/
Erwin
12-17-2002, 08:23 PM
If an FTP program is not browser-based, it is authenticated using normal FTP so you don't need CHMOD.
For a browser-based PHP FTP program to work, you need to chmod. Trust me, I've investigated this. There are ways to avoid it, but it will not be PHP based.
Boofo
12-17-2002, 08:28 PM
So there's no way to do the temp file thing then, huh? I am kind of worried about doing everything 777 and leaving it that way. I've never had any problems but I have heard horror stories about it. Is is really that dangerous to do it like that? Do you have it set up like that?
Erwin
12-17-2002, 08:53 PM
I have a temp directory with stuff in it.. Certain files I edit a lot I chmod 777 too. So far I've had no problems.
Boofo
12-17-2002, 08:58 PM
But how do you copy them back to where they belong when you get done editing them?
Erwin
12-17-2002, 09:01 PM
I don't. I use it to store certain files. I chmod certain files that I do edit.
grog6
05-03-2003, 04:01 PM
* grog6 clicks INSTALL :)
charlyc
05-03-2003, 06:44 PM
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
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
05-04-03 at 05:44 AM charlyc said this in Post #160 (https://vborg.vbsupport.ru/showthread.php?postid=390952#post390952)
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)
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> ";
print "<input type=submit value='Create directory'>";
print "<input type=hidden name=path value='".htmlentities(rawurlencode($path))."'></form>";
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.
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=54123) 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
Today at 05:40 AM Erwin said this in Post #167 (https://vborg.vbsupport.ru/showthread.php?postid=422590#post422590)
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
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
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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.