Advertisement
Guest User

Untitled

a guest
Feb 1st, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. require "applications/panel/sources/SampQueryAPI.php";
  2. $query = new SampQueryAPI("80.72.47.182", "3644");
  3. $aInformation = $query->getInfo();
  4. $aServerRules = $query->getRules();
  5. $aPlayers = $query->getDetailedPlayers();
  6. $playernickk = htmlentities($sValue['nickname']);
  7. $playernick = $_GET['player_name'];
  8. echo "<div class=\"ipsfocusBox\">";
  9. echo "<h2 class=\"ipsType_sectionTitle ipsType_reset ipsType_blendLinks cForumTitle\">Lista serwerów</h2>";
  10. echo "<div class=\"ipsfocusBackground\">";
  11. echo "<table class=\"ipsTable ipsTable_responsive ipsTable_zebra ipsBox\">";
  12. echo "<thead><tr>";
  13. echo "<th style=\"text-align: center;\">Gra</th>";
  14. echo "<th style=\"text-align: center;\">Nazwa</th>";
  15. echo "<th style=\"text-align: center;\">Adres</th>";
  16. echo "<th style=\"text-align: center;\">Gracze</th>";
  17. echo "<th style=\"text-align: center;\">Menu</th>";
  18. echo "</tr></thead>";
  19. echo "<tbody><tr>";
  20. echo "<td style=\"text-align: center;\"><img src=\"http://i.imgur.com/Jlcx90r.png\" style=\"border-radius: 4px;\"></td>";
  21. echo "<td style=\"text-align: center;\">".htmlentities($aInformation["hostname"])."</td>";
  22. echo "<td style=\"text-align: center;\">Już Niedługo!</td>";
  23. 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>";
  24. echo "<ul id=\"elTabelaSamp_menu\" class=\"ipsMenu ipsHide\">";
  25. echo "<li class=\"ipsMenu_title\">Lista Graczy Online</li>";
  26.  
  27. if($query->isOnline())
  28. {
  29. if(!is_array($aPlayers) || count($aPlayers) == 0)
  30. {
  31. echo "<li class=\"ipsMenu_item\" data-ipsMenuValue=\"itemID\"><a>Brak graczy na serwerze! :(</a></li>";
  32. }
  33. else
  34. {
  35. foreach($aPlayers as $sValue)
  36. {
  37. 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>";
  38. }
  39. }
  40. }
  41. else
  42. {
  43. echo "<li class=\"ipsMenu_item\" data-ipsMenuValue=\'itemID\'><a href=\'#\'>Brak graczy na serwerze! :(</a></li>";
  44. }
  45. echo "</ul>";
  46. echo "</td>";
  47. echo "<td style=\"text-align: center;\">";
  48. 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> ";
  49. 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>";
  50. echo "</td>";
  51. echo "</tr></tbody>";
  52. echo "</table></div></div>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement