Author Topic: Some reference scripts  (Read 6324 times)

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.
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.



Works, I should do up a web-based control panel thing for it.
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!

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!
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)

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)

http://syerjchep.org/chatlog.tqs

I love what the webserver can do with fifteen minutes of fine tuning HTML and thirty seconds of actual Torque.
Although the HTML feels very messy to me. Also, the page I tested uses your server's preview image, DrenDran.


Bump.

I would release a stuffload of my reference scripts if I didn't lose them a long time ago. :(

Bump.

I would release a stuffload of my reference scripts if I didn't lose them a long time ago. :(
next time post them before you loose them :D

Also, I tested out that webserver stuff.

http://72.39.158.102

Yay I love playing with this.

I added in some stuff on the main page, like if there's a password and the player count.

Also combined the main page and the info page.

The info page will show score/team if there's a minigame running.
« Last Edit: November 16, 2010, 10:54:05 PM by Chrono »

You are missing the closing quote in the join hyperlink's href.

You are missing the closing quote in the join hyperlink's href.
Yeah you probably checked while I was changing a whole bunch of stuff.

It should be working properly now.

Also changed a bunch of stuff.

Edit: Found problem with the join button and fixed it. :)
« Last Edit: November 17, 2010, 12:53:35 AM by Chrono »