You can subscribe to this list here.
| 2006 |
Jan
(134) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(185) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(104) |
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
(187) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Holger <ic...@us...> - 2009-07-18 10:43:46
|
Update of /cvsroot/phgstats/phgstats/settings In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20318/settings Added Files: style.inc.php Log Message: no message --- NEW FILE: style.inc.php --- <?php // html variables $btitle = 'phgstats'; // html colors: $color = ''; $bg_color = ''; $t_color = ''; $tb_color = ''; $td_color = ''; $tdb_color = ''; $th_color = ''; $thb_color = ''; $h_color = ''; ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 16:13:06
|
Update of /cvsroot/phgstats/phgstats/settings In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1664/settings Modified Files: config.inc.php Log Message: unreal tournament support Index: config.inc.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/settings/config.inc.php,v retrieving revision 1.89 retrieving revision 1.90 diff -C2 -d -r1.89 -r1.90 *** config.inc.php 8 Apr 2009 10:15:35 -0000 1.89 --- config.inc.php 8 Apr 2009 16:12:33 -0000 1.90 *************** *** 3,7 **** * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, postal2, project ! * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ --- 3,7 ---- * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, postal2, project ! * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, ut, swat4, warsow */ *************** *** 33,36 **** --- 33,38 ---- 'q2:217.115.155.120:27910:', 'urt:et.bad-penguins.de:27980:', + 'ut:85.14.221.179:6666:', + 'ut:87.230.91.94:1111:', 'q3:193.34.68.150:22222:', 'qw:194.109.69.75:27500:', |
|
From: Alexander H. <ba...@us...> - 2009-04-08 16:13:05
|
Update of /cvsroot/phgstats/phgstats In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1664 Modified Files: CHANGES Log Message: unreal tournament support Index: CHANGES =================================================================== RCS file: /cvsroot/phgstats/phgstats/CHANGES,v retrieving revision 1.229 retrieving revision 1.230 diff -C2 -d -r1.229 -r1.230 *** CHANGES 8 Apr 2009 10:15:35 -0000 1.229 --- CHANGES 8 Apr 2009 16:12:26 -0000 1.230 *************** *** 2,5 **** --- 2,6 ---- - postal2 suppport - project IGI support + - unreal tournament support 2009-04-07 Alexander Hambalgo <ba...@us...> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 16:12:47
|
Update of /cvsroot/phgstats/phgstats/templates In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1664/templates Added Files: detail_ut.inc.php Log Message: unreal tournament support --- NEW FILE: detail_ut.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->gamename}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers} (-{$srv->prvplayers})</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo "<!-- phgstats server players info -->\n"; if ($srv->numplayers != 0 && $srv->rules['team1'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Secret</th> <th class="phgListPlayers">Mesh</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->numplayers; $n++) { if ($srv->players[$n]['team'] == 0) { echo <<<HTML_DETAIL_PLAYER_TEAM1 <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['ngsecret']}</td> <td class="phgListScore">{$srv->players[$n]['mesh']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM1; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM1 <tr> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score1']}</td> <td class="phgListScore"></td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping1']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM1; } if ($srv->numplayers != 0 && $srv->rules['team2'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Secret</th> <th class="phgListPlayers">Mesh</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->numplayers; $n++) { if ($srv->players[$n]['team'] == 1) { echo <<<HTML_DETAIL_PLAYER_TEAM2 <tr align='center'> <td class="phgListCount">$i</td> <td class="phgListName">{$srv->players[$n]['name_clr']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['ngsecret']}</td> <td class="phgListScore">{$srv->players[$n]['mesh']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM2; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM2 <tr align='center'> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score2']}</td> <td class="phgListScore"></td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping2']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM2; } if ($srv->numplayers != 0 && $srv->rules['team3'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Secret</th> <th class="phgListPlayers">Mesh</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->numplayers; $n++) { if ($srv->players[$n]['team'] == 255) { echo <<<HTML_DETAIL_PLAYER_TEAM3 <tr align='center'> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name_clr']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['ngsecret']}</td> <td class="phgListScore">{$srv->players[$n]['mesh']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM3; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM3 <tr align='center'> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score3']}</td> <td class="phgListScore"></td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping3']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM3; } if ($srv->numplayers == 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Secret</th> <th class="phgListPlayers">Mesh</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> </table> HTML_DETAIL_PLAYER_HEAD; } echo "<!-- end of server players -->\n"; ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 16:12:37
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/games In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1664/classes/phgslib/games Added Files: ut.class.php Log Message: unreal tournament support --- NEW FILE: ut.class.php --- <?php // Unreal Tournament extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class ut extends prtcl_gsp { function getinfo() { if ($this->_getStream()) { // set rule vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gamename = $this->rules['gamename']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->password = $this->rules['password']; // set map picture & path $this->_getmappic(); // set players $this->_getPlayers(); return TRUE; } else { return FALSE; } } function _getplayers() { $players = array(); $this->rules['team1'] = 0; $this->rules['team2'] = 0; $this->rules['team3'] = 0; $this->rules['team_score1'] = 0; $this->rules['team_score2'] = 0; $this->rules['team_score3'] = 0; $this->rules['team_ping1'] = 0; $this->rules['team_ping2'] = 0; $this->rules['team_ping3'] = 0; // remove html code from player names and set name_clr, ping_clr for ($index = 0; $index != $this->numplayers; $index++) { $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; $this->players[$index]['score'] = $this->rules["frags_$index"]; $this->players[$index]['ping'] = $this->rules["ping_$index"]; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); $this->players[$index]['ngsecret'] = isset($this->rules["ngsecret_$index"]) ? $this->rules["ngsecret_$index"] : 0; $this->players[$index]['skin'] = isset($this->rules["skin_$index"]) ? $this->rules["skin_$index"] : 0; $this->players[$index]['mesh'] = $this->rules["mesh_$index"]; $this->players[$index]['team'] = $this->rules["team_$index"]; // create a team score variable if ($this->players[$index]['team'] == '0') { $this->rules['team_score1'] = $this->rules['team_score1'] + $this->players[$index]['score']; $this->rules['team_ping1'] = $this->rules['team_ping1'] + $this->players[$index]['ping']; $this->rules['team1']++; } if ($this->players[$index]['team'] == '1') { $this->rules['team_score2'] = $this->rules['team_score2'] + $this->players[$index]['score']; $this->rules['team_ping2'] = $this->rules['team_ping2'] + $this->players[$index]['ping']; $this->rules['team2']++; } if ($this->players[$index]['team'] == '255') { $this->rules['team_score3'] = $this->rules['team_score3'] + $this->players[$index]['score']; $this->rules['team_ping3'] = $this->rules['team_ping3'] + $this->players[$index]['ping']; $this->rules['team3']++; } } // sort players if there some online if ($index > 0) { $this->_sortplayers(); } // get avarage ping of teams if available if ($this->rules['team_score1'] != 0) { $this->rules['team_ping1'] = sprintf("%3.0f", $this->rules['team_ping1'] / $this->rules['team1']); } if ($this->rules['team_score2'] != 0) { $this->rules['team_ping2'] = sprintf("%3.0f", $this->rules['team_ping2'] / $this->rules['team2']); } if ($this->rules['team_score3'] != 0) { $this->rules['team_ping3'] = sprintf("%3.0f", $this->rules['team_ping3'] / $this->rules['team3']); } } } ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 10:15:48
|
Update of /cvsroot/phgstats/phgstats/templates In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26406/templates Added Files: detail_project.inc.php Log Message: project:igir support --- NEW FILE: detail_project.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->gamename}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers} (-{$srv->prvplayers})</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo "<!-- phgstats server players info -->\n"; if ($srv->fixedplayers != 0 && $srv->rules['team1'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Deaths</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++) { if ($srv->players[$n]['team'] == 0) { echo <<<HTML_DETAIL_PLAYER_TEAM1 <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['deaths']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM1; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM1 <tr> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score1']}</td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping1']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM1; } if ($srv->fixedplayers != 0 && $srv->rules['team2'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Deaths</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++) { if ($srv->players[$n]['team'] == 1) { echo <<<HTML_DETAIL_PLAYER_TEAM2 <tr align='center'> <td class="phgListCount">$i</td> <td class="phgListName">{$srv->players[$n]['name_clr']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['deaths']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM2; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM2 <tr align='center'> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score2']}</td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping2']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM2; } if ($srv->fixedplayers == 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Deaths</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> </table> HTML_DETAIL_PLAYER_HEAD; } echo "<!-- end of server players -->\n"; ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 10:15:44
|
Update of /cvsroot/phgstats/phgstats/settings In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26406/settings Modified Files: config.inc.php Log Message: project:igir support Index: config.inc.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/settings/config.inc.php,v retrieving revision 1.88 retrieving revision 1.89 diff -C2 -d -r1.88 -r1.89 *** config.inc.php 8 Apr 2009 08:19:38 -0000 1.88 --- config.inc.php 8 Apr 2009 10:15:35 -0000 1.89 *************** *** 2,6 **** /* game server variables: * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 ! * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, postal2 * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ --- 2,6 ---- /* game server variables: * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 ! * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, postal2, project * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ *************** *** 29,32 **** --- 29,33 ---- 'openarena:83.223.64.92:27960:', 'postal2:207.210.252.210:7777:', + 'project:217.114.213.26:26001:', //'q1:209.239.113.236:26000:', // no class 'q2:217.115.155.120:27910:', |
|
From: Alexander H. <ba...@us...> - 2009-04-08 10:15:44
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/games In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26406/classes/phgslib/games Added Files: project.class.php Log Message: project:igir support --- NEW FILE: project.class.php --- <?php // Project:IGI2 extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class project extends prtcl_gsp { var $portdiff = 0; function _readrules($rules_cache) { $rule_complete = FALSE; $rule_name = ''; $rule_value = ''; $player = 0; $frags = 0; $deaths = 0; $ping = 0; $team = 0; for ($index = 0, $length = strlen($rules_cache); $index < $length; $index++) { if ($rule_complete == FALSE && $rules_cache[$index] != '\\') { $rule_name .= $rules_cache[$index]; } elseif ($rule_complete == FALSE && $rules_cache[$index] == '\\') { $rule_complete = TRUE; } elseif ($rule_complete == TRUE && $rules_cache[$index] != '\\') { $rule_value .= $rules_cache[$index]; } elseif ($rule_complete == TRUE && $rules_cache[$index] == '\\') { // playerdata index is wrong and must be sort if (strstr($rule_name, 'player_')) { $rule_name = substr($rule_name, 0, 7) . $player; $player++; } if (strstr($rule_name, 'frags_')) { $rule_name = substr($rule_name, 0, 6) . $frags; $frags++; } if (strstr($rule_name, 'deaths_')) { $rule_name = substr($rule_name, 0, 7) . $deaths; $deaths++; } if (strstr($rule_name, 'ping_')) { $rule_name = substr($rule_name, 0, 5) . $ping; $ping++; } if (strstr($rule_name, 'team_') && $rule_name != 'team_t0' && $rule_name != 'team_t1') { $rule_name = substr($rule_name, 0, 5) . $team; $team++; } $this->rules[$rule_name] = htmlentities($rule_value); $rule_complete = FALSE; $rule_name = ''; $rule_value = ''; } else { echo "error while sort data stream"; } } } function getinfo() { if ($this->_getStream()) { // set rule vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->password = $this->rules['password']; // set map picture & path $this->_getmappic(); // set players $this->_getPlayers(); return TRUE; } else { return FALSE; } } function _getplayers() { $players = array(); $index2 = 0; // second variable for lose data, if server load a new map $this->rules['team1'] = 0; $this->rules['team2'] = 0; $this->rules['team_score1'] = 0; $this->rules['team_score2'] = 0; $this->rules['team_ping1'] = 0; $this->rules['team_ping2'] = 0; // remove html code from player names and set name_clr, ping_clr for ($index = 0; $index != ($this->numplayers); $index++) { if (isset($this->rules["player_$index"])) { $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; $this->players[$index]['score'] = $this->rules["frags_$index"]; $this->players[$index]['ping'] = $this->rules["ping_$index"]; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); $this->players[$index]['deaths'] = $this->rules["deaths_$index"]; $this->players[$index]['team'] = $this->rules["team_$index"]; // create a team score variable if ($this->players[$index]['team'] == '0') { $this->rules['team_score1'] = $this->rules['team_score1'] + $this->players[$index]['score']; $this->rules['team_ping1'] = $this->rules['team_ping1'] + $this->players[$index]['ping']; $this->rules['team1']++; } if ($this->players[$index]['team'] == '1') { $this->rules['team_score2'] = $this->rules['team_score2'] + $this->players[$index]['score']; $this->rules['team_ping2'] = $this->rules['team_ping2'] + $this->players[$index]['ping']; $this->rules['team2']++; } $index2++; } } // sort players if there some online if ($index2 > 0) { $this->_sortplayers(); } // get avarage ping of teams if available if ($this->rules['team_score1'] != 0) { $this->rules['team_ping1'] = sprintf("%3.0f", $this->rules['team_ping1'] / $this->rules['team1']); } if ($this->rules['team_score2'] != 0) { $this->rules['team_ping2'] = sprintf("%3.0f", $this->rules['team_ping2'] / $this->rules['team2']); } // create a second numplayers variable, to get only players with data $this->fixedplayers = $index2; } } ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 10:15:43
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26406/classes/phgslib Modified Files: phgslib.class.php Log Message: project:igir support Index: phgslib.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/phgslib.class.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** phgslib.class.php 8 Apr 2009 08:19:36 -0000 1.23 --- phgslib.class.php 8 Apr 2009 10:15:35 -0000 1.24 *************** *** 61,64 **** --- 61,66 ---- var $prvplayers; + var $fixedplayers; + // array: full rules & player data var $rules; *************** *** 91,94 **** --- 93,98 ---- $this->prvplayers = 0; + $this->fixedplayers = 0; + $this->rules = array(); $this->players = array(); *************** *** 145,149 **** case 'opflashr': // Operation Flashpoint Resistance n case 'postal2': // Postal 2 b1 ! case 'project': // Project IGI2: Covert Strike n case 'ut': // Unreal Tournament b case 'ut2003': // UT 2003 n --- 149,153 ---- case 'opflashr': // Operation Flashpoint Resistance n case 'postal2': // Postal 2 b1 ! case 'project': // Project IGI2: Covert Strike b1 case 'ut': // Unreal Tournament b case 'ut2003': // UT 2003 n |
|
From: Alexander H. <ba...@us...> - 2009-04-08 10:15:39
|
Update of /cvsroot/phgstats/phgstats In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26406 Modified Files: CHANGES Log Message: project:igir support Index: CHANGES =================================================================== RCS file: /cvsroot/phgstats/phgstats/CHANGES,v retrieving revision 1.228 retrieving revision 1.229 diff -C2 -d -r1.228 -r1.229 *** CHANGES 8 Apr 2009 08:19:36 -0000 1.228 --- CHANGES 8 Apr 2009 10:15:35 -0000 1.229 *************** *** 1,4 **** --- 1,5 ---- 2009-04-08 Alexander Hambalgo <ba...@us...> - postal2 suppport + - project IGI support 2009-04-07 Alexander Hambalgo <ba...@us...> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 08:19:54
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/games In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30955/classes/phgslib/games Modified Files: nolf2.class.php Added Files: postal2.class.php Log Message: postal2 support --- NEW FILE: postal2.class.php --- <?php // postal2 extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class postal2 extends prtcl_gsp { var $portdiff = 1; function getinfo() { if ($this->_getStream()) { // set rules vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->needpass = isset($this->rules['password']) ? $this->rules['password'] : 0; // set map picture & path $this->_getmappic(); // set players $this->_getplayers(); return TRUE; } else { return FALSE; } } function _getplayers() { ; $players = array(); $this->rules['team1'] = 0; $this->rules['team2'] = 0; $this->rules['team_score1'] = 0; $this->rules['team_score2'] = 0; $this->rules['team_ping1'] = 0; $this->rules['team_ping2'] = 0; // scan team names; for ($index = 0; $index != $this->numplayers; $index++) { if ($index == 0 && isset($this->rules["team_$index"])) { $this->rules['team_name1'] = $this->rules["team_$index"]; } if ($index != 0 && $this->rules['team_name1'] != $this->rules["team_$index"] && isset($this->rules['team_name2']) == FALSE) { $this->rules['team_name2'] = $this->rules["team_$index"]; break; } } // remove html code from player names and set name_clr, ping_clr for ($index = 0; $index != $this->numplayers; $index++) { $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; $this->players[$index]['score'] = $this->rules["frags_$index"]; $this->players[$index]['ping'] = $this->rules["ping_$index"]; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); $this->players[$index]['team'] = $this->rules["team_$index"]; $this->players[$index]['character'] = $this->rules["character_$index"]; $this->players[$index]['ngsecret'] = $this->rules["ngsecret_$index"]; // create a team score variable if ($this->players[$index]['team'] == $this->rules['team_name1']) { $this->rules['team_score1'] = $this->rules['team_score1'] + $this->players[$index]['score']; $this->rules['team_ping1'] = $this->rules['team_ping1'] + $this->players[$index]['ping']; $this->rules['team1']++; } if ($this->players[$index]['team'] == $this->rules['team_name2']) { $this->rules['team_score2'] = $this->rules['team_score2'] + $this->players[$index]['score']; $this->rules['team_ping2'] = $this->rules['team_ping2'] + $this->players[$index]['ping']; $this->rules['team2']++; } } // sort players if there some online if ($index > 0) { $this->_sortplayers(); } // get avarage ping of teams if available if ($this->rules['team_score1'] != 0) { $this->rules['team_ping1'] = sprintf("%3.0f", $this->rules['team_ping1'] / $this->rules['team1']); } if ($this->rules['team_score2'] != 0) { $this->rules['team_ping2'] = sprintf("%3.0f", $this->rules['team_ping2'] / $this->rules['team2']); } } } ?> Index: nolf2.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/games/nolf2.class.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** nolf2.class.php 7 Apr 2009 17:29:21 -0000 1.1 --- nolf2.class.php 8 Apr 2009 08:19:36 -0000 1.2 *************** *** 1,3 **** ! <?php // NOLF2 extended class /* * Copyright (c) 2004-2009, woah-projekt.de --- 1,3 ---- ! <?php // No One Live Forever 2 extended class /* * Copyright (c) 2004-2009, woah-projekt.de |
|
From: Alexander H. <ba...@us...> - 2009-04-08 08:19:46
|
Update of /cvsroot/phgstats/phgstats/templates In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30955/templates Added Files: detail_postal2.inc.php Log Message: postal2 support --- NEW FILE: detail_postal2.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->game}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers} (-{$srv->prvplayers})</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo "<!-- phgstats server players info -->\n"; if ($srv->numplayers != 0 && $srv->rules['team1'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Character</th> <th class="phgListPlayers">NGSecret</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->numplayers; $n++) { if ($srv->players[$n]['team'] == $srv->rules['team_name1']) { echo <<<HTML_DETAIL_PLAYER_TEAM1 <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['character']}</td> <td class="phgListScore">{$srv->players[$n]['ngsecret']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM1; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM1 <tr> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score1']}</td> <td class="phgListScore"></td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping1']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM1; } if ($srv->numplayers != 0 && $srv->rules['team2'] != 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Character</th> <th class="phgListPlayers">NGSecret</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> HTML_DETAIL_PLAYER_HEAD; for ($n = 0, $i = 1; $n < $srv->numplayers; $n++) { if ($srv->players[$n]['team'] == $srv->rules['team_name2']) { echo <<<HTML_DETAIL_PLAYER_TEAM2 <tr align='center'> <td class="phgListCount">$i</td> <td class="phgListName">{$srv->players[$n]['name_clr']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListScore">{$srv->players[$n]['character']}</td> <td class="phgListScore">{$srv->players[$n]['ngsecret']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> <td class="phgListTeam">{$srv->players[$n]['team']}</td> </tr> HTML_DETAIL_PLAYER_TEAM2; $i++; } } echo <<<HTML_DETAIL_SCORE_TEAM2 <tr align='center'> <td class="phgListCount"></td> <td class="phgListName"></td> <td class="phgListScore">{$srv->rules['team_score2']}</td> <td class="phgListScore"></td> <td class="phgListScore"></td> <td class="phgListPing">{$srv->rules['team_ping2']}</td> <td class="phgListTeam"></td> </tr> </table> HTML_DETAIL_SCORE_TEAM2; } if ($srv->numplayers == 0) { echo <<<HTML_DETAIL_PLAYER_HEAD <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Character</th> <th class="phgListPlayers">NGSecret</th> <th class="phgListPlayers">Ping</th> <th class="phgListPlayers">Team</th> </tr> </table> HTML_DETAIL_PLAYER_HEAD; } echo "<!-- end of server players -->\n"; ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-08 08:19:42
|
Update of /cvsroot/phgstats/phgstats/settings In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30955/settings Modified Files: config.inc.php Log Message: postal2 support Index: config.inc.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/settings/config.inc.php,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** config.inc.php 7 Apr 2009 17:29:21 -0000 1.87 --- config.inc.php 8 Apr 2009 08:19:38 -0000 1.88 *************** *** 2,6 **** /* game server variables: * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 ! * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ --- 2,6 ---- /* game server variables: * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 ! * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, postal2 * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ *************** *** 28,31 **** --- 28,32 ---- 'nexuiz:193.164.132.36:26001:', 'openarena:83.223.64.92:27960:', + 'postal2:207.210.252.210:7777:', //'q1:209.239.113.236:26000:', // no class 'q2:217.115.155.120:27910:', |
|
From: Alexander H. <ba...@us...> - 2009-04-08 08:19:42
|
Update of /cvsroot/phgstats/phgstats In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30955 Modified Files: CHANGES Log Message: postal2 support Index: CHANGES =================================================================== RCS file: /cvsroot/phgstats/phgstats/CHANGES,v retrieving revision 1.227 retrieving revision 1.228 diff -C2 -d -r1.227 -r1.228 *** CHANGES 7 Apr 2009 17:29:20 -0000 1.227 --- CHANGES 8 Apr 2009 08:19:36 -0000 1.228 *************** *** 1,2 **** --- 1,5 ---- + 2009-04-08 Alexander Hambalgo <ba...@us...> + - postal2 suppport + 2009-04-07 Alexander Hambalgo <ba...@us...> - fixed socket close |
|
From: Alexander H. <ba...@us...> - 2009-04-08 08:19:42
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30955/classes/phgslib Modified Files: phgslib.class.php Log Message: postal2 support Index: phgslib.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/phgslib.class.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** phgslib.class.php 7 Apr 2009 17:29:20 -0000 1.22 --- phgslib.class.php 8 Apr 2009 08:19:36 -0000 1.23 *************** *** 144,148 **** case 'nolf2': // No One Lives Forever 2 b1 case 'opflashr': // Operation Flashpoint Resistance n ! case 'postal2': // Postal 2 b case 'project': // Project IGI2: Covert Strike n case 'ut': // Unreal Tournament b --- 144,148 ---- case 'nolf2': // No One Lives Forever 2 b1 case 'opflashr': // Operation Flashpoint Resistance n ! case 'postal2': // Postal 2 b1 case 'project': // Project IGI2: Covert Strike n case 'ut': // Unreal Tournament b |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:38
|
Update of /cvsroot/phgstats/phgstats/settings In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375/settings Modified Files: config.inc.php Log Message: nolf support Index: config.inc.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/settings/config.inc.php,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** config.inc.php 6 Apr 2009 14:38:34 -0000 1.86 --- config.inc.php 7 Apr 2009 17:29:21 -0000 1.87 *************** *** 1,5 **** <?php /* game server variables: ! * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3, kingpin, mohaa, nexuiz, openarena, * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ --- 1,6 ---- <?php /* game server variables: ! * bf1942, cod1, cod2, cod4, cod5, deusex, deva, et, halo, jedi2, jedi3 ! * kingpin, mohaa, nolf, nolf2, nexuiz, openarena, * q1, q2, q3, qw, renegade, rtcw, sof1, sof2, tremolous, urt, swat4, warsow */ *************** *** 23,26 **** --- 24,29 ---- 'mohaa:83.143.133.2:12203:12201:', 'mohaa:213.148.20.93:12203:', + 'nolf:87.106.38.66:11:', + 'nolf2:70.86.157.250:28888:', 'nexuiz:193.164.132.36:26001:', 'openarena:83.223.64.92:27960:', |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:38
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375/classes/phgslib Modified Files: phgslib.class.php Log Message: nolf support Index: phgslib.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/phgslib.class.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** phgslib.class.php 6 Apr 2009 14:38:31 -0000 1.21 --- phgslib.class.php 7 Apr 2009 17:29:20 -0000 1.22 *************** *** 141,145 **** case 'halo': // HALO b1 case 'mohaa': // Medal of Honor b1 ! case 'nolf': // No One Lives Forever b case 'opflashr': // Operation Flashpoint Resistance n case 'postal2': // Postal 2 b --- 141,146 ---- case 'halo': // HALO b1 case 'mohaa': // Medal of Honor b1 ! case 'nolf': // No One Lives Forever b1 ! case 'nolf2': // No One Lives Forever 2 b1 case 'opflashr': // Operation Flashpoint Resistance n case 'postal2': // Postal 2 b |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:37
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/games In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375/classes/phgslib/games Added Files: nolf.class.php nolf2.class.php Log Message: nolf support --- NEW FILE: nolf2.class.php --- <?php // NOLF2 extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class nolf2 extends prtcl_gsp { var $portdiff = 1; function getinfo() { if ($this->_getStream()) { // set rules vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->needpass = isset($this->rules['password']) ? $this->rules['password'] : 0; // set map picture & path $this->_getmappic(); // set players $this->_getplayers(); return TRUE; } else { return FALSE; } } } ?> --- NEW FILE: nolf.class.php --- <?php // NOLF extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class nolf extends prtcl_gsp { var $portdiff = 0; function getinfo() { if ($this->_getStream()) { // set rules vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->needpass = isset($this->rules['password']) ? $this->rules['password'] : 0; // set map picture & path $this->_getmappic(); // set players $this->_getplayers(); return TRUE; } else { return FALSE; } } } ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:31
|
Update of /cvsroot/phgstats/phgstats In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375 Modified Files: CHANGES Log Message: nolf support Index: CHANGES =================================================================== RCS file: /cvsroot/phgstats/phgstats/CHANGES,v retrieving revision 1.226 retrieving revision 1.227 diff -C2 -d -r1.226 -r1.227 *** CHANGES 7 Apr 2009 16:56:31 -0000 1.226 --- CHANGES 7 Apr 2009 17:29:20 -0000 1.227 *************** *** 1,4 **** --- 1,6 ---- 2009-04-07 Alexander Hambalgo <ba...@us...> - fixed socket close + - nolf 1 & 2 support + - gamespy1 supports more than only one player score type 2009-04-06 Alexander Hambalgo <ba...@us...> |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:31
|
Update of /cvsroot/phgstats/phgstats/templates In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29375/templates Added Files: detail_nolf.inc.php detail_nolf2.inc.php Log Message: nolf support --- NEW FILE: detail_nolf.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->game}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers}</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo <<<HTML_DETAIL_PLAYERS_HEAD <!-- phgstats server players info --> <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Ping</th> </tr> HTML_DETAIL_PLAYERS_HEAD; if ($srv->numplayers != 0) { for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++, $i++) { echo <<<HTML_DETAIL_PLAYERS_MAIN <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> </tr> HTML_DETAIL_PLAYERS_MAIN; } } echo <<<HTML_DETAIL_PLAYERS_FOOT </table> <!-- end of server players --> HTML_DETAIL_PLAYERS_FOOT; ?> --- NEW FILE: detail_nolf2.inc.php --- <?php if (!defined('PHGDIR')) { exit(1); } echo <<<HTML_DETAIL_RULES <!-- phgstats server rules info --> <table class="phgListServers"> <tr> <td class="phgListRuleHost">Hostname:</td> <td class="phgListValueHost"> <a class="phgListLink" href="{$use_file}{$use_bind}sh_srv={$sh_srv}">{$srv->hostname}</a> </td> <td class="phgListPic"><img height="50" width="50" src="{$srv->mappic}" alt="{$srv->mapname}"></td> </tr> <tr> <td class="phgListRule">Address:</td> <td class="phgListValue">{$srv->address}:{$srv->gameport}</td> </tr> <tr> <td class="phgListRule">Gamename:</td> <td class="phgListValue">{$srv->game}</td> </tr> <tr> <td class="phgListRule">Gametype:</td> <td class="phgListValue">{$srv->gametype}</td> </tr> <tr> <td class="phgListRule">Mapname:</td> <td class="phgListValue">{$srv->mapname}</td> </tr> <tr> <td class="phgListRule">Players:</td> <td class="phgListValue">{$srv->numplayers} / {$srv->maxplayers}</td> </tr> <tr> <td class="phgListRule">Version:</td> <td class="phgListValue">{$srv->gameversion}</td> </tr> </table> <!-- end of server rules --> HTML_DETAIL_RULES; echo <<<HTML_DETAIL_PLAYERS_HEAD <!-- phgstats server players info --> <table class="phgListPlayers"> <tr> <th class="phgListPlayers">Rank</th> <th class="phgListPlayers">Name</th> <th class="phgListPlayers">Score</th> <th class="phgListPlayers">Ping</th> </tr> HTML_DETAIL_PLAYERS_HEAD; if ($srv->numplayers != 0) { for ($n = 0, $i = 1; $n < $srv->fixedplayers; $n++, $i++) { echo <<<HTML_DETAIL_PLAYERS_MAIN <tr> <td class="phgListCount">{$i}</td> <td class="phgListName">{$srv->players[$n]['name']}</td> <td class="phgListScore">{$srv->players[$n]['score']}</td> <td class="phgListPing">{$srv->players[$n]['ping']}</td> </tr> HTML_DETAIL_PLAYERS_MAIN; } } echo <<<HTML_DETAIL_PLAYERS_FOOT </table> <!-- end of server players --> HTML_DETAIL_PLAYERS_FOOT; ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-07 17:29:04
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/protocols In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29225/classes/phgslib/protocols Modified Files: prtcl_gsp.class.php Log Message: support of more than only one player score type Index: prtcl_gsp.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_gsp.class.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** prtcl_gsp.class.php 7 Apr 2009 16:56:31 -0000 1.5 --- prtcl_gsp.class.php 7 Apr 2009 17:28:47 -0000 1.6 *************** *** 172,176 **** $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; ! $this->players[$index]['score'] = $this->rules["score_$index"]; $this->players[$index]['ping'] = ($this->rules["ping_$index"] != '') ? $this->rules["ping_$index"] : 0; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); --- 172,177 ---- $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; ! $this->players[$index]['score'] = isset($this->rules["score_$index"]) ! ? $this->rules["score_$index"] : $this->rules["frags_$index"]; $this->players[$index]['ping'] = ($this->rules["ping_$index"] != '') ? $this->rules["ping_$index"] : 0; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); |
|
From: Alexander H. <ba...@us...> - 2009-04-07 16:56:52
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/protocols In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24072/classes/phgslib/protocols Modified Files: prtcl_gsp.class.php prtcl_gsp2.class.php prtcl_q3.class.php Log Message: socket close Index: prtcl_q3.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_q3.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_q3.class.php 3 Apr 2009 11:07:29 -0000 1.4 --- prtcl_q3.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 107,112 **** fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); } - fclose($socket); if ($this->info_str) { --- 107,113 ---- fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); + + fclose($socket); } if ($this->info_str) { Index: prtcl_gsp2.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_gsp2.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_gsp2.class.php 6 Apr 2009 05:34:31 -0000 1.4 --- prtcl_gsp2.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 153,159 **** fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); } ! fclose($socket); ! if ($this->info_str) { // sort the infostring --- 153,160 ---- fwrite($socket, $this->send_str); $this->info_str = fread($socket, $this->pkg_size); + + fclose($socket); } ! if ($this->info_str) { // sort the infostring Index: prtcl_gsp.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/protocols/prtcl_gsp.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prtcl_gsp.class.php 6 Apr 2009 14:38:34 -0000 1.4 --- prtcl_gsp.class.php 7 Apr 2009 16:56:31 -0000 1.5 *************** *** 104,111 **** $socket = fsockopen('udp://'. $this->address, $this->queryport, $errno, $errstr, 30); ! if ($socket == FALSE) { ! echo "Error: $errno - $errstr<br>\n"; ! } ! else { $packets = array(); $final = 0; --- 104,108 ---- $socket = fsockopen('udp://'. $this->address, $this->queryport, $errno, $errstr, 30); ! if ($socket != FALSE) { $packets = array(); $final = 0; *************** *** 151,156 **** } } } - fclose($socket); if ($this->info_str) { --- 148,153 ---- } } + fclose($socket); } if ($this->info_str) { |
|
From: Alexander H. <ba...@us...> - 2009-04-07 16:56:45
|
Update of /cvsroot/phgstats/phgstats In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24072 Modified Files: CHANGES Log Message: socket close Index: CHANGES =================================================================== RCS file: /cvsroot/phgstats/phgstats/CHANGES,v retrieving revision 1.225 retrieving revision 1.226 diff -C2 -d -r1.225 -r1.226 *** CHANGES 6 Apr 2009 14:38:28 -0000 1.225 --- CHANGES 7 Apr 2009 16:56:31 -0000 1.226 *************** *** 1,2 **** --- 1,5 ---- + 2009-04-07 Alexander Hambalgo <ba...@us...> + - fixed socket close + 2009-04-06 Alexander Hambalgo <ba...@us...> - gamespy1 protocol fixes |
|
From: Alexander H. <ba...@us...> - 2009-04-06 14:40:32
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib/games In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv6502/classes/phgslib/games Added Files: deva.class.php Log Message: devastation support --- NEW FILE: deva.class.php --- <?php // Devastation extended class /* * Copyright (c) 2004-2009, woah-projekt.de * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of the phgstats project (woah-projekt.de) * nor the names of its contributors may be used to endorse or * promote products derived from this software without specific * prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ class deva extends prtcl_gsp { var $portdiff = 10; function getinfo() { if ($this->_getStream()) { // set rules vars $this->hostname = $this->rules['hostname']; $this->hostname_clr = $this->rules['hostname']; $this->gametype = $this->rules['gametype']; $this->gameversion = $this->rules['gamever']; $this->mapname = $this->rules['mapname']; $this->numplayers = $this->rules['numplayers']; $this->maxplayers = $this->rules['maxplayers']; $this->needpass = $this->rules['password']; // set map picture & path $this->_getmappic(); // set players $this->_getplayers(); return TRUE; } else { return FALSE; } } function _getplayers() { $players = array(); $index2 = 0; // second variable for lose data, if server load a new map // remove html code from player names and set name_clr, ping_clr for ($index = 0; $index != $this->numplayers; $index++) { if (isset($this->rules["player_$index"])) { $this->players[$index]['name'] = $this->rules["player_$index"]; $this->players[$index]['name_clr'] = $this->players[$index]['name']; $this->players[$index]['score'] = $this->rules["frags_$index"]; $this->players[$index]['ping'] = $this->rules["ping_$index"]; //$this->players[$index]['ping_clr'] = $this->_check_color($this->players[$index]['ping'], 2); $index2++; } } // sort players if there some online if ($index2 > 0) { $this->_sortplayers(); } // create a second numplayers variable, to get only players with data $this->fixedplayers = $index2; } } ?> |
|
From: Alexander H. <ba...@us...> - 2009-04-06 14:39:11
|
Update of /cvsroot/phgstats/phgstats/classes/phgslib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv5935/classes/phgslib Modified Files: phgslib.class.php Log Message: mohaa support Index: phgslib.class.php =================================================================== RCS file: /cvsroot/phgstats/phgstats/classes/phgslib/phgslib.class.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** phgslib.class.php 6 Apr 2009 13:23:15 -0000 1.20 --- phgslib.class.php 6 Apr 2009 14:38:31 -0000 1.21 *************** *** 140,144 **** case 'renegade': // C&C Renegade b1 case 'halo': // HALO b1 ! case 'mohaa': // Medal of Honor b case 'nolf': // No One Lives Forever b case 'opflashr': // Operation Flashpoint Resistance n --- 140,144 ---- case 'renegade': // C&C Renegade b1 case 'halo': // HALO b1 ! case 'mohaa': // Medal of Honor b1 case 'nolf': // No One Lives Forever b case 'opflashr': // Operation Flashpoint Resistance n |