Posted on: 05/06/05 04:35am
By: Anonymous (not sure)
Posted on: 05/06/05 07:34am
By: DmX_Raze
Posted on: 05/06/05 07:37am
By: DmX_Raze
Posted on: 05/06/05 07:40am
By: DmX_Raze
Posted on: 05/06/05 12:33pm
By: machinari
Posted on: 05/06/05 01:21pm
By: DmX_Raze
<?php // set up server info ver .02 // written by chicago email Chicago@thescreamingeagle.com http://thescreamingeagle.com $port="8777"; $host="udp://dmx.game-host.org"; $message="REPORT"; $status=senddata($host,$port,$message); //print "$status"; // Use List and split command to parse the data list($ServerBeaconPort, $BeaconPort, $Cmap, $name, $Ctype, $MaxP, $Locked, $Ded, $Maps, $GType, $Plist, $Ptime, $Pping, $Pkills, $Numplay, $Rounds, $Rtime, $Btime, $bomb, $Snames, $Iserver, $Ffire, $Balteam, $TK, $Ver, $Radar, $Lid, $Gid, $Bport, $Numter, $AIback, $Rmap, $FPW)= split ("¶", $status , 33); if ($Ctype == 'F1 3 ' || $Ctype == 'F1 5 ' || $Ctype == 'F1 7 ') // check if co-op { list($ServerBeaconPort, // $BeaconPort, $Cmap, $name, $Ctype, $MaxP, $Locked, $Ded, $Maps, $GType, $Plist, $Ptime, $Pping, $Pkills, $Numplay, $Rounds, $Rtime, $Btime, $Snames, $Iserver, $Ffire, $Balteam, $TK, $Ver, $Radar, $Lid, $Gid, $Bport, $Numter, $AIback, $Rmap, $FPW)= split ("¶", $status , 32); //Print "co-op"; } $patterns = array ("/14/", "/13/", "/8/","/15/","/16/","/3/","/5/","/7/"); $replace = array ("Team Survival", "Survival", "Hostage", "Bomb", "Pilot","Mission","Terrorist Hunt","Hostage Rescue"); list($A,$name) = split (" ", $name, 2); list($A,$Cmap) = split (" ", $Cmap, 2); list($A,$MaxP) = split (" ", $MaxP, 2); list($A,$Numplay) = split (" ", $Numplay, 2); list($A,$Plist) = split (" ", $Plist, 2); list($A,$Maps) = split (" ", $Maps, 2); list($A,$GType) = split (" ", $GType, 2); list($A,$Ver) = split (" ", $Ver, 2); list($A,$Ptime) = split (" ", $Ptime, 2); list($A,$Pping) = split (" ", $Pping, 2); list($A,$Pkills) = split (" ", $Pkills, 2); list($A,$Ctype) = split (" ", $Ctype, 2); $gctype = preg_replace ($patterns, $replace, $Ctype); ?> <table border="3" cellpadding="0" cellspacing="0" width="50%" align="center"> <? ?> <tr> <th align="center"> <?= "Server Name" ?> </th> <th align="center"> <?= "Server Version" ?> </th> </tr> <tr> <td align="center"> <?= "$name" ?> </td> <td align="center"> <?= "$Ver" ?> </td> </tr> <? ?> </Table><BR> <? ?> <table border="2" cellpadding="0" cellspacing="0" width="50%" align="center"> <? ?> <tr> <th align="center"> <?= "Current Map" ?> </th> <th align="center"> <?= "Current Game Type" ?> </th> </tr> <? ?> <tr> <td align="center"> <? echo "<img src=\"rvsslwebphp/mapimages/" . strtolower(trim($Cmap)) . ".jpg\" >" ?> </td> <? ?> <td align="center"> <?= "$Cmap <BR>" ?> <?= "$gctype" ?> </td> </tr> <? ?> </Table><BR> <? //print "<BR>"; //print "<BR> Server name: $name"; //print "<BR>"; //print "<BR> Server version: $Ver"; //print "<BR>"; //print "<BR> Current map: $Cmap / $gctype"; //print "<BR>"; //print "<BR> Current Players: $Numplay / $MaxP"; //print "<BR> Player Time Ping kills"; // now split out the player list, times, pings and kills ?> <table border="1" cellpadding="0" cellspacing="0" width="50%" align="center"> <? ?> <tr> <th align="center"> <?= "Current Players $Numplay/$MaxP" ?> </th> </tr> <tr> <th align="center"> <?= "Player" ?> </th> <th align="center"> <?= "Time" ?> </th> <th align="center"> <?= "Ping" ?> </th> <th align="center"> <?= "Kills" ?> </th> </tr><br> <? $parray = split("/", $Plist); $tarray = split("/", $Ptime); $Parray = split("/", $Pping); $karray = split("/", $Pkills); $count = count($parray); for ($i=0; $i<=$count; $i++) { ?> <tr> <td align="center"> <?= $parray[$i] ?> </td> <td align="center"> <?= $tarray[$i] ?> </td> <td align="center"> <?= $Parray[$i] ?> <td align="center"> <?= $karray[$i] ?> </td> </tr> <? //print " $parray[$i] $tarray[$i] $Parray[$i] $karray[$i] <BR>"; // add appropiate HTML tags here } ?> </table> <? //print "<BR><tr> Map Game Type</tr>"; $array = split("/", $Maps); // Split the maps out into a array $garray = split("/", $GType); $gtarray = preg_replace ($patterns, $replace, $garray); $count = count($array); ?> <table border="1" cellpadding="0" cellspacing="0" width="50%" align="center"> <? ?> <tr> <th align="center"> <?= "Map List" ?> </th> </tr> <tr> <th align="center"> <?= "Map Name" ?> </th> <th align="center"> <?= "Game Type" ?> </th> </tr><br> <? for ($i=1; $i<$count; $i++) { ?> <tr> <td align="center"> <?= $array[$i] ?> </td> <td align="center"> <?= $gtarray[$i] ?> </td> </tr> <? //print "<BR><tr>$array[$i] $gtarray[$i]</tr> "; // add appropiate HTML tags here } ?> </Table> <? function senddata($host,$port,$message) { #takes in account servers that do not return EOF character #send data to server and get back input #function globals $linenumber="0"; #amount of lines to get rid of before we give input $lineamount="1"; #amount of lines to read after we give input $fp = fsockopen("$host", $port, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)"; } else { for ($i = 1; $i < $linenumber+1; $i++) { fread ($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { fread($fp, $bytes_left[unread_bytes]); } } fputs($fp, "$message"); for ($i = 1; $i < $lineamount+1; $i++) { $status.=fread($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { $status.=fread($fp, $bytes_left[unread_bytes]); } } fclose ($fp); } return $status; } ?>
Posted on: 05/06/05 01:25pm
By: DmX_Raze
<?php /* ##################################################################################### * * $Id: today_events.php,v 1.2 2002/06/23 15:07:46 oliver Exp $ * * project: VWar * description: displays todays events * * vwar for phpnuke $Id: block-today_events.php * tekbaron@hotmail.com * * Copyright (C) 2001 mabu (Oliver K.) * pm@ec-league.com * * Copyright Notes: * ---------------- * - All Rights reserved * - All rights reserved to their proper authors. * - using the script(s) without the owners permission is prohibited * * NOTE: * This script can be used to include todays calendarevents in a menu on your site * * YOU CAN CHANGE HTML OUTPUT BELOW THIS LINE AS NEEDED !!! * ##################################################################################### */ if (eregi("block-serverquery.php",$PHP_SELF)) { Header("Location: index.php"); die(); } // set up server info ver .02 // written by chicago email Chicago@thescreamingeagle.com http://thescreamingeagle.com $port="8777"; $host="udp://dmx.game-host.org"; $message="REPORT"; $status=senddatab2($host,$port,$message); //print "$status"; // Use List and split command to parse the data list($ServerBeaconPort, $BeaconPort, $Cmap, $name, $Ctype, $MaxP, $Maps, $GType, $Plist, $Ptime, $Pping, $Pkills, $Numplay, $Rounds, $Rtime, $Btime, $bomb, $Snames, $Iserver, $Ffire, $Balteam, $TK, $Ver, $Radar, $Lid, $Gid, $Bport, $Numter, $AIback, $Rmap, $FPW)= split ("¶", $status , 33); if ($Ctype == 'F1 3 ' || $Ctype == 'F1 5 ' || $Ctype == 'F1 7 ') // check if co-op { list($ServerBeaconPort, // $BeaconPort, $Cmap, $name, $Ctype, $MaxP, $Locked, $Ded, $Maps, $GType, $Plist, $Ptime, $Pping, $Pkills, $Numplay, $Rounds, $Rtime, $Btime, $Snames, $Iserver, $Ffire, $Balteam, $TK, $Ver, $Radar, $Lid, $Gid, $Bport, $Numter, $AIback, $Rmap, $FPW)= split ("¶", $status , 32); //Print "co-op"; } $patterns = array ("/14/", "/13/", "/8/","/15/","/16/","/3/","/5/","/7/"); $replace = array ("Team Survival", "Survival", "Hostage", "Bomb", "Pilot","Mission","Terrorist Hunt","Hostage Rescue"); list($A,$name) = split (" ", $name, 2); list($A,$Cmap) = split (" ", $Cmap, 2); list($A,$MaxP) = split (" ", $MaxP, 2); list($A,$Numplay) = split (" ", $Numplay, 2); list($A,$Plist) = split (" ", $Plist, 2); list($A,$Maps) = split (" ", $Maps, 2); list($A,$GType) = split (" ", $GType, 2); list($A,$Ver) = split (" ", $Ver, 2); list($A,$Ptime) = split (" ", $Ptime, 2); list($A,$Pping) = split (" ", $Pping, 2); list($A,$Pkills) = split (" ", $Pkills, 2); list($A,$Ctype) = split (" ", $Ctype, 2); $gctype = preg_replace ($patterns, $replace, $Ctype); $content .= "$name<BR>"; $content .= "<BR>$Cmap<BR>"; $content .= "Team Survival<BR>"; $content .= "<img src=\"rvsslwebphp/mapimages/" . strtolower(trim($Cmap)) . ".jpg\" hight=164 width=126 >"; $content .= "<BR>Current Players $Numplay/$MaxP<BR>"; $content .= "<BR>Players<BR>"; $parray = split("/", $Plist); $tarray = split("/", $Ptime); $Parray = split("/", $Pping); $karray = split("/", $Pkills); $count = count($parray); for ($i=0; $i<=$count; $i++) { $content .= "$parray[$i]<BR>"; //print " $parray[$i] $tarray[$i] $Parray[$i] $karray[$i] <BR>"; // add appropiate HTML tags here } $content .= "<BR><a href=\"rvsslwebphp/server.php?beaconport=".$port."&ip=".$host."\">Detailed Server Info</a><BR>"; function senddatab2($host,$port,$message) { #takes in account servers that do not return EOF character #send data to server and get back input #function globals $linenumber="0"; #amount of lines to get rid of before we give input $lineamount="1"; #amount of lines to read after we give input $fp = fsockopen("$host", $port, $errno, $errstr, 30); if (!$fp) { echo "Offline"; } else { for ($i = 1; $i < $linenumber+1; $i++) { fread ($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { fread($fp, $bytes_left[unread_bytes]); } } fputs($fp, "$message"); for ($i = 1; $i < $lineamount+1; $i++) { $status.=fread($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { $status.=fread($fp, $bytes_left[unread_bytes]); } } fclose ($fp); } return $status; } ?>
Posted on: 05/06/05 03:53pm
By: machinari
function senddatab2($host,$port,$message) { #takes in account servers that do not return EOF character #send data to server and get back input #function globals $linenumber="0"; #amount of lines to get rid of before we give input $lineamount="1"; #amount of lines to read after we give input $fp = fsockopen("$host", $port, $errno, $errstr, 30); if (!$fp) { $status = "Offline"; } else { for ($i = 1; $i < $linenumber+1; $i++) { fread ($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { fread($fp, $bytes_left[unread_bytes]); } } fputs($fp, "$message"); for ($i = 1; $i < $lineamount+1; $i++) { $status.=fread($fp,1); $bytes_left = socket_get_status($fp); if ($bytes_left > 0) { $status.=fread($fp, $bytes_left[unread_bytes]); } } fclose ($fp); } return $status; }
Posted on: 05/06/05 05:28pm
By: Anonymous (Raze)