09-14-2010, 08:51 PM
скриптик не мой, ну думаю автор не обидется. Показывает кто онлайн и читеров если таковые есть)), после слова Hakers. Думаю админам начинающим пригодится.
PHP код:
<?php
$dbuser = "root";
$dbpass = "root";
$dbhost = "127.0.0.1";
$dbname = "au_server_gs";
$msconn = mysql_connect($dbhost, $dbuser, $dbpass);
$db = mysql_select_db($dbname, $msconn);
$q = mysql_query("SELECT name, gender, race, player_class FROM players where online=1");
if($q == FALSE){ echo "Error"; End_page(); }
echo "<table width='100%' border='3' cellpadding='0' cellspacing='0' bordercolor='#666'>";
echo "<tr align='center'>";
echo "<td><font size='2'>Ник</font></td>
<td><font size='2'>Пол</font></td>
<td><font size='2'>Расса</font></td>
<td><font size='2'>Класс</font></td> ";
echo "</tr>";
while($row = mysql_fetch_array($q))
{
echo "<tr align='center'>";
echo "<td><font size='2'>".$row["name"]."</font></td>";
echo "<td><font size='2'>".$row["gender"]."</font></td>";
echo "<td><font size='2'>".$row["race"]."</font></td>";
echo "<td><font size='2'>".$row["player_class"]."</font></td>";
echo "</tr>";
}
echo "</table>";
echo "<font color='#ff0000'>HAKERS</font>";
$q = mysql_query("SELECT
players.name,
inventory.itemUniqueId,
inventory.itemId,
item_stones.slot,
item_stones.itemId
FROM
players
Inner Join inventory ON inventory.itemOwner = players.id
Inner Join item_stones ON item_stones.itemUniqueId = inventory.itemUniqueId
WHERE
item_stones.itemId NOT LIKE '167%'
AND
item_stones.itemId NOT LIKE '168%'
ORDER BY
players.name ASC");
if($q == FALSE){ echo "Error"; End_page(); }
echo "<table width='100%' border='3' cellpadding='0' cellspacing='0' bordercolor='#666'>";
echo "<tr align='center'>";
echo "<td><font size='2'>Ник</font></td>
<td><font size='2'>itemId</font></td>
<td><font size='2'>itemUniqueId</font></td>";
echo "</tr>";
while($row = mysql_fetch_array($q))
{
echo "<tr align='center'>";
echo "<td><font size='2'>".$row["name"]."</font></td>";
echo "<td><font size='2'>".$row["itemId"]."</font></td>";
echo "<td><font size='2'>".$row["itemUniqueId"]."</font></td>";
echo "</tr>";
}
echo "</table>";
?>