reportbot


SUBMITTED BY: creepydemo

DATE: June 7, 2017, 11:52 p.m.

FORMAT: Text only

SIZE: 4.2 kB

HITS: 610

  1. <?php
  2. require_once "recaptchalib.php";
  3. require('mysql.php');
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="de">
  7. <head>
  8. <meta charset="utf-8">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  11. <meta name="description" content="">
  12. <meta name="author" content="">
  13. <title>Reportbot | sparkkz.xyz</title>
  14. <!-- jQuery -->
  15. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
  16. <!-- Bootstrap core CSS -->
  17. <link href="css/bootstrap.min.css" rel="stylesheet">
  18. <!-- Custom styles for this template -->
  19. <link href="css/narrow-jumbotron.css" rel="stylesheet">
  20. </head>
  21. <body>
  22. <div class="container">
  23. <div class="header clearfix">
  24. <nav>
  25. <ul class="nav nav-pills pull-xs-right">
  26. <li class="nav-item active">
  27. <a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
  28. </li>
  29. <li class="nav-item">
  30. <a class="nav-link" href="list.php">Reported List</a>
  31. </li>
  32. <li class="nav-item">
  33. <a class="nav-link" href="banned.php">Banned List</a>
  34. </li>
  35. </ul>
  36. </nav>
  37. </div>
  38. <center>
  39. <div class="row marketing">
  40. <?php include ("header.php");
  41. $r = mysqli_query($conn,"SELECT COUNT(*) FROM list;");
  42. $r = mysqli_fetch_array($r);
  43. echo ' <p>This site is limited by the last 2000 entrys. Current entrys: <big>'.$r[0].'</big></p>';
  44. $lastReport = mysqli_query($conn,"SELECT datum FROM `list` ORDER BY `id` DESC LIMIT 1;");
  45. $lastReport = mysqli_fetch_array($lastReport);
  46. $lastReport = $now - (date_timestamp_get(new DateTime($lastReport[0])));
  47. $lastH = (floor($lastReport / 3600));
  48. $lastM = (floor(($lastReport % 3600) / 60));
  49. $result = mysqli_query($conn,"SELECT * FROM `info`;");
  50. $row = mysqli_fetch_array($result);
  51. echo '<div class="alert alert-success"><p><strong>Ban Info:</strong><br>
  52. Last Check: <strong>'.$row['lastcheck'].'</strong> |
  53. OW Banned: <strong>'.$row['ow'].'</strong> |
  54. VAC Banned: <strong>'.$row['vac'].'</strong> |
  55. Checked Accounts: <strong>'.$row['checked'].'</strong> | Last Report: <strong>';
  56. if($lastH > 0){echo $lastH.':';if($lastM < 10){echo '0'.$lastM.' hours';}else{echo $lastM.' hours';}}else{if($lastM < 10){echo '0'.$lastM.' min';}else{echo $lastM.' min';}}
  57. echo '</strong> ago
  58. </p></div>';
  59. ?>
  60. <?php
  61. $result = mysqli_query($conn,"SELECT * FROM list ORDER BY id DESC LIMIT 2000;");
  62. echo '<table class="table tablesorter" id="list_table">
  63. <thead>
  64. <tr>
  65. <th>ID</th>
  66. <th>Date</th>
  67. <th>SteamID</th>
  68. <th>Report Log</th>
  69. </tr>
  70. </thead>';
  71. echo '<tbody>';
  72. while($row = mysqli_fetch_array($result))
  73. {
  74. echo '<tr>';
  75. echo '<td>' . $row['id'] . '</td>';
  76. echo '<td>' . $row['datum'] . '</td>';
  77. echo '<td><a href="http://steamcommunity.com/profiles/'.$row['steamid'].'" target="_blank">' . $row['steamid'] . '</a></td>';
  78. echo '<td><a href="index.php?l='.$row['steamid'].'" target="_blank">Report Log</a></td>';
  79. echo '</tr>';
  80. }
  81. echo '</tbody></table>';
  82. mysqli_close($conn);
  83. ?>
  84. </div>
  85. </center>
  86. <footer class="footer">
  87. <p>Script by &copy; Radat. @High-Minded.net 2016</p>
  88. </footer>
  89. </div> <!-- /container -->
  90. <script src="js/ie10-viewport-bug-workaround.js"></script>
  91. <script src="js/jquery-latest.js"></script>
  92. <script src="js/jquery.tablesorter.js"></script>
  93. <script>
  94. $(document).ready(function()
  95. {
  96. $("#list_table").tablesorter();
  97. }
  98. );
  99. </script>
  100. </body>
  101. </html>

comments powered by Disqus