Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: reikia pagalbos

Parašė BornLTU· 2012 Bir. 21 11:06:50
#4

Dbr radau theme.php faile kazka lyg ir panasaus

echo "<table align='center' cellpadding='0' cellspacing='0' class='paneles2'>\n<tr>
<td align='right' width='558'>";
echo "</td>
<td align='left' width='251'>";
echo '<table>';
if (!isset($ip))
$ip = 'Nera';
if (!isset($port))
$port = 7777;
$fp = fsockopen('udp://' . $ip, $port, $errno, $errstr);
if (!$fp)
{
echo "<tr><td>Socket Error: $errno - $errstr</td></tr>\n";
}
else
{
$packet = 'SAMP';
$packet .= chr(strtok($ip, '.'));
$packet .= chr(strtok('.'));
$packet .= chr(strtok('.'));
$packet .= chr(strtok('.'));
$packet .= chr($port & 0xFF);
$packet .= chr($port >> 8 & 0xFF);

fwrite($fp, $packet.'i');
fread($fp, 11);
$is_passworded = ord(fread($fp, 1));
$plr_count = ord(fread($fp, 2));
$max_plrs = ord(fread($fp, 2));
$strlen = ord(fread($fp, 4));
$hostname = fread($fp, $strlen);
$strlen = ord(fread($fp, 4));
$gamemode = fread($fp, $strlen);
$strlen = ord(fread($fp, 4));
$mapname = fread($fp, $strlen);
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Serverio ip:</span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Nera.</span></b></td></tr>'."\n";
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Žaidėjų:</span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">' . $plr_count . ' / ' . $max_plrs . '</span></td></tr>'."\n";
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Versija:</span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">' . $gamemode . '</span></td></tr>'."\n";
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Žemėlapis:</span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">' . $mapname . '</span></td></tr>'."\n";
if ($is_passworded)
{
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Slaptažodis: </span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Yra</span></td></tr>'."\n";
} else {
echo '<tr><td width="100"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Slaptažodis: </span></td><td width="220" align="right"><span style="font-family: Tahoma; font-size: 11px; color:#ffdfdf">Nėra</span></td></tr>'."\n";
}
fwrite($fp, $packet.'c');
fread($fp, 11);
$plr_count = ord(fread($fp, 2));
if ($plr_count > 0)
{

}
bet pakeitus ka nors is siu eiluciu uzluzta webas

Redagavo BornLTU· 2012 Bir. 21 11:06:15