Advertisement
Guest User

Ban

a guest
Nov 16th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <?php
  2. $dbhost = 'db.mysql-01.gsp-europe.net';
  3. $dbuser = 'sql_3984';
  4. $dbpass = '******';
  5. $dbname = 'sql_3984';
  6. $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
  7. $conn->set_charset("utf8");
  8.  
  9. php?>
  10. <style>
  11. .col-lg-12 {
  12. position:relative;
  13. min-height:1px;
  14. padding-left:15px;
  15. padding-right:15px
  16. }
  17. .row {
  18. margin-left:-15px;
  19. margin-right:-15px
  20. }
  21. .table {
  22. width:100%;
  23. max-width:100%;
  24. margin-bottom:21px
  25. }
  26. </style>
  27. <div class="row">
  28. <div class="col-lg-12">
  29. <center><table class="table">
  30. <head>
  31. <tr>
  32. <th>
  33. <center>Jmeno Hraci</center>
  34. </th>
  35. <th>
  36. <center>Admin ktery udelil Ban</center>
  37. </th>
  38. <th>
  39. <center>Duvod</center>
  40. </th>
  41. <th>
  42. <center>Čas zabanovani</center>
  43. </th>
  44. <th>
  45. <center>Doba Trvani Banu</center>
  46. </th>
  47. </tr>
  48. </head>
  49. <tbody>
  50. <?php
  51. while ($row = $retval->fetch_assoc()) {
  52. $row['banner'] == null;
  53. $row['banner'] = 'IP+ System';
  54. }
  55. $timeEpoch = $row['time'];
  56. $timeConvert = $timeEpoch / 1000;
  57. $timeResult = date('F j, Y, g:i a', $timeConvert);
  58. $expiresEpoch = $row['expires'];
  59. $expiresConvert = $expiresEpoch / 1000;
  60. $expiresResult = date('F j, Y, g:i a', $expiresConvert);
  61. ?>
  62. <tr>
  63. <td><?php echo "<img src='https://mcapi.ca/avatar/2d/" . $row['name'] . "/25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['name'];?></td>
  64. <td><?php echo "<img src='https://mcapi.ca/avatar/2d/" . $row['banner'] . "/25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;' />" . $row['banner'];?></td>
  65. <td style="width: 30%;"><?php echo $row['reason'];?></td>
  66. <td><?php echo $timeResult;?></td>
  67. <td><?php if($row['expires'] == 0) {
  68. echo 'Infinity';
  69. } else {
  70. echo $expiresResult; }?></td>
  71. </tr>
  72. </tbody>
  73. </table></center>
  74. </div>
  75. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement