It's a better more secure (hopefully) coalfax, NOT MADE IN WORDPRESS.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

77 wiersze
2.9 KiB

  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  5. <title>Coalfax Revamped</title>
  6. <meta name="description" content="Get the Coalfax!">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <link rel="stylesheet" href="/css/main.css">
  9. <style>
  10. table, th, td {
  11. border: 1px solid black;
  12. }
  13. th, td {
  14. padding: 10px;
  15. }
  16. div.coalburner_display {
  17. white-space: normal;
  18. }
  19. </style>
  20. </head>
  21. <body style="background-color:dimgray;text-align:center">
  22. <h1>Welcome to Coalfax Revamped, The coalburner registry!</h1>
  23. <div class="coalburner_submission">
  24. <form name="submission_forum" action="submit_coalburner.php" method="POST" enctype="multipart/form-data">
  25. Coalburner Name: <input type="text" id="name" name="name" required>
  26. <br>
  27. Proofs & Sources: <input type="text" id="proofs" name="proofs" required>
  28. <br>
  29. Body: <br><textarea id="body" name="body" rows="10" cols="50" required></textarea><br>
  30. Image: <input type="file" id="images" name="images" required>
  31. <br>
  32. <br>
  33. <img id="captcha" src="/vendor/dapphp/securimage/securimage_show.php" alt="CAPTCHA Image" />
  34. <input type="text" id="captcha_code" name="captcha_code" size="10" maxlength="6" required />
  35. <a href="#"
  36. onclick="document.getElementById('captcha').src = '/vendor/dapphp/securimage/securimage_show.php?' + Math.random(); return false">[
  37. Different Image ]</a>
  38. <br>
  39. <br>
  40. <input type="submit">
  41. </form>
  42. </div>
  43. <br>
  44. <div class="coalburner_display" style="overflow-x:auto;">
  45. <table style="float:center; table-layout: auto; width: 100%">
  46. <thead>
  47. <tr>
  48. <th>Name</th>
  49. <th>Proofs</th>
  50. <th>Body</th>
  51. <th>Image(s)</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <?php
  56. require_once('connect.php');
  57. $result = $conn->prepare("SELECT * FROM coalburners ORDER BY id ASC");
  58. $result->execute();
  59. for ($i=0; $row = $result->fetch(); $i++) {
  60. ?>
  61. <tr>
  62. <td style="word-wrap: break-word"><label><?php echo $row['name']; ?></label></td>
  63. <td style="word-wrap: break-word"><label><?php echo $row['proofs']; ?></label></td>
  64. <td style="word-wrap: break-word"><label><?php echo $row['body']; ?></label></td>
  65. <td><label><img src="/images/<?php echo $row['images']; ?>" width="400" height="500"></label></td>
  66. </tr>
  67. <?php
  68. } ?>
  69. </tbody>
  70. </table>
  71. </div>
  72. </body>
  73. </html>