Blockland Forums > Modification Help
Some reference scripts
DrenDran:
--- Quote from: Truce on November 15, 2010, 07:44:29 AM ---Alright. Half of me was hoping anyone who figured out exactly what to do would know the possibility of being blocked from the server previewer, but I removed the file from pasteHTML anyway incase someone bookmarked the link.
I've replaced it with a basic webserver script I had written awhile ago to test things. It doesn't have support for POST, nor does it parse the header variables, but I haven't needed to add those yet. Obviously if someone wanted to turn it into a full blown webserver, they'd have to add those (easy to do) and the 5000 error codes HTTP has. In its current state, it has a lot of things it could be used for, such as displaying hiscores or general server info, and all the user has to do is connect to your server's IP in their web browser.
--- End quote ---
It's funny because I bought a domain so typing "syerjchep.org" would connect to my blockland server then.
I think I'll use that somehow.
DrenDran:
This link will work if my server is online.
M:
--- Quote from: DrenDran on November 15, 2010, 03:38:28 PM ---This link will work if my server is online.
--- End quote ---
Works, I should do up a web-based control panel thing for it.
DrenDran:
--- Quote from: M on November 15, 2010, 04:41:56 PM ---Works, I should do up a web-based control panel thing for it.
--- End quote ---
It now shows how many players are online, and each players name and score.
I might work on a chat logger later, and hell, if I feel up to it, a way for me to chat (providing a password) to people from the website.
I could get on my cell phone and be able to chat into my server!
M:
--- Quote from: DrenDran on November 15, 2010, 04:56:07 PM ---It now shows how many players are online, and each players name and score.
I might work on a chat logger later, and hell, if I feel up to it, a way for me to chat (providing a password) to people from the website.
I could get on my cell phone and be able to chat into my server!
--- End quote ---
That sounds good - though with no post or cookies I guess it wouldn't be too secure... then again who'd bother? Obscurity security.
Also stylesheets work with no modification, this is a nice bit of insight into the workings of webservers (I've just implemented a header list into it, so it's possible to access the headers sent and discriminate by browser)