website/public/internal/500.php

68 lines
2 KiB
PHP
Raw Normal View History

2020-12-20 01:02:00 +01:00
<?php
2021-01-02 00:49:27 +01:00
2020-12-20 01:02:00 +01:00
function getError500()
{
2021-01-02 00:49:27 +01:00
include "config.php";
if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
$trackURL = $trackURLTor;
} else {
$trackURL = $trackURLNormal;
}
2020-12-20 01:02:00 +01:00
return <<<EOF
<!DOCTYPE html>
<html lang="en">
2020-12-20 01:21:43 +01:00
<head>
<meta charset="UTF-8">
<title>500 - Internal Server error</title>
<link href="/css/error.css" rel="stylesheet">
2020-12-20 01:21:43 +01:00
</head>
<body>
<!-- Matomo Image Tracker-->
2021-01-02 00:49:27 +01:00
<img src="$trackURL" style="border:0" alt="" />
2020-12-20 01:21:43 +01:00
<!-- 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>
$&nbsp;<span class="prompt"></span>
<span class="typed-cursor"></span>
</section>
</div>
<!-- data -->
<div class="terminal-data mimik-run-output">
</div>
<script>
var data = [
2021-01-20 23:22:18 +01:00
{
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
}
2020-12-20 01:21:43 +01:00
];
2021-02-28 14:09:57 +01:00
</script>
<script src="/js/script.js"></script>
<script>
startNewTask();
</script>
2020-12-20 01:21:43 +01:00
</body>
2020-12-20 01:02:00 +01:00
</html>
EOF;
}