Witam mam taki kod:
<?php
$game = $_GET['game'];
$ip = $_GET['ip'];
$port = $_GET['port'];
if(($game == '') or ($numer == '')){
$query = "SELECT * FROM `serwery` WHERE `ip`='$ip' AND `port`='$port'";
'serveronline' => '<b style="color: orange">Online</b>.',
'serveroffline' => '<b style="color: darkblue;">Offline</b>.',
);
$timeout = 1;
'check' => true,
'ip' => $ip,
'port' => $port,
);
$output = "";
if ($server['check']) {
if ($fp = @fsockopen($server['ip'], $server['port'], $errno, $errstr, $timeout)) { $serveronline = true;
$output .= "<p>\n";
$output .= " ".$language['serveronline']."\n";
$output .= "</p>\n";
} else {
$serveronline = false;
$output .= "<p>\n";
$output .= " ".$language['serveroffline']."\n";
$output .= "</p>\n";
}
}
switch($wynik['kategoria']){
case("avp2"):( $kategoria2 = 'Alien vs. Predator 2'; ) break;
case("bf2"):( $kategoria2 = 'Battlefield 2'; ) break;
case("bf2142"):( $kategoria2 = 'Battlefield 2142'; ) break;
case("bnc"):( $kategoria2 = 'BNC'; ) break;
case("cod"):( $kategoria2 = 'Call of Duty'; ) break;
case("cod2"):( $kategoria2 = 'Call of Duty 2'; ) break;
case("cod4"):( $kategoria2 = 'Call of Duty 4'; ) break;
case("coduo"):( $kategoria2 = 'Call of Duty: United Offensive'; ) break;
case("cscz"):( $kategoria2 = 'Counter Strike: Condition Zero'; ) break;
case("cs16"):( $kategoria2 = 'Counter-Strike 1.6'; ) break;
case("css"):( $kategoria2 = 'Counter-Strike: Source'; ) break;
case("dods"):( $kategoria2 = 'Day of Defeat: Source'; ) break;
case("dmc"):( $kategoria2 = 'DeathMatch Classic'; ) break;
case("dev"):( $kategoria2 = 'Devastation'; ) break;
case("et"):( $kategoria2 = 'Enemy Territory'; ) break;
case("etqw"):( $kategoria2 = 'ET: Quake Wars'; ) break;
case("fear"):( $kategoria2 = 'F.E.A.R.'; ) break;
case("hl2"):( $kategoria2 = 'Half-Life 2'; ) break;
case("ja"):( $kategoria2 = 'Jedi Academy'; ) break;
case("jk2"):( $kategoria2 = 'Jedi Knight 2'; ) break;
case("mohaa"):( $kategoria2 = 'Medal of Honor : Allied Assault'; ) break;
case("mohs"):( $kategoria2 = 'Medal of Honor: Spearhead'; ) break;
case("prey"):( $kategoria2 = 'Prey'; ) break;
case("qu"):( $kategoria2 = 'Quake'; ) break;
case("qu2"):( $kategoria2 = 'Quake 2'; ) break;
case("qu3"):( $kategoria2 = 'Quake 3 Arena'; ) break;
case("qu4"):( $kategoria2 = 'Quake 4'; ) break;
case("ro"):( $kategoria2 = 'Red Orchestra'; ) break;
case("ship"):( $kategoria2 = 'Ship'; ) break;
case("soldat"):( $kategoria2 = 'Soldat'; ) break;
case("sof2"):( $kategoria2 = 'Soldier of Fortune 2'; ) break;
case("toaot"):( $kategoria2 = 'Tactical Ops: Assault on Terror'; ) break;
case("tf2"):( $kategoria2 = 'Team Fortress 2'; ) break;
case("tfc"):( $kategoria2 = 'Team Fortress Classic'; ) break;
case("teamspeak"):( $kategoria2 = 'Team Speak 2'; ) break;
case("trem"):( $kategoria2 = 'Tremulous'; ) break;
case("ut"):( $kategoria2 = 'Unreal Tournament'; ) break;
case("ut2003"):( $kategoria2 = 'Unreal Tournament 2003'; ) break;
case("ut2004"):( $kategoria2 = 'Unreal Tournament 2004'; ) break;
case("ut3"):( $kategoria2 = 'Unreal Tournament 3'; ) break;
case("urbant"):( $kategoria2 = 'Urban Terror'; ) break;
case("warsow"):( $kategoria2 = 'Warsow'; ) break;
default:( $kategoria2 = 'Brak!!!'; ) break;
}
echo'<table style="text-align: left; width: 390px; height: 172px;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Nazwa:</big></td>
<td style="width: 661px; font-weight: bold;">'.$wynik[nazwa].'</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Sloty:</big></td>
<td style="width: 661px; font-weight: bold;">'.$wynik[sloty].'</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Hasło:</big></td>
<td style="width: 661px; font-weight: bold;">'.$wynik[haslo].'</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Kategoria:</big></td>
<td style="width: 661px; font-weight: bold;">'.echo $kategoria2.'</td> </tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>IP:PORT</big></td>
<td style="width: 661px; font-weight: bold;">'.$wynik[ip].':'.$wynik[port].'</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Dodano:</big></td>
<td style="width: 661px; font-weight: bold;">'.$wynik[dnia].'</td>
</tr>
<tr>
<td style="font-weight: bold; text-align: right; width: 100px;"><big>Status:</big></td>
<td style="width: 661px; font-weight: bold;">'.$output.'</td>
</tr>
</tbody>
</table>';
}else{echo'Brak dostępu!<br>';} ?>
gdy go włacze wyskakuje mi
Kod
Parse error: syntax error, unexpected ';' in /home/feedback/public_html/page/serwery.php on line 41
Lnia 41:
<?php
39: $output .= "</p>\n";
40: }
41: }
42: switch($wynik['kategoria']){
43: case("avp2"):( $kategoria2 = 'Alien vs. Predator 2'; ) break;
?>
O co chodzi??
prosze o szybka odp spieszy mi sie!