[rejected] upload mod dir to admin/mods through browser

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
Nuttzy99
Registered User
Posts: 927
Joined: Fri Aug 03, 2001 7:09 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by Nuttzy99 »

:wink:

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
My Other Site
User avatar
chickeneater
Registered User
Posts: 36
Joined: Mon Aug 11, 2003 3:08 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by chickeneater »

Nuttzy99 wrote:You guys are missing what FTP is doing. The FTP in EM is not a communication from your client (webbrowsing) computer to the server. It is from the server to the server. In order for EM to FTP from your machine to the server you would need to be running an FTP server on your client computer.

A 777 upload directory would work though.

-Nuttzy :cool:
hmm... that is odd, because there are several online file browsers/uploading scripts that work fine without 777. it shouldn't make a difference if it is server to server or client to server because that is what the other file browsers/uploading scripts do. I might be totally wrong
Nuttzy99
Registered User
Posts: 927
Joined: Fri Aug 03, 2001 7:09 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by Nuttzy99 »

chickeneater wrote:I might be totally wrong
Bingo :P

-Nuttzy :cool:
SpellingCow.com - Free spell check service for your forums or any web form!
My Other Site
User avatar
chickeneater
Registered User
Posts: 36
Joined: Mon Aug 11, 2003 3:08 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by chickeneater »

so you are saying that it is impossible to integrate a file browser/uploader into phpbb?
AlleyKat
Registered User
Posts: 57
Joined: Thu Aug 28, 2003 2:43 am

Re: upload mod dir to admin/mods through browser

Post by AlleyKat »

:D Honestly CE, don't you think it's a bit overshooting the target implementing half a pafiledb just to upload something you could FTP up in the blink of an eye? People have to do this anyway with the board itself - implementing upload routines and the related security issues are just... way too much, IMO. Sorry, mate, I see your point, but... I think this one goes to the rejected stack for now.

Maybe this kinda thing will be easier in phpbb 2.2 with its new functions :wink:
LLKwerv
Registered User
Posts: 81
Joined: Mon May 26, 2003 5:27 pm
Location: Wherever I am.
Contact:

Re: upload mod dir to admin/mods through browser

Post by LLKwerv »

Not a pafiledb. It would be very simple to write an uploader, I can write a simple, one-file uploader with less than 50 lines of code (probably). With a few more I could probably make it unzip zip files too.

And you don't need FTP, there is a function called move_uploaded_file that is very simple.

http://www.php.net/manual/en/features.file-upload.php" target="_blank
hello
morpheus2matrix
Registered User
Posts: 82
Joined: Sun Mar 02, 2003 11:54 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by morpheus2matrix »

LLKwerv wrote:Not a pafiledb. It would be very simple to write an uploader,
yes, but the difficulty is to make it compatible with all the PHP installation
I can write a simple, one-file uploader with less than 50 lines of code (probably). With a few more I could probably make it unzip zip files too.
again, yes, but it could work for you but not on my server

And you don't need FTP, there is a function called move_uploaded_file that is very simple.

and again, this function could work on some installation but not on other, where you need to use copy()


The best way to know how t's dufficult to implement an uploader for phpBB is to take a look at the Attachment MOD of Acyd Burn :wink:
phpBB MOD-Team Member - Check my MOD's

Support For my MOD's

Attachment MOD User Guide || Log Actions MOD User Guide

No support by PM/Email - Thanks - You want to help me ? Click here
LLKwerv
Registered User
Posts: 81
Joined: Mon May 26, 2003 5:27 pm
Location: Wherever I am.
Contact:

Re: upload mod dir to admin/mods through browser

Post by LLKwerv »

oh. Sorry, I was talking about my installations, I guess some places would need other stuff. :oops:

(why does that DO that with the oops?)
hello
morpheus2matrix
Registered User
Posts: 82
Joined: Sun Mar 02, 2003 11:54 am
Contact:

Re: upload mod dir to admin/mods through browser

Post by morpheus2matrix »

LLKwerv wrote: (why does that DO that with the oops?)
phpBB 2.2 is an alpha software so there is still bugs :wink:
phpBB MOD-Team Member - Check my MOD's

Support For my MOD's

Attachment MOD User Guide || Log Actions MOD User Guide

No support by PM/Email - Thanks - You want to help me ? Click here
LLKwerv
Registered User
Posts: 81
Joined: Mon May 26, 2003 5:27 pm
Location: Wherever I am.
Contact:

Re: upload mod dir to admin/mods through browser

Post by LLKwerv »

i know... I just like to talk
hello
Locked