| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- require_once "../core/class/blacklist.class.php";
- new blacklist;
- if(blacklist::isValidIPv4()){
- $result = blacklist::execute();
- } else {
- $result = ["error" => 404, "text" => "La page que vous cherchez n'existe pas."];
- }
- http_response_code($result["error"]);
- ?>
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <meta charset="UTF-8">
- <title>CSE Invent :. Erreur <?= $result["error"] ?></title>
- <style>
- body {
- font-family: Arial, sans-serif;
- background-color: #f2f2f2;
- text-align: center;
- padding: 50px;
- }
- .container {
- background-color: #fff;
- padding: 40px;
- border-radius: 10px;
- display: inline-block;
- box-shadow: 0 0 10px rgba(0,0,0,0.1);
- }
- h1 {
- font-size: 48px;
- color: #e74c3c;
- }
- p {
- font-size: 18px;
- color: #333;
- }
- a {
- color: #3498db;
- text-decoration: none;
- font-weight: bold;
- }
- a:hover {
- text-decoration: underline;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <img src="img/logo.png" id="icon" alt="CSE Invent" width="300px">
- <h1><?= $result["error"] ?></h1>
- <p><?= $result["text"] ?></p>
- </body>
- </html>
|