404.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /*
  3. error_reporting(E_ALL);
  4. ini_set('display_errors', 'On');
  5. */
  6. require_once "../core/class/blacklist.class.php";
  7. new blacklist;
  8. if(blacklist::isValidIPv4()){
  9. $text = blacklist::execute();
  10. } else {
  11. $text = "La page que vous cherchez n'existe pas.";
  12. }
  13. http_response_code(404);
  14. ?>
  15. <!DOCTYPE html>
  16. <html lang="fr">
  17. <head>
  18. <meta charset="UTF-8">
  19. <title>Page non trouvée - Erreur 404</title>
  20. <style>
  21. body {
  22. font-family: Arial, sans-serif;
  23. background-color: #f2f2f2;
  24. text-align: center;
  25. padding: 50px;
  26. }
  27. .container {
  28. background-color: #fff;
  29. padding: 40px;
  30. border-radius: 10px;
  31. display: inline-block;
  32. box-shadow: 0 0 10px rgba(0,0,0,0.1);
  33. }
  34. h1 {
  35. font-size: 48px;
  36. color: #e74c3c;
  37. }
  38. p {
  39. font-size: 18px;
  40. color: #333;
  41. }
  42. a {
  43. color: #3498db;
  44. text-decoration: none;
  45. font-weight: bold;
  46. }
  47. a:hover {
  48. text-decoration: underline;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <div class="container">
  54. <img src="img/logo.png" id="icon" alt="CSE Invent" width="300px">
  55. <h1>404</h1>
  56. <p><?= $text ?></p>
  57. </body>
  58. </html>