本文整理汇总了PHP中GetArrVal函数的典型用法代码示例。如果您正苦于以下问题:PHP GetArrVal函数的具体用法?PHP GetArrVal怎么用?PHP GetArrVal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetArrVal函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetArrVal
echo _PASSREQY;
} else {
echo _PASSREQN;
}
}
if (isset($data[$GSgame]['timelimit'])) {
echo "<tr><td>" . _TIMELIMIT . "</td><td>" . GetArrVal($data[$GSgame]['timelimit']) . "</td></tr>";
}
if (isset($data[$GSgame]['fraglimit'])) {
echo "<tr><td>" . _FRAGLIMIT . "</td><td>" . GetArrVal($data[$GSgame]['fraglimit']) . "</td></tr>";
}
// dm flags info courtesy of
// http://home.nycap.rr.com/qware/index.html
// http://www.lethaloldfarts.net/branches/q2/wod_setup.htm
// no multi language support since quake2 is the only game that uses 'em
if ($flag = GetArrVal($data[$GSgame]['dmflags'])) {
do {
if ($flag >= 524288) {
$flagstring .= "CTF No Tech Powerups<br>";
$flag = $flag - 524288;
}
if ($flag >= 262144) {
$flagstring .= "Armor<br>";
$flag = $flag - 262144;
}
if ($flag >= 131072) {
$flagstring .= "CTF Forced Join<br>";
$flag = $flag - 131072;
}
if ($flag >= 32768) {
$flagstring .= "Fixed FOV<br>";
示例2: GetArrVal
} else {
echo _NDEDICATED;
}
echo "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . GetArrVal($data[$GSgame]['custom']['address']) . ":" . GetArrVal($data[$GSgame]['hostport']) . "</a></td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>";
if ($data[$GSgame]['gamespermap']) {
echo "<tr><td>" . _GAMESPERMAP . "</td><td>" . GetArrVal($data[$GSgame]['gamespermap']) . "</td></tr>";
}
echo "<tr><td>" . _PLAYERS . "</td><td>" . $vp . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>" . "<tr><td>" . _PASSWORD . "</td><td>";
if (GetArrVal($data[$GSgame]['password']) == '1') {
echo _PASSREQY;
} else {
echo _PASSREQN;
}
echo "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>";
if (GetArrVal($data[$GSgame]['timelimit']) == '0') {
echo _NONE;
} else {
if (GetArrVal($data[$GSgame]['timelimit']) == '1') {
echo GetArrVal($data[$GSgame]['timelimit']) . " " . _MINUTE;
} else {
echo GetArrVal($data[$GSgame]['timelimit'] . " " . _MINUTES);
}
}
echo "</td></tr>" . "<tr><td>" . _FF . "</td><td>" . Abled($data[$GSgame]['teamdamage'] == '0') . "</td></tr>" . "<tr><td>" . _TIMELEFT . "</td><td>" . GetArrVal($data[$GSgame]['timeleft']) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>" . YesNo($data[$GSgame]['timelimit']) . "</td></tr>";
if (isset($data[$GSgame]['winpoints'])) {
echo "<tr><td>" . _POINTSWIN . "</td><td>" . GetArrVal($data[$GSgame]['winpoints']) . "</td></tr>";
}
if (isset($data[$GSgame]['powerups'])) {
echo "<tr><td>" . _POWERUPS . "</td><td>" . GetArrVal($data[$GSgame]['powerups']) . "</td></tr>";
}
echo "<tr><td align=\"center\" colspan=\"2\"><a href=\"http://www.codemasters.com/igi2\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例3: GetArrVal
if (substr(GetArrVal($data[$GSgame]['adminemail']), 0, 7) == 'http://') {
echo "<a href=\"" . GetArrVal($data[$GSgame]['adminemail']) . "\" target=\"_blank\">" . GetArrVal($data[$GSgame]['adminname']) . "</a>";
}
} else {
echo GetArrVal($data[$GSgame]['adminname']);
}
echo "</td></tr>";
}
if (isset($data[$GSgame]['gamespeed'])) {
echo "<tr><td>" . _GAMESPEED . "</td><td>" . GetArrVal($data[$GSgame]['gamespeed']) . "</td></tr>";
}
if (isset($data[$GSgame]['goalscore'])) {
echo "<tr><td>" . _MAXSCORE . "</td><td>" . GetArrVal($data[$GSgame]['goalscore']) . "</td></tr>";
}
if ($data[$GSgame]['translocator']) {
echo "<tr><td>" . _TRANSLOCATOR . "</td><td>" . Abled($data[$GSgame]['translocator']) . "</td></tr>";
}
if ($data[$GSgame]['weaponstay']) {
echo "<tr><td>" . _WEAPONSTAY . "</td><td>" . Abled($data[$GSgame]['weaponstay']) . "</td></tr>";
}
if ($data[$GSgame]['friendlyfire']) {
echo "<tr><td>" . _FF . "</td><td>" . GetArrVal($data[$GSgame]['friendlyfire']) . "</td></tr>";
}
if ($data[$GSgame]['mutator0']) {
for ($m = 0; isset($data[$GSgame]['mutator' . $m]); $m++) {
$MUTATORS .= GetArrVal($data[$GSgame]['mutator' . $m]) . "<br>";
}
} else {
$MUTATORS = _NONE;
}
echo "<tr><td valign='top'>" . _MUTATORS . "</td><td valign='top'>" . $MUTATORS . "</td></tr>" . "</table>";
示例4: GetArrVal
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['players'][$p]['team']);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['players'][$p]['deaths']);
$cols[$p + 1][3] = GetArrVal($data[$GSgame]['players'][$p]['frags']);
$cols[$p + 1][4] = GetArrVal($data[$GSgame]['players'][$p]['ping']);
}
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['gamever']) . "</td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . GetArrVal($data[$GSgame]['custom']['address']) . ":" . GetArrVal($data[$GSgame]['hostport']) . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['numplayers']) . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>";
if (GetArrVal($data[$GSgame]['timelimit']) == '0') {
echo _NONE;
} else {
if (GetArrVal($data[$GSgame]['timelimit']) == '1') {
echo GetArrVal($data[$GSgame]['timelimit']) . " " . _MINUTE;
} else {
echo GetArrVal($data[$GSgame]['timelimit']) . " " . _MINUTES;
}
}
echo "</td></tr>" . "<tr><td>" . _FRAGLIMIT . "</td><td>";
if (GetArrVal($data[$GSgame]['fraglimit'])) {
echo GetArrVal($data[$GSgame]['fraglimit']);
} else {
echo _NONE;
}
echo "</td></tr>" . "<tr><td>" . _TEAM . " " . _FRAGLIMIT . "</td><td>";
if (GetArrVal($data[$GSgame]['teamfraglimit'])) {
echo GetArrVal($data[$GSgame]['teamfraglimit']);
} else {
echo _NONE;
}
echo "</td></tr>" . "<tr><td colspan=\"2\" align=\"center\"><a href=\"http://www.interplay.com/games/product.asp?GameID=31\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例5: array
<?php
//this should filter out the odd characters out of playernames
//they are probably for color codes like quake3 but i couldn't find any documentation on them
$junk = array("", "", "", "", "", "", "", "", "�", "", "", "", "", "", "", "", "");
$host = str_replace($junk, "", $data[$GSgame]['hostname']);
echo "<LINK REL=\"StyleSheet\" HREF=\"modules/" . $module_name . "/q3col.css\" TYPE=\"text/css\">" . "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='20%'>" . _SERVERNAME . "</td><td width='40%'>" . $host . "</td><td width='40%' valign='top' rowspan='20'>" . "<table><tr><td colspan=3>" . MapPic($data[$GSgame]['custom']['id'], $data[$GSgame]['mapname'], 0, "") . "</td></tr><tr><td>";
if (GetArrVal($data[$GSgame]['num_players']) != 0) {
$cols[0] = array(_PLAYERNAME, _SCORE, _PING);
for ($p = 0; $p <= GetArrVal($data[$GSgame]['num_players']) - 1; $p++) {
$cols[$p + 1][0] = str_replace($junk, "", $data[$GSgame]['players'][$p]['name']);
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['players'][$p]['score']);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['players'][$p]['ping']);
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . $data[$GSgame]['custom']['address'] . ":" . $data[$GSgame]['custom']['query_port'] . " " . ASElink($data[$GSgame]['custom'], "SOF") . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . $data[$GSgame]['mapname'] . "</td></tr>";
if (isset($data[$GSgame]['gameversion'])) {
echo "<tr><td>" . _SVERSION . "</td><td>" . $data[$GSgame]['gameversion'] . "</td></tr>";
}
echo "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>";
echo "<tr><td>" . _PLAYERS . "</td><td>" . $data[$GSgame]['num_players'] . "/" . $data[$GSgame]['maxclients'] . "</td></tr>";
if (isset($data[$GSgame]['timelimit'])) {
echo "<tr><td>" . _TIMELIMIT . "</td><td>" . $data[$GSgame]['timelimit'] . "</td></tr>";
}
if (isset($data[$GSgame]['fraglimit'])) {
echo "<tr><td>" . _FRAGLIMIT . "</td><td>" . $data[$GSgame]['fraglimit'] . "</td></tr>";
}
if (isset($data[$GSgame]['mp_pointlimit'])) {
echo "<tr><td>" . _POINTLIMIT . "</td><td>" . $data[$GSgame]['mp_pointlimit'] . "</td></tr>";
}
示例6: GetArrVal
<?php
echo "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='20%' valign='top'>" . _SERVERNAME . "</td><td width='40%' valign='top'>" . GetArrVal($data[$GSgame]['hostname']) . "</td><td width='40%' valign='top' rowspan='12'>" . "<table><tr><td colspan=3>" . MapPic($data[$GSgame]['custom']['id'], GetArrVal($data[$GSgame]['mapname']), 0, "") . "</td></tr><tr><td>" . _HOSTEDBY . " " . GetArrVal($data[$GSgame]['hostnick']) . "</td></tr></table></td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . GetArrVal($data[$GSgame]['custom']['address']) . ":" . GetArrVal($data[$GSgame]['hostport']) . "</td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['gamever']) . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>" . "<tr><td>" . _TEAMSTYLE . "</td><td>" . GetArrVal($data[$GSgame]['team_style']) . "</td></tr>" . "<tr><td>" . _MAPSTYLE . "</td><td>" . GetArrVal($data[$GSgame]['map_style']) . "</td></tr>" . "<tr><td>" . _MAPSIZE . "</td><td>" . GetArrVal($data[$GSgame]['map_size']) . "</td></tr>" . "<tr><td>" . _CANNONTIME . "</td><td>" . GetArrVal($data[$GSgame]['cannon_times']) . "</td></tr>" . "<tr><td>" . _TOURNAMENT . "</td><td>" . GetArrVal($data[$GSgame]['tournament_play']) . "</td></tr>" . "<tr><td>" . _BALTEAMS . "</td><td>" . GetArrVal($data[$GSgame]['require_random_teams']) . "</td></tr>" . "<tr><td>" . _GAMESPEED . "</td><td>" . GetArrVal($data[$GSgame]['game_speed']) . "</td></tr>" . "<tr><td>" . _MAPSIZE . "</td><td>" . GetArrVal($data[$GSgame]['hostnick']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['numplayers']) . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>" . "<tr><td colspan='2' align='center'><a href=\"http://www.microsoft.com/games/riseofnations/\" target=\"_blank\"><img border='0' src='modules/" . $module_name . "/output_templates/" . GetArrVal($data[$GSgame]['custom']['id']) . "/logo.jpg' alt='" . GetArrVal($data[$GSgame]['custom']['id']) . "'></a></td></tr></table>";
示例7: GetArrVal
<?php
echo "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='30%'>" . _SERVERNAME . "</td><td width='40%'>" . GetArrVal($data[$GSgame]['hostname']) . "</td><td rowspan='14'>" . "<table border=0><tr><td colspan=3>" . MapPic($data[$GSgame]['custom']['id'], GetArrVal($data[$GSgame]['mapname']), 0, "") . "</td></tr><tr><td>";
if (GetArrVal($data[$GSgame]['numplayers']) != 0) {
$cols[0] = array(_PLAYERNAME, _PING, _FRAGS, _DEATHS);
for ($p = 0; $p <= GetArrVal($data[$GSgame]['numplayers']) - 1; $p++) {
$cols[$p + 1][0] = GetArrVal($data[$GSgame]['player_' . $p]);
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['score_' . $p]);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['ping_' . $p]);
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _SVERSION . "</td><td>";
echo GetArrVal($data[$GSgame]['gamever']);
echo "</td></tr>" . "<tr><td>" . _SERVERTYPE . "</td><td>";
if (isset($data[$GSgame]['dedicated']) and $data[$GSgame]['dedicated'] = '1') {
echo _DEDICATED;
} else {
echo _NDEDICATED;
}
echo "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . $data[$GSgame]['custom']['address'] . ":" . $data[$GSgame]['hostport'] . "</a></td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . $data[$GSgame]['mapname'] . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . $data[$GSgame]['gametype'] . "</td></tr>";
if ($data[$GSgame]['gamespermap']) {
echo "<tr><td>" . _GAMESPERMAP . "</td><td>" . $data[$GSgame]['gamespermap'] . "</td></tr>";
}
echo "<tr><td>" . _PLAYERS . "</td><td>" . $data[$GSgame]['numplayers'] . "/" . $data[$GSgame]['maxplayers'] . "</td></tr>" . "<tr><td>" . _PASSWORD . "</td><td>";
if ($data[$GSgame]['password'] == '1') {
echo _PASSREQY;
} else {
echo _PASSREQN;
}
echo "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>";
示例8: GetArrVal
echo "<a href=\"mailto:" . $ae . "\">" . GetArrVal($data[$GSgame]['AdminName']) . "</a>";
}
if (strstr($ae, 'http://')) {
echo "<a href=\"" . $ae . "\" target=\"_blank\">" . GetArrVal($data[$GSgame]['AdminName']) . "</a>";
}
} else {
echo GetArrVal($data[$GSgame]['AdminName']);
}
echo "</td></tr>";
if (GetArrVal($data[$GSgame]['goalteamscore'])) {
echo "<tr><td>" . _MAXSCORE . "</td><td>" . GetArrVal($data[$GSgame]['goalteamscore']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['maxteams'])) {
echo "<tr><td>" . _MAXTEAMS . "</td><td>" . GetArrVal($data[$GSgame]['maxteams']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['balanceteams'])) {
echo "<tr><td>" . _BALTEAMS . "</td><td>" . GetArrVal($data[$GSgame]['balanceteams']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['playersbalanceteams'])) {
echo "<tr><td>" . _PBALTEAMS . "</td><td>" . GetArrVal($data[$GSgame]['playersbalanceteams']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['friendlyfire'])) {
echo "<tr><td>" . _FF . "</td><td>" . GetArrVal($data[$GSgame]['friendlyfire']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['mutators'])) {
$MUTATORS = str_replace(",", "<br>", GetArrVal($data[$GSgame]['mutators']));
} else {
$MUTATORS = _NONE;
}
echo "<tr><td>" . _TOURNAMENT . "</td><td>" . GetArrVal($data[$GSgame]['tournament']) . "</td></tr>" . "<tr><td>" . _GAMESTYLE . "</td><td>" . GetArrVal($data[$GSgame]['gamestyle']) . "</td></tr>" . "<tr><td valign='top'>" . _MUTATORS . "</td><td>" . $MUTATORS . "</td></tr></table>";
示例9: GetArrVal
<?php
echo "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='30%'>" . _SERVERNAME . "</td><td width='40%'>" . GetArrVal($data[$GSgame]['hostname']) . "</td>" . "<td rowspan='18' valign='top' width='230'><table><tr><td colspan=3>" . MapPic($data[$GSgame]['custom']['id'], $data[$GSgame]['mapname'], 0, "") . "</td></tr><tr><td>";
if (GetArrVal($data[$GSgame]['num_players']) != 0) {
$cols[0] = array(_PLAYERNAME, _FRAGS, _TEAM, _PING);
for ($p = 0; $p <= GetArrVal($data[$GSgame]['num_players']); $p++) {
$cols[$p + 1][0] = FCColors($data[$GSgame]['players'][$p]['name'], $GSTags);
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['players'][$p]['score']);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['players'][$p]['team']);
$cols[$p + 1][3] = GetArrVal($data[$GSgame]['players'][$p]['ping']);
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['version']) . "</td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . GetArrVal($data[$GSgame]['custom']['address']) . ":" . GetArrVal($data[$GSgame]['custom']['query_port']) . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['map']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['game_type']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['num_players']) . "</td></tr>" . "<tr><td>" . _FF . "</td><td>" . Abled(intval($data[$GSgame]['gr_FriendlyFire'])) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>";
if (GetArrVal($data[$GSgame]['gr_TimeLimit']) == '0') {
echo _NONE;
} else {
if (intval(GetArrVal($data[$GSgame]['gr_TimeLimit'])) == '1') {
echo intval(GetArrVal($data[$GSgame]['gr_TimeLimit'])) . " " . _MINUTE;
} else {
echo intval(GetArrVal($data[$GSgame]['gr_TimeLimit'])) . " " . _MINUTES;
}
}
echo "</td></tr>";
echo "<tr><td colspan=\"2\" align=\"center\"><a href=\"http://www.farcrygame.com\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例10: array
if (isset($data[$GSgame]['players'][$p]['player'])) {
$cols[0] = array(_PLAYERNAME, _PING, _FRAGS, _DEATHS);
if (array_search_r(Q3colors($data[$GSgame]['players'][$p]['player'], $GSTags), $cols) == false) {
$cols[$p + 1][0] = Q3colors($data[$GSgame]['players'][$p]['player'], $GSTags);
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['players'][$p]['ping']);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['players'][$p]['frags']);
$cols[$p + 1][3] = GetArrVal($data[$GSgame]['players'][$p]['deaths']);
$vp++;
}
}
$p++;
} while ($p <= 64);
if (isset($cols[1][1])) {
echo PlayerList($cols);
$vp--;
} else {
$vp = 0;
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _SERVERNAME . "</td><td>" . GetArrVal($data[$GSgame]['hostname']) . "</td></tr>" . "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['gamever']) . "</td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . $data[$GSgame]['custom']['address'] . ":" . GetArrVal($data[$GSgame]['hostport']) . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>";
echo "<tr><td>" . _PLAYERS . "</td><td>" . $vp . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>";
$tl = GetArrVal($data[$GSgame]['timelimit']);
if ($tl == '0') {
echo _NONE;
} else {
if ($tl == '1') {
echo $tl . " " . _MINUTE;
} else {
echo $tl . " " . _MINUTES;
}
}
echo "</td></tr><tr><td align=\"center\" colspan=\"2\"><a href=\"http://mohaa.ea.com/\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例11: GetArrVal
<?php
if (GetArrVal($data[$GSgame]['gamename']) == 'thps3pc') {
$thpsnum = 3;
$url = "http://www.neversoft.com/th3/index.htm";
} else {
$thpsnum = 4;
$url = "http://www.neversoft.com/th4/thps4mainpage.htm";
}
echo "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='20%' valign='top'>" . _SERVERNAME . "</td><td width='40%' valign='top'>" . GetArrVal($data[$GSgame]['hostname']) . "</td><td width='40%' valign='top' rowspan='12'>" . "<table><tr><td colspan=3>" . MapPic($data[$GSgame]['custom']['id'], GetArrVal($data[$GSgame]['mapname']), 0, "") . "</td></tr><tr><td>";
if (GetArrVal($data[$GSgame]['numplayers']) != 0 and $thpsnum == 3) {
$cols[0] = array(_PLAYERNAME);
for ($p = 0; $p <= GetArrVal($data[$GSgame]['numplayers']) - 1; $p++) {
$cols[$p + 1][0] = GetArrVal($data[$GSgame]['players'][$p]['player']);
}
echo PlayerList($cols);
} else {
echo _HOSTEDBY . " " . GetArrVal($data[$GSgame]['players'][0]['player']);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . GetArrVal($data[$GSgame]['custom']['address']) . ":" . GetArrVal($data[$GSgame]['hostport']) . "</td></tr>" . "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>" . "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['gamever']) . "</td></tr>" . "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>" . "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['numplayers']) . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>" . GetArrVal($data[$GSgame]['timelimit']) . "</td></tr>" . "<tr><td colspan='2' align='center'><a href=\"" . $url . "\" target=\"_blank\"><img border='0' src='modules/" . $module_name . "/output_templates/" . GetArrVal($data[$GSgame]['custom']['id']) . "/logo" . $thpsnum . ".png' alt='" . GetArrVal($data[$GSgame]['custom']['id']) . "'></a></td></tr></table>";
示例12: Abled
}
if (isset($data[$GSgame]['g_friendlyFire'])) {
echo "<tr><td>" . _FF . "</td><td>" . Abled($data[$GSgame]['g_friendlyFire']) . "</td></tr>";
}
if (isset($data[$GSgame]['sv_punkbuster'])) {
echo "<tr><td>" . _PUNKBUSTER . "</td><td>" . Abled($data[$GSgame]['sv_punkbuster']) . "</td></tr>";
}
if (isset($data[$GSgame]['g_balancedteams'])) {
echo "<tr><td>" . _BALTEAMS . "</td><td>" . Abled($data[$GSgame]['g_balancedteams']) . "</td></tr>";
}
if (GetArrVal($data[$GSgame]['.Admin'])) {
echo "<tr><td>" . _ADMINNAME . "</td><td>";
if ($ae = GetArrVal($data[$GSgame]['.Website'])) {
if (strstr($ae, '@')) {
echo "<a href=\"mailto:" . $ae . "\">" . GetArrVal($data[$GSgame]['.Website']) . "</a>";
}
if (strstr($ae, 'http://')) {
echo "<a href=\"" . $ae . "\" target=\"_blank\">" . GetArrVal($data[$GSgame]['.Website']) . "</a>";
}
} else {
echo GetArrVal($data[$GSgame]['.Admin']);
}
echo "</td></tr>";
}
if (isset($data[$GSgame]['Location:'])) {
echo "<tr><td>" . _LOCATION . "</td><td><a href=\"" . GetArrVal($data[$GSgame]['Location:']) . "</td></tr>";
}
if (isset($data[$GSgame]['CPU'])) {
echo "<tr><td>" . _CPU . "</td><td><a href=\"" . GetArrVal($data[$GSgame]['CPU']) . "</td></tr>";
}
echo "<tr><td align=\"center\" valign=\"top\" colspan=\"2\"><a href=\"http://www.callofduty.com/\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例13: GetArrVal
echo "</td></tr>";
echo "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['num_players']) . "/" . GetArrVal($data[$GSgame]['max_players']) . "</td></tr>" . "<tr><td>" . _DIP . "</td><td>";
if (GetArrVal($data[$GSgame]['drop_in_prog']) == '1') {
echo _YES;
} else {
echo _NO;
}
echo "<tr><td>" . _GIP . "</td><td>";
if (GetArrVal($data[$GSgame]['game_in_prog']) == '1') {
echo _YES;
} else {
echo _NO;
}
echo "<tr><td>" . _ATM . "</td><td>";
if (GetArrVal($data[$GSgame]['allow_tecmix']) == '1') {
echo _YES;
} else {
echo _NO;
}
echo "<tr><td>" . _FVEH . "</td><td>";
if (GetArrVal($data[$GSgame]['factory_veh']) == '1') {
echo _YES;
} else {
echo _NO;
}
echo "</td></tr>";
echo "<tr><td>" . _CL . "</td><td>" . GetArrVal($data[$GSgame]['combat_limit']) . "</td></tr>" . "<tr><td>" . _TL . "</td><td>" . GetArrVal($data[$GSgame]['tech_limit']) . "</td></tr>" . "<tr><td>" . _ML . "</td><td>" . GetArrVal($data[$GSgame]['mass_limit']) . "</td></tr>" . "<tr><td>" . _SL . "</td><td>" . GetArrVal($data[$GSgame]['spawn_limit']) . "</td></tr>" . "<tr><td>" . _FRAGLIMIT . "</td><td>" . GetArrVal($data[$GSgame]['frag_limit']) . "</td></tr>" . "<tr><td>" . _TIMELIMIT . "</td><td>" . GetArrVal($data[$GSgame]['time_limit']) . "</td></tr>";
echo "</td></tr>";
//echo "<tr><td height=\"50\" colspan=\"2\" align=\"center\" valign=\"top\">";
echo "<tr><td align=\"left\" colspan=\"2\"><a href=\"http://www.starsiegeplayers.com/\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.gif\"></a></td></tr>";
echo "<tr><td align=\"left\" colspan=\"2\">Protocol by:<a href=\"http://www.redarmageddon.net/\" target=\"_blank\">[RA]Butterbean</a></td></tr></table>";
示例14: urlencode
$cols[$p + 1][0] = "<a href=\"http://www.ghostrecon.com/leaderboard.php?ord=&srt=5&ld=1>ag=" . urlencode(GetArrVal($data[$GSgame]['players'][$p]['name'])) . "\" target=\"_blank\">" . GetArrVal($data[$GSgame]['players'][$p]['name']) . "</a>";
$vp++;
}
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _SERVERNAME . "</td><td>" . GetArrVal($data[$GSgame]['name']) . "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . $data[$GSgame]['custom']['address'] . ":" . $data[$GSgame]['custom']['query_port'] . "</td></tr>" . "<tr><td>" . _SERVERTYPE . "</td><td>";
echo " ";
if (GetArrVal($data[$GSgame]['dedicated']) == 0) {
echo _NDEDICATED;
} else {
echo _DEDICATED;
}
if (isset($data[$GSgame]['version'])) {
echo "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['version']) . "</td></tr>";
}
echo "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>";
echo "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['map']) . "</td></tr>";
echo "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['game_type']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['num_players']) . "/" . GetArrVal($data[$GSgame]['max_players']) . "</td></tr>";
if (isset($data[$GSgame]['password'])) {
echo "<tr><td>" . _PASSWORD . "</td><td>";
if (GetArrVal($data[$GSgame]['password']) != 1) {
echo _PASSREQN;
} else {
echo _PASSREQY;
}
}
if (isset($data[$GSgame]['motd'])) {
echo "<tr><td>" . _MOTD . "</td><td>" . GetArrVal($data[$GSgame]['motd']) . "</td></tr>";
}
echo "<tr><td align=\"center\" colspan=\"2\"><a href=\"http://www.ghostrecon.com/index.php\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.png\"></a></td></tr></table>";
示例15: GetArrVal
<?php
echo "<table border='0' cellpadding='0' cellspacing='10' width='100%'>" . "<tr><td width='20%' valign='top'>" . _GAMENAME . "</td><td width='40%' valign='top'>" . GetArrVal($data[$GSgame]['custom']['name']) . "</td><td width='40%' valign='top' rowspan='20'>" . "<table border=0 cellpadding=0 cellspacing=7><tr><td colspan=4>" . MapPic($data[$GSgame]['custom']['id'], $data[$GSgame]['mapname'], 0, "") . "</td></tr><tr><td>";
if (GetArrVal($data[$GSgame]['numplayers']) != 0) {
$cols[0] = array(_PLAYERNAME, _TEAM, _PING);
for ($p = 0; $p <= GetArrVal($data[$GSgame]['numplayers']) - 1; $p++) {
$cols[$p + 1][0] = GetArrVal($data[$GSgame]['players'][$p]['player']);
$cols[$p + 1][1] = GetArrVal($data[$GSgame]['players'][$p]['team']);
$cols[$p + 1][2] = GetArrVal($data[$GSgame]['players'][$p]['ping']);
}
echo PlayerList($cols);
}
echo "</td></tr></table></td></tr>" . "<tr><td>" . _SERVERNAME . "</td><td>" . GetArrVal($data[$GSgame]['hostname']) . "</td></tr>" . "<tr><td>" . _HOSTADDRESS . "</td><td>" . $data[$GSgame]['custom']['address'] . ":" . $data[$GSgame]['custom']['query_port'] . "</td></tr>";
if (isset($data[$GSgame]['gamever'])) {
echo "<tr><td>" . _SVERSION . "</td><td>" . GetArrVal($data[$GSgame]['gamever']) . "</td></tr>";
}
echo "<tr><td>" . _PING . "</td><td>" . $ping . "</td></tr>";
echo "<tr><td>" . _MAPNAME . "</td><td>" . GetArrVal($data[$GSgame]['mapname']) . "</td></tr>";
echo "<tr><td>" . _GAMETYPE . "</td><td>" . GetArrVal($data[$GSgame]['gametype']) . "</td></tr>" . "<tr><td>" . _PLAYERS . "</td><td>" . GetArrVal($data[$GSgame]['numplayers']) . "/" . GetArrVal($data[$GSgame]['maxplayers']) . "</td></tr>";
if (isset($data[$GSgame]['pwx'])) {
echo "<tr><td>" . _PASSWORD . "</td><td>";
if (GetArrVal($data[$GSgame]['pwx']) != 1) {
echo _PASSREQN;
} else {
echo _PASSREQY;
}
}
echo "<tr><td align=\"center\" colspan=\"2\"><a href=\"http://www.redstorm.com/games/gameinfo.php?id=51\" target=\"_blank\"><img border=\"0\" src=\"modules/" . $module_name . "/output_templates/" . $data[$GSgame]['custom']['id'] . "/logo.gif\"></a></td></tr></table>";