admin-record.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. require_once($_SERVER['DOCUMENT_ROOT'] . "/modules/core/header.php");
  3. if(!isset($link))
  4. {
  5. $link = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_NAME);
  6. if($link === false)
  7. {
  8. die("ERROR: Could not connect.");
  9. }
  10. }
  11. ?>
  12. <router-outlet _ngcontent-tnh-c136="" class="router-outlet"></router-outlet>
  13. <app-admin-record _nghost-tnh-c146="">
  14. <div _ngcontent-tnh-c146="" class="content-header">
  15. <h3 _ngcontent-tnh-c146="">Admin Record - <?php echo $username; ?></h3>
  16. </div>
  17. <div _ngcontent-tnh-c146="" class="content">
  18. <div _ngcontent-tnh-c146="" class="section-category">
  19. <h4 _ngcontent-tnh-c146="">Bans</h4>
  20. </div>
  21. <section _ngcontent-tnh-c146="" class="nopadding transparent grid-newline cs-1">
  22. <table _ngcontent-tnh-c146="" cellspacing="0" class="spacey">
  23. <thead _ngcontent-tnh-c146="">
  24. <tr _ngcontent-tnh-c146="">
  25. <th _ngcontent-tnh-c146="">Character</th>
  26. <th _ngcontent-tnh-c146="">Administrator</th>
  27. <th _ngcontent-tnh-c146="">Reason</th>
  28. <th _ngcontent-tnh-c146="">Date</th>
  29. </tr>
  30. </thead>
  31. <tbody _ngcontent-tnh-c146="">
  32. <?php
  33. $user_check_query = "SELECT * FROM logs_ban WHERE `user_id` = '$playersqlid' ORDER BY id DESC";
  34. $res = mysqli_query($link, $user_check_query);
  35. while($result2 = mysqli_fetch_array($res, MYSQLI_ASSOC))
  36. {
  37. $Character = $result2['Character'];
  38. $BannedBy = $result2['BannedBy'];
  39. $Reason = $result2['Reason'];
  40. $Date = $result2['Date'];
  41. ?>
  42. <tr _ngcontent-tnh-c146="">
  43. <td _ngcontent-tnh-c146=""><?php echo $Character; ?></td>
  44. <td _ngcontent-tnh-c146=""><?php echo $BannedBy; ?></td>
  45. <td _ngcontent-tnh-c146=""><?php echo $Reason; ?> </td>
  46. <td _ngcontent-tnh-c146=""><?php echo $Date; ?></td>
  47. </tr>
  48. <?php
  49. }
  50. mysqli_free_result($res);
  51. ?>
  52. <!---->
  53. </tbody>
  54. </table>
  55. </section>
  56. <!---->
  57. <div _ngcontent-tnh-c146="" class="section-category">
  58. <h4 _ngcontent-tnh-c146="">Admin Jails</h4>
  59. </div>
  60. <section _ngcontent-tnh-c146="" class="nopadding transparent grid-newline cs-1">
  61. <table _ngcontent-tnh-c146="" cellspacing="0" class="spacey">
  62. <thead _ngcontent-tnh-c146="">
  63. <tr _ngcontent-tnh-c146="">
  64. <th _ngcontent-tnh-c146="">Character</th>
  65. <th _ngcontent-tnh-c146="">Administrator</th>
  66. <th _ngcontent-tnh-c146="">Reason</th>
  67. <th _ngcontent-tnh-c146="">Duration (min)</th>
  68. <th _ngcontent-tnh-c146="">Date</th>
  69. </tr>
  70. </thead>
  71. <tbody _ngcontent-tnh-c146="">
  72. <?php
  73. $user_check_query = "SELECT * FROM logs_jail WHERE `user_id` = '$playersqlid' ORDER BY id DESC";
  74. $res = mysqli_query($link, $user_check_query);
  75. while($result2 = mysqli_fetch_array($res, MYSQLI_ASSOC))
  76. {
  77. $Character = $result2['Character'];
  78. $JailedBy = $result2['JailedBy'];
  79. $Minutes = $result2['Minutes'];
  80. $Reason = $result2['Reason'];
  81. $Date = $result2['Date'];
  82. ?>
  83. <tr _ngcontent-tnh-c146="">
  84. <td _ngcontent-tnh-c146=""><?php echo $Character; ?></td>
  85. <td _ngcontent-tnh-c146=""><?php echo $JailedBy; ?></td>
  86. <td _ngcontent-tnh-c146=""><?php echo $Reason; ?> </td>
  87. <td _ngcontent-tnh-c146=""><?php echo $Minutes; ?></td>
  88. <td _ngcontent-tnh-c146=""><?php echo $Date; ?></td>
  89. </tr>
  90. <?php
  91. }
  92. mysqli_free_result($res);
  93. ?>
  94. <!---->
  95. </tbody>
  96. </table>
  97. </section>
  98. <!---->
  99. <div _ngcontent-tnh-c146="" class="section-category">
  100. <h4 _ngcontent-tnh-c146="">Kicks</h4>
  101. </div>
  102. <section _ngcontent-tnh-c146="" class="nopadding transparent grid-newline cs-1">
  103. <table _ngcontent-tnh-c146="" cellspacing="0" class="spacey">
  104. <thead _ngcontent-tnh-c146="">
  105. <tr _ngcontent-tnh-c146="">
  106. <th _ngcontent-tnh-c146="">Character</th>
  107. <th _ngcontent-tnh-c146="">Administrator</th>
  108. <th _ngcontent-tnh-c146="">Reason</th>
  109. <th _ngcontent-tnh-c146="">Date</th>
  110. </tr>
  111. </thead>
  112. <tbody _ngcontent-tnh-c146="">
  113. <?php
  114. $user_check_query = "SELECT * FROM logs_kick WHERE `user_id` = '$playersqlid' ORDER BY id DESC";
  115. $res = mysqli_query($link, $user_check_query);
  116. while($result2 = mysqli_fetch_array($res, MYSQLI_ASSOC))
  117. {
  118. $Character = $result2['Character'];
  119. $KickedBy = $result2['KickedBy'];
  120. $Reason = $result2['Reason'];
  121. $Date = $result2['Date'];
  122. ?>
  123. <tr _ngcontent-tnh-c146="">
  124. <td _ngcontent-tnh-c146=""><?php echo $Character; ?></td>
  125. <td _ngcontent-tnh-c146=""><?php echo $KickedBy; ?></td>
  126. <td _ngcontent-tnh-c146=""><?php echo $Reason; ?> </td>
  127. <td _ngcontent-tnh-c146=""><?php echo $Date; ?></td>
  128. </tr>
  129. <?php
  130. }
  131. mysqli_free_result($res);
  132. ?>
  133. <!---->
  134. </tbody>
  135. </table>
  136. </section>
  137. <!---->
  138. </div>
  139. </app-admin-record>
  140. <!---->
  141. <?php if(isset($link)) { mysqli_close($link); } ?>