 |
| Help (Within a Deep Forest) [HELP] | |
|
 |
Nifflas
Member
Topics: 80 Replies: 1599
Registered: 05.Mar.04 |
 |
I need a php script in one file that allows me to:
* Log in with an username or password (it has to be safe).
...and once logged in:
* Upload files to only the script folder, only with the extension .exe or .zip
* Remove files from the script folder, only with the extension .exe or .zip
* Display the filesize of the .exe's and .zip's currently in the script folder.
The reason for the two file formats is that the game will come in two versions: .exe (installer) and .zip (no installer)
This is important, because some people have offered some space on their server, for Within a Deep Forest. But I need a way to safely log in, and upload new versions of the game. They might not wanna allow me to upload php files trough the script, since I could upload a file manager and use it to change their entire website, so being restricted to only .zip and .exe files would be great.
The one who wants to host my files should just be able to upload this lil script to their site, and not have to be afraid that it can be abused to damage their website, even if someone steals my password (which I really doubt will happen though).
Valid html output, and clean commented easy-to-understand code is important - so the person who will have it on his server can look at the code, and see that it's safe. The more minimal, the better, absolutely no unnessecary features at all.
Anyone feel like helping me? I don't have the skills to code this myself yet, and all php file managers avalible gives me too much permissions.
A proud member of Generally, I agree with Cooth Brotherhood
within a deep forest project site. |
|
Vegaro
Member
Topics: 48 Replies: 661
Registered: 05.May.04 |
I'd love to help but I don't know any php. What are you developing the game with?
This message is 100% meat free |
|
Nifflas
Member
Topics: 80 Replies: 1599
Registered: 05.Mar.04 |
answering that means I have to admit how lame I am. Well, I use multimedia fusion, but I created my own lill custom game engine within it, rather than using premade physics 'n movements.
my earlier games are avalible at my website... but really, they don't compare to this one at all.
A proud member of Generally, I agree with Cooth Brotherhood
within a deep forest project site. |
|
Vegaro
Member
Topics: 48 Replies: 661
Registered: 05.May.04 |
A year ago i'd agree it's a little lame, but at work we are doing multiplayer games with the clientside in flash, and I have to admit Flash makes life SO MUCH EASIER!! So what matters is the end result. Fun, or not!
Downloading Operator status.. with 30 megs it'll take some time
This message is 100% meat free |
|
MatthijsB
Artist
Topics: 40 Replies: 2038
Registered: 10.Feb.03 |
you'll need to chmod the folder, which could potentially be dangerous. or give php ftp acces which would be better I guess .
ever made uploading scripts, however login scripts are easy.
StorytellerMusic.nl
Arabella - Nabucco (Storyteller Remix) [KYR] OUT NOW |
|
Nifflas
Member
Topics: 80 Replies: 1599
Registered: 05.Mar.04 |
 |
|
A year ago i'd agree it's a little lame, but at work we are doing multiplayer games with the clientside in flash, and I have to admit Flash makes life SO MUCH EASIER!! So what matters is the end result. Fun, or not! |
Those are good words
A lot of people declare me a lamer when they hear I use MMF, but imo the new game will be so much better than the average freeware game coded in c++.
It is indeed the end result, not the tools used, which is everything imo too.
you'll need to chmod the folder, which could potentially be dangerous. or give php ftp acces which would be better I guess .
ever made uploading scripts, however login scripts are easy. |
No, you don't have to. Your statement is only true for poorly configured servers where php does not run under the same username as ftp, or cgi. Yeah, unfortunately, it is still a bit common for hosts to run php under user "nobody", which means you have to chmod folders to 777 in order to be able to write into them with php scripts.
But usually, this is not the case. Normally, php runs under the same user as ftp and cgi - which means a php script can make changes to any file in any directory (even if chmodded 644). This also means that the largest possible danger ever is the ability to upload a php script. Which I could do if I have ftp access.
The script described above would not allow me to upload that, and is by that reason much safer.
A proud member of Generally, I agree with Cooth Brotherhood
within a deep forest project site. |
|
deemage
Artist
Topics: 0 Replies: 18
Registered: 24.Oct.03 |
i just felt like hacking for a good purpose.
you'll get a mail soon. |
|
xTr1m
Administrator
Topics: 106 Replies: 4441
Registered: 11.Oct.03 |
I could help you if I could find the time... I've done upload scripts, and the CTG way of user login is quite nice and easy actually. But I'm so stuffed with things right now....
A proud member of Generally, I agree with Cooth Brotherhood
"And he shall be remembered - The Angel in Ashes" |
|
Nifflas
Member
Topics: 80 Replies: 1599
Registered: 05.Mar.04 |
deemage has created a very simple and clean script, which is perfect for this purpose Thanks a lot for the help! (topic may be closed now)
A proud member of Generally, I agree with Cooth Brotherhood
within a deep forest project site. |
|
|