Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>Guard Bans</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  8. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap.css"/>
  9. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.2.2/css/responsive.bootstrap.css"/>
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  11. <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
  12. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  13. <script type="text/javascript" src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.js"></script>
  14. <script type="text/javascript" src="https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap.js"></script>
  15. <script type="text/javascript" src="https://cdn.datatables.net/responsive/2.2.2/js/dataTables.responsive.js"></script>
  16. <style>
  17. body {
  18. background-image: url("rebel.jpg");
  19. background-repeat: no-repeat;
  20. background-size: cover;
  21. color: white;
  22. }
  23.  
  24. tr:hover td {
  25. background: #000;
  26. opacity: 0.8;
  27. }
  28.  
  29. @font-face {
  30. font-family: "TF2 Build";
  31. src: url(fonts/tf2build.ttf) format("truetype");
  32. }
  33.  
  34. h2 {
  35. font-family: "TF2 Build", Verdana, Tahoma;
  36. font-size: 40px;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41.  
  42. <?php
  43. include 'functions.php';
  44. $expired = isset($_GET['expired']);
  45. $unbanned = isset($_GET['unbanned']);
  46. $active = false;
  47. if (!$expired && !$unbanned) {
  48. $active = true;
  49. }
  50. ?>
  51.  
  52. <div class="container">
  53. <h2><center>Salamon.tf Guard Bans</center></h2>
  54. <?php
  55. if ($expired) {
  56. echo "<center><b><a href='?active=true'>Active</a> | Expired | <a href='?unbanned=true'>Unbanned</a></b></center>";
  57. } else if ($unbanned) {
  58. echo "<center><b><a href='?active=true'>Active</a> | <a href='?expired=true'>Expired</a> | Unbanned</b></center>";
  59. } else {
  60. echo "<center><b>Active | <a href='?expired=true'>Expired</a> | <a href='?unbanned=true'>Unbanned</a></b></center>";
  61. }
  62. ?>
  63. <table class="table table-hover">
  64. <thead>
  65. <tr>
  66. <th>Name</th>
  67. <th>Time</th>
  68. <?php if ($active) echo "<th>Timeleft</th>"; ?>
  69. <th>Banned by</th>
  70. <th>Ban reason</th>
  71. <th>Ban date</th>
  72. <?php
  73. if ($expired) {
  74. echo "<th>Expiration date</th>";
  75. } else if ($unbanned) {
  76. echo "<th>Unbanned by</th>";
  77. echo "<th>Unban reason</th>";
  78. echo "<th>Unban date</th>";
  79. }
  80. ?>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. <?php
  85. if ($expired) {
  86. showExpiredBans();
  87. } else if ($unbanned) {
  88. showUnbannedBans();
  89. } else {
  90. showActiveBans();
  91. }
  92. ?>
  93. </tbody>
  94. </table>
  95. <script>
  96. $('table').DataTable();
  97. </script>
  98. </div>
  99. </body>
  100. <footer>
  101. <center><p><i>Made by <a href='http://steamcommunity.com/profiles/76561198096392963' target='_blank'>Sgt. Gremulock</a></i></p></center>
  102. </footer>
  103. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement