Tremulous Forum

Community => Servers => Topic started by: Greudin on February 20, 2007, 04:19:28 pm

Title: web rcon tool for admins
Post by: Greudin on February 20, 2007, 04:19:28 pm
Salut,

This is a web rcon script for admins. It looks like :
(http://tremulous.bricosoft.com/images/trem-webrcon.png)

The sources... buttons need some fixin :
http://maps.bricosoft.com/tremulous-webrcon.phps

I did nothing, just altered Ozh's one for Quake3 :

http://FrenchFragFactory.net/ressources/webrcon/

hf,

PS: hope Dasprid will add it to Tremstats :)
Title: web rcon tool for admins
Post by: Smokey on February 20, 2007, 04:24:28 pm
Meh, i coded my own, but that one sure looks nice.


Does it display the output when you type something like status?
Title: web rcon tool for admins
Post by: Greudin on February 20, 2007, 04:35:38 pm
Quote from: "Smokey"
Meh, i coded my own, but that one sure looks nice.


Does it display the output when you type something like status?


Not the raw output of status, its a html table.
You can modify it to an ajax thingy!
Title: web rcon tool for admins
Post by: Smokey on February 20, 2007, 04:36:46 pm
Quote from: "Greudin"
Quote from: "Smokey"
Meh, i coded my own, but that one sure looks nice.


Does it display the output when you type something like status?


Not the raw output of status, its a html table.
You can modify it to an ajax thingy!

Not too bad, good find/work :)
Title: web rcon tool for admins
Post by: vcxzet on February 20, 2007, 04:57:57 pm
sounds dangerous
<3
Title: web rcon tool for admins
Post by: Ace1 on February 20, 2007, 05:01:03 pm
yes what does it actually do for admins??
Title: web rcon tool for admins
Post by: Smokey on February 20, 2007, 05:11:25 pm
Quote from: "Ace1"
yes what does it actually do for admins??

its an rcon tool, so its really for the server owner or anyone else with rcon.
Title: web rcon tool for admins
Post by: [EVIL]Unknown on February 20, 2007, 05:21:11 pm
theres a nifty program ive been using called rcon unlimited... works with all q3 based games including tremulous :)
Title: web rcon tool for admins
Post by: Caveman on February 20, 2007, 07:03:11 pm
You DO realize, that "rcon unlimited" is a _programm_ and not a web-front-end for rcon, right?
Title: web rcon tool for admins
Post by: TinMan on February 20, 2007, 09:42:14 pm
Smokey, can I have yours? <3
Title: web rcon tool for admins
Post by: Smokey on February 20, 2007, 10:13:05 pm
Quote from: "TinMan"
Smokey, can I have yours? <3

Like everything else i make, its not finished and kinda broken :)

So no  :P
Title: web rcon tool for admins
Post by: -:GoDz:-Devil on February 20, 2007, 10:22:08 pm
Hmm shit wtf do I do? hmmmm
Title: web rcon tool for admins
Post by: tv on February 20, 2007, 11:08:57 pm
And here's my own, simple, WebRemoteConsole :
http://fr.tremulous.net/dev/webconsole.phps

After setting up your server's ip address, port and rcon password...
Type in any rcon command and hit Send, you'll get back the output.

Commands you type in and their outputs are logged :
1) Until you close the webpage.
2) In a logs.txt file (You might need to create it and give editing right to www-data or change the chmod to 777, if you don't the script will work anyway, you just won't log everything).

I'll take any improvement ideas.
Title: web rcon tool for admins
Post by: vcxzet on February 21, 2007, 05:18:14 am
Quote from: "tv"
And here's my own, simple, WebRemoteConsole :
http://fr.tremulous.net/dev/webconsole.phps

After setting up your server's ip address, port and rcon password...
Type in any rcon command and hit Send, you'll get back the output.

Commands you type in and their outputs are logged :
1) Until you close the webpage.
2) In a logs.txt file (You might need to create it and give editing right to www-data or change the chmod to 777, if you don't the script will work anyway, you just won't log everything).

I'll take any improvement ideas.

store md5 of password?
Title: web rcon tool for admins
Post by: tv on February 21, 2007, 07:33:42 am
Well, I guess I could always store a md5 of password somewhere...
But unless you wanna have to type it in every time you access the webconsole, then I'd still have to leave it in plain somewhere. And if you actually do type it every time, then there's no use in storing it at all. *Geez*, I could also not store the ip address nor port and host a public TremWebRemoteConsole for every ServerAdmin (providing their own ip, port and rcon password) to use ! But that's not the point now, is it ?

Very worse that could happen is other users from your WebServer accessing your file. If this happens, either that server is poorly configured, or they have so much power they could shutdown your TremServer anyways.
Title: web rcon tool for admins
Post by: Caveman on February 21, 2007, 08:10:14 am
Why not just use .htaccess?
Title: web rcon tool for admins
Post by: tv on February 21, 2007, 02:38:44 pm
Well that's what I use... Protect this script any way you like. Clearly it's not to be available to the public, and tools to restrict webaccess already exists. If asked I can put up a tutorial on how to use the .htaccess file...