PHP Query Tool

PHP game query tool for querying Nightfire and other game Servers

PHP Query Tool

Postby UltimateSniper on Mon Mar 12, 2007 2:44 pm

I have edited the firestorm query tool so that it shows an offline picture when its offline and a no map image when it is but cant find the map image :grin:

Where may i obtain permission to share this? :grin:
Pop goes the sniper! :-)
BOOOOM! goes the pistol! :-D
Why does network cable have 8 wires?
Image
To electricute an octopus...
User avatar
UltimateSniper
Global Moderator
Global Moderator
 
Posts: 1444
Joined: Sat Nov 04, 2006 8:23 pm
Location: The Wonderful Land Of Denmark

Postby [OO9] on Mon Mar 12, 2007 8:31 pm

Hi UltimateSniper,
I thought I had updated the file on the site but had not, it's updated now though. The Firestorm site is closed now and the tool is now under the GNU licence. Seeing that it's only listed on the web at web-fun.net and we also seem to be the only people making changes to it, having a section on the forum for it seems a good as place as any.

Please could you put here in code what you changed and I will update the one on my site also.

Under the GNU licence you can host the tool and make changes etc, but if you or anybody else says what they have done here they can all be kept the same.

The changes I made (will have to check it line by line, so this is what I remember) are added the original tool, added the GNU licence, updated the script adding code for checking PHP version for timeout checks.
User avatar
[OO9]
VIP Member
VIP Member
 
Posts: 867
Joined: Wed Dec 03, 2003 10:36 pm
Location: England

Postby UltimateSniper on Tue Mar 13, 2007 2:55 pm

well this realy was just my first time working with PHP but it seems similar enough to programing so i might take it up when i have enough spare time :wink:

http://h1.ripway.com/kkmclan/status.php

i could remove the 'edited by' links :sad:
Pop goes the sniper! :-)
BOOOOM! goes the pistol! :-D
Why does network cable have 8 wires?
Image
To electricute an octopus...
User avatar
UltimateSniper
Global Moderator
Global Moderator
 
Posts: 1444
Joined: Sat Nov 04, 2006 8:23 pm
Location: The Wonderful Land Of Denmark

Postby [OO9] on Wed Jun 20, 2007 9:14 pm

I'm going to update the script now, so please could you post here the changes you made using the PHP tags. e.g

[php]// Changed .jpg to $image_type for chosen image type
$mapname_img = "offline"; // nomapimage
$s_maptemp = strtolower(eregi_replace("/", "_", $s_map));
if(file_exists("fsgqt-img/$s_game/$s_maptemp$image_type")) $mapname_img = "$s_game/$s_maptemp";

$s_game = smallservertobig($s_game);[/php]

You can keep your name up if you like, but for updates I will just be listing them in the text of the file. - change offline pic - UltimateSniper etc. and later on the site.
User avatar
[OO9]
VIP Member
VIP Member
 
Posts: 867
Joined: Wed Dec 03, 2003 10:36 pm
Location: England

Postby [OO9] on Tue Jul 29, 2008 6:48 am

I'm putting this into the script. Is this much different to what you had done Ulti? Either way I will put your name by it as it was your idea.


[php] if($query_outb == "") {
echo "<b>Server is offline</b><br><br>";
$offline = "TRUE";[/php]

[php] if ( $offline == "TRUE" ) {
$mapname_img = "$s_game/offline"; }
else {
$s_maptemp = strtolower(eregi_replace("/", "_", $s_map));
if(file_exists("fsgqt-img/$s_game/$s_maptemp$image_type")) {
$mapname_img = "$s_game/$s_maptemp"; }
else {
$mapname_img = "$s_game/nomapimage"; }
}[/php]
User avatar
[OO9]
VIP Member
VIP Member
 
Posts: 867
Joined: Wed Dec 03, 2003 10:36 pm
Location: England

Postby UltimateSniper on Tue Jul 29, 2008 10:29 am

thats rather similar to what i added yeh, although im not such a PHP enthusiast :grin:

i would have thought that someone would notice that problem before me but if you havent already added my name dont bother, i dont rly mind :wink:
Pop goes the sniper! :-)
BOOOOM! goes the pistol! :-D
Why does network cable have 8 wires?
Image
To electricute an octopus...
User avatar
UltimateSniper
Global Moderator
Global Moderator
 
Posts: 1444
Joined: Sat Nov 04, 2006 8:23 pm
Location: The Wonderful Land Of Denmark


Return to Firestorm Game Query Tool

Who is online

Users browsing this forum: No registered users and 0 guests

cron