Raised This Month: $ Target: $400
 0% 

java real time server status applet


  
 
 
Thread Tools Display Modes
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-11-2005 , 15:10  
#71

Ok you Linux / Firfox / Mozilla people:
made you a special optional argument my page's arguments:
index.php?me=firefoxhugger&server_ip=xxx.xxx.xxx.xxx&server_port=xxx xx
instead of
index.php?server_ip=xxx.xxx.xxx.xxx&server_po rt=xxxxx

For reference check:
http://www.un4given.nl/tim/serversta...ver_port=27015
vs
http://www.un4given.nl/tim/serversta...ver_port=27015


Best regards,
Tim

*Edit: Could also be set in "settings.php" if you're installing on your own server...
*Edit2: And zipped here: http://www.un4given.nl/tim/serverstatus_java.zip
*Edit3: And MySQL & udp:// version here: http://www.un4given.nl/tim/serverstatus_sql.zip
Tim is offline
AGA
Junior Member
Join Date: Dec 2004
Old 01-12-2005 , 04:18  
#72

Excellent stuff, displays perfectly [yes, I'm a Firefox hugger ]

I tried installing the MySQL version on my own server though, and I'm having difficulties. I get

"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/SERVERNAME/public_html/CS/status/functions/fnc_index.php on line 39"

on index.php. I've definitely put the correct database details in settings.php. I don't see the necessary table setups described anywhere though, what are they?
AGA is offline
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-12-2005 , 06:27  
#73

Open up admin.php (same folder) and add some servers first...
Tim is offline
Rebell
Veteran Member
Join Date: Nov 2004
Location: GERMANY
Old 01-12-2005 , 06:46  
#74

Hi ! Well done - but where to get the applet ?

cya
__________________
Rebell is offline
Silent Witness
Junior Member
Join Date: Jan 2005
Old 01-12-2005 , 10:48  
#75

Tim,
Any chance of adding on to the XML request something like :

&client=timsscript

At the moment I imagine it's just your script that uses the servlet - but it would be cool to know if there are any others out there - maybe even :

&client=timsscript&version=1.5.6

Note: This is just for information and statistics - it is not my intention to invade privacy etc etc
Silent Witness is offline
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-12-2005 , 12:24  
#76

Code:
// Location of the Java class
$location = "http://core.peteslan.net:8080/jcon/servlet/JConXML?client=timsscript&";
Can't change the clients that already downloaded my front-end,
but I'll keep it in as a feature from now on...
Here's the local adress of some of my script users, might be
able to trace some of them back to their website...
Quote:
/domains/un4given.nl/public_html/www/tim/serverstatus_java/index.php
/usr/local/www/timtebeek/cs/serverstatus_java/index.php

/home/virtual/site65/fst/var/www/html/omc/server/index.php
/local/var/www/2/3/3062/www/cssstatus/index.php
/www/sucsclan/serverstatus_java/index.php
/usr/local/share/www/g/s/gamexs.dk/serverstatus/index.php
/home/furin/public_html/serverstatus/index.php
/home/www/web133/html/neu/server/index.php
/home/pallerot/public_html/serveri/index.php
/home/pallerot/public_html/test.php
/var/www/html/servstatus2/index.php
/usr/local/psa/home/vhosts/acstucson.com/httpdocs/hallofthegods/stats/serverquery/index.php
/var/www/html/servstatus/index.php
/var/www/serverstatus/index.php
/usr/local/psa/home/vhosts/acstucson.com/httpdocs/hallofthegods/server/index.php
I imagine for your side it should be fairly easy logging which servers
are query'ed, maybe even by which IP/Host... (I know I'm logging ;))


Best regards,
Tim
Tim is offline
cdpollard
Junior Member
Join Date: Jan 2005
Old 01-12-2005 , 17:59  
#77

Well I got it to work under firefox also, with the pictures and all. You Can check out what i did Here.
cdpollard is offline
cdpollard
Junior Member
Join Date: Jan 2005
Old 01-12-2005 , 18:10  
#78

Ok what happened. It is not querying the server anymore.... whats the deal-i-o
cdpollard is offline
Tim
Senior Member
Join Date: Dec 2004
Location: the Netherlands
Old 01-12-2005 , 18:14  
#79

Looks nice, woud you mind telling em what you changed to help
the Firefox people see those pictures the right way?
Think I'll let the script detect the Browser to make it dynamic...
Like the colorsceme aswell, mind if I add it to the default ones?

And a note: You messed up the nopicture.gif, it's not a Jpg =\)
Default mappics can be found here:
http://www.un4given.nl/tim/mappics.zip and
http://www.un4given.nl/tim/new-mappics.zip

Greets,
Tim
Tim is offline
cdpollard
Junior Member
Join Date: Jan 2005
Old 01-12-2005 , 18:17  
#80

Well yeah i will tell them all what i did. but it looks like any place that is using your applet is failing. did you changed something recently.

and the no picture is not supposed to be there because i have all the pics for each map. it was showing everything like 10 seconds ago. because there are currently 10 people playing on my server right now.


its in your code why it doesnt work in Firefox.

The orginal code:
Code:
{ $pic = "pics\grey.gif"; } else { $pic = "pics\green.gif"; }
The Fixed Code
Code:
{ $pic = "pics/grey.gif"; } else { $pic = "pics/green.gif"; }
Its the Slahes. change them to Forward slashes "/" not backwards "\" and now you won't even need to ask for firefox support. i took that right out of the code. and it still works for IE. PLus Adress is spelt Address.
cdpollard is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode