Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "applications/panel/sources/SampQueryAPI.php";
- $query = new SampQueryAPI("80.72.47.182", "3644");
- $aInformation = $query->getInfo();
- $aServerRules = $query->getRules();
- $aPlayers = $query->getDetailedPlayers();
- $playernickk = htmlentities($sValue['nickname']);
- $playernick = $_GET['player_name'];
- echo "<div class=\"ipsfocusBox\">";
- echo "<h2 class=\"ipsType_sectionTitle ipsType_reset ipsType_blendLinks cForumTitle\">Lista serwerów</h2>";
- echo "<div class=\"ipsfocusBackground\">";
- echo "<table class=\"ipsTable ipsTable_responsive ipsTable_zebra ipsBox\">";
- echo "<thead><tr>";
- echo "<th style=\"text-align: center;\">Gra</th>";
- echo "<th style=\"text-align: center;\">Nazwa</th>";
- echo "<th style=\"text-align: center;\">Adres</th>";
- echo "<th style=\"text-align: center;\">Gracze</th>";
- echo "<th style=\"text-align: center;\">Menu</th>";
- echo "</tr></thead>";
- echo "<tbody><tr>";
- echo "<td style=\"text-align: center;\"><img src=\"http://i.imgur.com/Jlcx90r.png\" style=\"border-radius: 4px;\"></td>";
- echo "<td style=\"text-align: center;\">".htmlentities($aInformation["hostname"])."</td>";
- echo "<td style=\"text-align: center;\">Już Niedługo!</td>";
- echo "<td style=\"text-align: center;\"><a href=\"#elTabelaSamp_menu\" id=\"elTabelaSamp\" data-ipsMenu> ".$aInformation["players"]." / ".$aInformation["maxplayers"]." <i class=\"fa fa-caret-down\"></i></a>";
- echo "<ul id=\"elTabelaSamp_menu\" class=\"ipsMenu ipsHide\">";
- echo "<li class=\"ipsMenu_title\">Lista Graczy Online</li>";
- if($query->isOnline())
- {
- if(!is_array($aPlayers) || count($aPlayers) == 0)
- {
- echo "<li class=\"ipsMenu_item\" data-ipsMenuValue=\"itemID\"><a>Brak graczy na serwerze! :(</a></li>";
- }
- else
- {
- foreach($aPlayers as $sValue)
- {
- echo "<li class=\"ipsMenu_item\" data-ipsMenuValue=\"itemID\"><a href=\"#\" data-ipsDialog data-ipsDialog-url=\"applications/panel/sources/statygraczapopup.php?player_name=$playernick\">$playernickk</a></li>";
- }
- }
- }
- else
- {
- echo "<li class=\"ipsMenu_item\" data-ipsMenuValue=\'itemID\'><a href=\'#\'>Brak graczy na serwerze! :(</a></li>";
- }
- echo "</ul>";
- echo "</td>";
- echo "<td style=\"text-align: center;\">";
- echo "<a href=\"http://files.sa-mp.com/sa-mp-0.3.7-install.exe\" data-ipsdialog-title=\"Pobierz demo\" class=\"ipsButton ipsButton_primary ipsButton_verySmall\"><i class=\"fa fa-download\"></i> SAMP 0.3.7</a> ";
- echo "<a href=\"samp://ip\" data-ipsdialog-title=\"Połącz z serwerem\" class=\"ipsButton ipsButton_primary ipsButton_verySmall\"><i class=\"fa fa-play-circle-o\"></i> Połącz</a>";
- echo "</td>";
- echo "</tr></tbody>";
- echo "</table></div></div>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement