From 85deb0cbc0ab2e42e610256ca6dea3cdcf559ac0 Mon Sep 17 00:00:00 2001 From: Jonas Leder <git@jonasled.de> Date: Tue, 13 Apr 2021 10:47:34 +0200 Subject: [PATCH] remove old error 500 page --- public/API/lib/mysql.php | 2 -- public/internal/500.php | 65 ---------------------------------------- 2 files changed, 67 deletions(-) delete mode 100644 public/internal/500.php diff --git a/public/API/lib/mysql.php b/public/API/lib/mysql.php index 7c09f2e..ada2143 100644 --- a/public/API/lib/mysql.php +++ b/public/API/lib/mysql.php @@ -3,8 +3,6 @@ $conn = new mysqli($mysqlServer, $mysqlUser, $mysqlPassword, $mysqlDatabase); // Check connection if ($conn->connect_error) { - include "500.php"; header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500); - die(getError500()); } diff --git a/public/internal/500.php b/public/internal/500.php deleted file mode 100644 index e4c60f7..0000000 --- a/public/internal/500.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php - -function getError500() -{ - include "config.php"; - - if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) { - $trackURL = $trackURLTor; - } else { - $trackURL = $trackURLNormal; - } - - return <<<EOF - <!DOCTYPE html> - <html lang="en"> - <head> - <meta charset="UTF-8"> - <title>500 - Internal Server error</title> - <link href="/css/error.css" rel="stylesheet"> - </head> - <body> - <!-- Matomo Image Tracker--> - <img src="$trackURL" style="border:0" alt="" /> - <!-- End Matomo --> - <div id="particles-js"></div> - <div class="terminal-window"> - <header> - <div class="button green"></div> - <div class="button yellow"></div> - <div class="button red"></div> - </header> - <section class="terminal"> - <div class="history"></div> - $ <span class="prompt"></span> - <span class="typed-cursor"></span> - </section> - </div> - <!-- data --> - <div class="terminal-data mimik-run-output"> - </div> - <script> - var data = [ - { - strings: "openFiles", - output: 'Accessing files...', - postDelay: 1000 - }, - { - strings: "getFile \"" + window.location.pathname + "\"", - output: '500 Internal Server error, it looks like our server has a problem.', - postDelay: 1000 - }, - { - strings: "getErrorMessage", - output: "These are not the error codes you're looking for. Please either report this error to an administrator or return back and forget you were here...", - postDelay: 2000 - } - - ]; - </script> - <script src="/js/script.js"></script> - </body> - </html> -EOF; -} \ No newline at end of file -- GitLab