Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.71 KB | None | 0 0
  1. <?php
  2. $_SERVER['ipdomeny']='https://api.mcsrvstat.us/2/mc.hypixel.net';
  3.  
  4. $_SERVER['OFIRMIE']='<p>zSpookyPL</p>
  5. <p>NIP: {NIP}</p>
  6. <p>REGON: {REGON}</p>
  7. <p>Email: <a href="mailto:kontakt@overgames.pl">kontakt@overgames.pl</a>
  8. <p>Firma jak i serwer nie są w żaden sposób powiązane z Mojang, AB.</p>';
  9. $_SERVER['SKLEP']='<p>Doładowując skarbonkę wspomagasz serwer i jednocześnie możesz odblokować niesamowite rangi i gadżety!</p><p>
  10. <a href="https://overgames.pl/sklep" class="btn btn-outline-light">
  11. <i class="fa fa-piggy-bank"></i> Doładuj skarbonkę
  12. </a>
  13. </p>';
  14. $status = json_decode(file_get_contents($_SERVER['ipdomeny']));
  15. ?>
  16. <!DOCTYPE html>
  17. <html lang="pl">
  18. <head>
  19. <meta charset="utf-8">
  20. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  21.  
  22. <title>OverGames.pl - Najlepsze minigry w Polsce</title>
  23.  
  24. <link rel="shortcut icon" type="image/png" href="/../_img/favikonka.png"/>
  25. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
  26. <script src="https://wchat.freshchat.com/js/widget.js"></script>
  27. <link rel="stylesheet" href="/../_css/style.css">
  28. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
  29. <style type="text/css" id="slider-css"></style>
  30. </head>
  31. <body>
  32. <script>
  33. window.fcWidget.init({
  34. token: "a9c93634-5341-424c-9d7c-1e7713448c2d",
  35. host: "https://wchat.freshchat.com"
  36. });
  37. </script>
  38. <header>
  39. <nav class="navbar fixed-top navbar-expand-lg navbar-dark menu">
  40. <div class="container">
  41.  
  42. <a class="navbar-brand" href="https://overgames.pl">
  43. <img alt="logo" src="/../_img/favicon.png" width="64" height="64">
  44. </a>
  45. <a class="navbar-brand-text" href="#">
  46. OVERGAMES
  47. </a>
  48.  
  49. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  50. <span class="navbar-toggler-icon icon" style="color: white;"></span>
  51. </button>
  52.  
  53. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  54. <ul class="navbar-nav ml-auto">
  55. <li class="nav-item" id="home">
  56. <a class="nav-link" href="https://overgames.pl/"><i class="fas fa-home icon"></i> Główna</a>
  57. </li>
  58. <li class="nav-item" id="forum">
  59. <a class="nav-link" href="https://overgames.pl/forum/"><i class="far fa-comments icon"></i> Forum</a>
  60. </li>
  61. <li class="nav-item" id="shop">
  62. <a class="nav-link" href="https://overgames.pl/mcpremium/"><i class="fas fa-shopping-cart icon"></i> MC PREMIUM</a>
  63. </li>
  64. <li class="nav-item" id="shop">
  65. <a class="nav-link" href="https://overgames.pl/sklep/"><i class="fas fa-shopping-cart icon"></i> Sklep</a>
  66. </li>
  67. <li class="nav-item" id="rankpage">
  68. <a class="nav-link" href="https://overgames.pl/rankpage/"><i class="fas fa-trophy icon"></i> Statystyki</a>
  69. </li>
  70. <li class="nav-item" id="rules">
  71. <a class="nav-link" href="https://overgames.pl/regulamin/"><i class="fas fa-book icon"></i> Regulamin</a>
  72. </li>
  73. <li class="nav-item" id="support">
  74. <a class="nav-link" href="https://overgames.pl/support/"><i class="fas fa-life-ring icon"></i> Pomoc</a>
  75. </li>
  76. </ul>
  77. </div>
  78. </div>
  79. </nav>
  80. <div class="top-panel">
  81. <div class="container">
  82. <div class="row">
  83. <div class="col-md-6 top-players">
  84. <div class="top-tile">
  85. <h5>OverGames NETWORK <span class="badge badge-warning"><?php $online = "OFFLINE"; if($status->online) $online ="ONLINE"; echo $online; ?></span></h5>
  86. </div>
  87. <div class="top-players-text"><span class="players-text-color"><?php echo $status->players->online; ?> </span> <?php $procent = 0; $online = $status->players->online; $max = $status->players->max; if($max == 0){ $procent = 0;}else{$procent = $online*100/$max;}
  88.  
  89. if($procent <= 10){
  90. echo '<span class="players-text-color">• • </span> <span color=#FF0000>• • • • • • • • • • • • • • • • • • </span>';
  91. }else if($procent <= 20){
  92. echo '<span class="players-text-color">• • • • </span> <span color=#FF0000>• • • • • • • • • • • • • • • • </span>';
  93. }else if($procent <= 30){
  94. echo '<span class="players-text-color">• • • • • • </span> <span color=#FF0000>• • • • • • • • • • • • • • </span>';
  95. }else if($procent <= 40){
  96. echo '<span class="players-text-color">• • • • • • • • </span> <span color=#FF0000>• • • • • • • • • • • • </span>';
  97. }else if($procent <= 50){
  98. echo '<span class="players-text-color">• • • • • • • • • • </span> <span color=#FF0000>• • • • • • • • • • </span>';
  99. }else if($procent <= 60){
  100. echo '<span class="players-text-color">• • • • • • • • • • • • </span> <span color=#FF0000>• • • • • • • • </span>';
  101. }else if($procent <= 70){
  102. echo '<span class="players-text-color">• • • • • • • • • • • • • • </span> <span color=#FF0000>• • • • • • </span>';
  103. }else if($procent <= 80){
  104. echo '<span class="players-text-color">• • • • • • • • • • • • • • • • </span> <span color=#FF0000>• • • • </span>';
  105. }else if($procent <= 90){
  106. echo '<span class="players-text-color">• • • • • • • • • • • • • • • • • • </span> <span color=#FF0000>• • </span>';
  107. }else if($procent <= 100){
  108. echo '<span class="players-text-color">• • • • • • • • • • • • • • • • • • • • </span>';
  109. }
  110. ?><span class="players-text-color"><?php echo $status->players->max; ?></span></div>
  111. <div class="top-players-progress">
  112. <div class="progress">
  113. <div class="progress-bar" style="width: <?php $online = $status->players->online; $max = $status->players->max; if($max == 0){ echo 0;}else{echo $online*100/$max;} ?>%;" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
  114. </div>
  115. </div>
  116. <div class="top-players-info">
  117. <p>Aktualnie na naszym serwerze gra <span class="panel-count"><?php echo $status->players->online; ?></span> graczy</p>
  118. <p>Dołącz do nich! <a href="#">Jak zagrać?</a></p>
  119. </div>
  120.  
  121. </div>
  122. <div class="col-md-6">
  123. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  124. <!-- Banner -->
  125. <ins class="adsbygoogle"
  126. style="display:inline-block;width:468px;height:60px"
  127. data-ad-client="ca-pub-6236090985160149"
  128. data-ad-slot="6220957523"></ins>
  129. <script>
  130. (adsbygoogle = window.adsbygoogle || []).push({});
  131. </script>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </header>
  138.  
  139. <main>
  140.  
  141.  
  142. <div class="forum-panel">
  143. <div class="container">
  144. <h5 class="desktop">Forum jest w trakcie budowy. <a href="https://overgames.pl/" class="forum-link">Powrót</a></h5>
  145. <h5 class="phone">Forum jest w trakcie budowy<h5><a href="https://overgames.pl/" class="btn btn-info phone">Powrót</a>
  146. </div>
  147. </div>
  148.  
  149. </main>
  150.  
  151. <footer>
  152. <div class="container">
  153. <div class="row">
  154. <div class="col-md-3 desktop">
  155. <h6 class="light-title">
  156. <i class="fas fa-user-secret"></i>
  157. O firmie
  158. </h6>
  159. <hr>
  160. <?php echo $niek ?>
  161. </div>
  162. <div class="col-md-3 desktop">
  163. <h6 class="light-title">
  164. <i class="fas fa-link"></i>
  165. Linki
  166. </h6>
  167. <hr>
  168. <p><a href="https://overgames.pl/">Strona głowna</a></p>
  169. <p><a href="https://overgames.pl/forum/">Forum</a></p>
  170. <p><a href="https://overgames.pl/regulamin/">Regulamin</a></p>
  171. <p><a href="https://overgames.pl/support/">Pomoc</a></p>
  172. </div>
  173. <div class="col-md-3 clearfix desktop">
  174. <h6 class="light-title">
  175. <i class="fas fa-users"></i> Społeczność
  176. </h6>
  177. <hr>
  178. Śledz nas w mediach społecznościowych, aby zawsze być na bieżąco.
  179. <hr>
  180. <a href="https://www.facebook.com/OverGamesPL/" target="_blank" class="social-link">
  181. <div class="social-media fanpage light-title" >
  182. <i class="fab fa-facebook-f"></i>
  183. </div>
  184. </a>
  185. <div class="social-media youtube light-title" data-toggle="modal" data-target="#youtubeModal">
  186. <i class="fab fa-youtube"></i>
  187. </div>
  188. <a href="https://discord.gg/zASDc2y">
  189. <div class="social-media discord-social light-title">
  190. <i class="fab fa-discord"></i>
  191. </div>
  192. </a>
  193. <a href="ts3server://over-ts.pl?port=9987"">
  194. <div class="social-media fanpage light-title">
  195. <i class="fab fa-teamspeak"></i>
  196. </div>
  197. </a>
  198. </div>
  199. <div class="col-md-3 shop">
  200. <h6 class="light-title">
  201. <i class="fas fa-shopping-cart"></i>
  202. Sklep
  203. </h6>
  204. <hr>
  205. <?php echo $_SERVER['SKLEP'] ?>
  206. </div>
  207. </div>
  208. </div>
  209. <div class="copy">
  210. <div class="container">
  211. <p>&copy; OverGames.pl | Wszelkie prawa zastrzeżone</p>
  212. <p>Projekt i wykonanie: <a href="https://zspookypl.pl">zSpookyPL</a></p>
  213. </div>
  214. </div>
  215. </footer>
  216.  
  217.  
  218. <div class="modal fade dark" id="youtubeModal" tabindex="-1" role="dialog" aria-labelledby="youtubeModalTitle" aria-hidden="true">
  219. <div class="modal-dialog modal-dialog-centered" role="document">
  220. <div class="modal-content">
  221. <br>
  222. <div class="row" style="text-align: center;">
  223. <div class="col-md-4"><img src="/../_img/favicon.png" height="64"></div>
  224. <div class="col-md-4"><a href="https://www.youtube.com/channel/UCcbXJzELv6SO4onYH0hBOlw"><img src="https://cravatar.eu/helmavatar/OverGamesPL/64" alt="Avatar"></a></div>
  225. <div class="col-md-4"><a href="https://youtube.com/zSpookyPL"><img src="https://cravatar.eu/helmavatar/zSpookyPL/64" alt="Avatar"></a></div>
  226. </div>
  227. <br>
  228. </div>
  229. </div>
  230. </div>
  231.  
  232. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  233. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  234. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  235. <script src="/../_js/staff.js"></script>
  236. <script>
  237. $(document).ready(function(){
  238. $('[data-toggle="tooltip"]').tooltip();
  239. });
  240. </script>
  241. <script>
  242. var element = document.getElementById("forum");
  243. element.classList.add("active");
  244. </script>
  245. </body>
  246. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement