CTG Music Community www.ctgmusic.com - 25 May - 1 onliner | 4 chatters - 14:11
CTG Music Community
  No production of the week has been chosen yet.
Home Music Forum Charts Community Links LOGIN / SIGN UP
Write New Topic Latest Topics Latest Offtopics All Search

  General   News   Contests   Music Production   Chat   Suggestions   Spam&Stuff   Polls   Help   Other 
Write new reply Forum ~ Help ~ Help (Within a Deep Forest) Forum rules!
Help (Within a Deep Forest) [HELP]
Page:  [1] 
Nifflas
MemberMember

Topics: 80
Replies: 1599


Registered: 05.Mar.04
Write new replyFri 24 Feb. 2006 (14:31) [194.153.52.130] 1/9 quick link
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

http://www.ni2.se/nifflas/external_graphics/mas3ball.png within a deep forest project site.
Write new reply Send private message http://www.ni2.se Back to top Go to bottom
Vegaro
MemberMember

Topics: 48
Replies: 661


Registered: 05.May.04
Write new replyFri 24 Feb. 2006 (14:44) [80.178.46.119] 2/9 quick link
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
Write new reply Send private message Send email MSN address http://www.vegaro.com Back to top Go to bottom
Nifflas
MemberMember

Topics: 80
Replies: 1599


Registered: 05.Mar.04
Write new replyFri 24 Feb. 2006 (14:46) [194.153.52.130] 3/9 quick link
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

http://www.ni2.se/nifflas/external_graphics/mas3ball.png within a deep forest project site.
Write new reply Send private message http://www.ni2.se Back to top Go to bottom
Vegaro
MemberMember

Topics: 48
Replies: 661


Registered: 05.May.04
Write new replyFri 24 Feb. 2006 (15:06) [80.178.46.119] 4/9 quick link
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
Write new reply Send private message Send email MSN address http://www.vegaro.com Back to top Go to bottom
MatthijsB
ArtistArtist

Topics: 40
Replies: 2038


Registered: 10.Feb.03
Write new replyFri 24 Feb. 2006 (15:39) [86.82.13.3] 5/9 quick link
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
Write new reply Send private message Send email MSN address http://www.storytellermusic.nl Back to top Go to bottom
Nifflas
MemberMember

Topics: 80
Replies: 1599


Registered: 05.Mar.04
Write new replyFri 24 Feb. 2006 (21:00) [81.225.150.229] 6/9 quick link
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

http://www.ni2.se/nifflas/external_graphics/mas3ball.png within a deep forest project site.
Write new reply Send private message http://www.ni2.se Back to top Go to bottom
deemage
ArtistArtist
http://n.ethz.ch/student/simonrei/ctg_agressor.jpg
Topics: 0
Replies: 18


Registered: 24.Oct.03
Write new replyFri 24 Feb. 2006 (22:16) [212.41.86.94] 7/9 quick link
i just felt like hacking for a good purpose. :)
you'll get a mail soon.
Write new reply Send private message http://n.ethz.ch/student/simonrei Back to top Go to bottom
xTr1m
AdministratorAdministrator
http://www.xTr1m.com/avatar.png
Topics: 106
Replies: 4441


Registered: 11.Oct.03
Write new replyFri 24 Feb. 2006 (23:02) [84.58.39.192] 8/9 quick link
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"
Write new reply Send private message Send email MSN address http://www.xTr1m.com Back to top Go to bottom
Nifflas
MemberMember

Topics: 80
Replies: 1599


Registered: 05.Mar.04
Write new replySat 25 Feb. 2006 (0:34) [81.225.150.229] 9/9 quick link
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

http://www.ni2.se/nifflas/external_graphics/mas3ball.png within a deep forest project site.
Write new reply Send private message http://www.ni2.se Back to top Go to bottom
Page:  [1] 
Write new reply


3784 Days Online * About Us * Advertising * Credits * Sitemap * Disclaimer * www.ctgmusic.com TopTop
Webdesign by Gaj Capuder, hosted by Yannick Delwiche, menu graphic by Linus Ymén