|
@@ -2,8 +2,7 @@
|
|
|
require_once "../core/class/blacklist.class.php";
|
|
require_once "../core/class/blacklist.class.php";
|
|
|
new blacklist;
|
|
new blacklist;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-if(!blacklist::isValidIPv4()){
|
|
|
|
|
|
|
+if(blacklist::isValidIPv4()){
|
|
|
$result = blacklist::execute();
|
|
$result = blacklist::execute();
|
|
|
} else {
|
|
} else {
|
|
|
$result = ["error" => 404, "text" => "La page que vous cherchez n'existe pas."];
|
|
$result = ["error" => 404, "text" => "La page que vous cherchez n'existe pas."];
|
|
@@ -55,4 +54,4 @@ http_response_code($result["error"]);
|
|
|
<h1><?= $result["error"] ?></h1>
|
|
<h1><?= $result["error"] ?></h1>
|
|
|
<p><?= $result["text"] ?></p>
|
|
<p><?= $result["text"] ?></p>
|
|
|
</body>
|
|
</body>
|
|
|
-</html>
|
|
|
|
|
|
|
+</html>
|