kann mir jemand sagen, wo ich diesen Tag hier einfügen muss
<font size="-1" color="#ffffff">
damit ich das gewünschte erreichen kann?
Hier der Code:
<?php if (!defined('PHGDIR')) { exit(); } include_once(PHGDIR . 'settings/config_n.inc.php'); // phgstats configuration include_once(PHGDIR . 'classes/phgstats_n.class.php'); // main phgstats class $gameserver_n_old = $gameserver_n; for ($i = (count($gameserver_n_old) - 1), $k = 0; $i >= 0; $i--, $k++) { $gameserver_n[$k] = $gameserver_n_old[$i]; } $phgdir = PHGDIR; // get data of server function info_n($phgdir, $sh_srv, $game, $host, $port, $queryport) { // create server the object $phgstats_n = phgstats_n::query($game[$sh_srv]); // get the serverinfo string $server = $phgstats_n->getstream($host[$sh_srv], $port[$sh_srv], $queryport[$sh_srv]); if ($server === true) { // get the server rules $srv_rules = $phgstats_n->getrules($phgdir); $srv_rules['playerlist'] = $phgstats_n->getplayers(); // full path to the map picture $srv_rules['map'] = $phgdir . $srv_rules['map_path'] . '/' . $srv_rules['mapname'] . '.jpg'; if (!(file_exists($srv_rules['map']))) { // set default map if no picture found $srv_rules['map'] = $phgdir . $srv_rules['map_path'] . '/' . $srv_rules['map_default']; } } else { // default values if no response $msg = 'No Response'; $srv_rules['playerlist'] = ''; $srv_rules['hostname'] = $msg; $srv_rules['gamename'] = $msg . "<br>"; $srv_rules['map'] = $phgdir . 'maps/no_response.jpg'; $srv_rules['mapname'] = 'Server Offline or Mapchange'; $srv_rules['sets'] = '-'; $srv_rules['htmlinfo'] = '<tr valign="top"><td align="left">No</td><td align="left">Response</td></tr>' . "\n"; $srv_rules['htmldetail'] = '<tr valign="top"><td align="left">No</td><td align="left">Response</td></tr>' . "\n"; } // get server adress $srv_rules['adress'] = $host[$sh_srv] . ':' . $port[$sh_srv]; return $srv_rules; } // show the data of two or more server function srv_list_n ($sh_srv, $srv_rules, $use_file) { // html: map picture echo '<tr valign="top">' . "\n" . '<td class="box" align="center">' . '<img height="100" width="120" src="' . $srv_rules['map'] . '" border="0" alt="' . $srv_rules['mapname'] . '" title="' . $srv_rules['mapname'] . '"><br>' . "\n"; // html: server ip and gamename echo $srv_rules['adress'] . '<br>' . $srv_rules['hostname'] . '<br>' . $srv_rules['gamename'] . "\n"; // html: server details table echo '<table border="0" cellpadding="3" cellspacing="0">' . "\n" . $srv_rules['htmlinfo'] . "\n"; if ($srv_rules['hlsw'] !='') { echo $srv_rules['hlsw'] . $srv_rules['adress'] . $srv_rules['hlsw2'] .'' . "\n"; } if ($srv_rules['join'] !='') { echo $srv_rules['join'] . $srv_rules['adress'] . $srv_rules['join2'] .'' . "\n"; } echo '</table>' . "\n" . '<hr>'. "\n"; echo '</td></tr>' . "\n"; } echo '<center>' . "\n"; // how much server must scan $index = count($gameserver_n); while($index) { $index--; list($game[$index], $host[$index], $port[$index], $queryport[$index]) = split(':', $gameserver_n[$index]); } { $sh_srv = count($host); // html: open table to show more server echo '<table border="0" cellpadding="2" cellspacing="2" width="' . $phgtable_n . '">' . "\n"; // html: gameserver list data while ($sh_srv) { $sh_srv--; $srv_rules = info_n($phgdir, $sh_srv, $game, $host, $port, $queryport); srv_list_n($sh_srv, $srv_rules, $use_file); flush(); } // html: close table with server info echo '</table>' . "\n"; } echo '</center>'; ?>
Also Rechts die Schrift bei "Map", "Player" und "Rules" soll kleiner und weiss gemacht werden.
Edit:
Oder muss der Code in PHGStats 1.8h irgendwo anders rein?
Zuletzt modifiziert von SeToY am 18.09.2011 - 19:26:07