aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/error/index.php
diff options
context:
space:
mode:
authorGitea <gitea@fake.local>2021-11-10 17:53:50 +0100
committerGitea <gitea@fake.local>2021-11-10 17:53:50 +0100
commit8fabf77b2a7720a357c63817c07035a9908818a0 (patch)
treed689fcac1403e2473010fe80bc337599a78c21a4 /Neutron-trunk/cms-special/error/index.php
parent7b4af63a90a726b98a59b83e53f040a7a566a11d (diff)
downloadelectrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.gz
electrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.bz2
electrode-8fabf77b2a7720a357c63817c07035a9908818a0.zip
Update
Diffstat (limited to 'Neutron-trunk/cms-special/error/index.php')
-rw-r--r--Neutron-trunk/cms-special/error/index.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/Neutron-trunk/cms-special/error/index.php b/Neutron-trunk/cms-special/error/index.php
deleted file mode 100644
index 3983bc7..0000000
--- a/Neutron-trunk/cms-special/error/index.php
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php require_once "../../resources/private/relative.php"; getRelativeDetails("cms-special"); ?>
-<?php ob_start();echo("<!--\n\n" . str_replace('%year%', date('Y'), file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/resources/private/license")) . "\n\n-->") ?>
-<?php
-
-function rlgps() {}
-
-if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent")) {
- $ready = true;
-} else {
- $ready = false;
- header("Location: /cms-special/setup");
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit();
-}
-
-if ($ready) {
- require_once $_SERVER['DOCUMENT_ROOT'] . "/lang/processor.php";
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log")) {
- if (isset($_GET['id'])) {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log") . date("d/m/Y H:i:s") . " - INTERFACE/HTTP-ERROR - " . $_GET['id'] . "\n\n");
- } else {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log") . date("d/m/Y H:i:s") . " - INTERFACE/HTTP-ERROR - Unknown \n\n");
- }
- } else {
- if (isset($_GET['id'])) {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log", date("d/m/Y H:i:s") . " - INTERFACE/HTTP-ERROR - " . $_GET['id'] . "\n\n");
- } else {
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/system.log", date("d/m/Y H:i:s") . " - INTERFACE/HTTP-ERROR - Unknown \n\n");
- }
- }
-}
-
-?>
-
-<!DOCTYPE html>
-<html lang="fr">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="/resources/css/error.css">
- <link rel="stylesheet" href="/resources/css/fonts-import.css">
- <link rel="stylesheet" href="/resources/css/ui.css">
- <title><?php
-
- if ($ready) {
- echo(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename"));
- } else {
- echo("Neutron");
- }
-
- ?></title>
- <?php require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/header.php" ?>
-</head>
-<body neutron-error-body>
- <div class="centered discover">
- <h2><?= $lang["error"]["title"] ?></h2>
- <p><?= $lang["error"]["message"][0] ?></p>
- <p><?= $lang["error"]["message"][1] ?></p>
- <p><b><?php
-
- if (isset($_GET['id'])) {
- echo($lang["error"]["code"] . " " . $_GET['id']);
- } else {
- echo($lang["error"]["other"]);
- }
-
- ?></b></p>
- <a class="button" href="/"><?= $lang["error"]["direction"] ?></a>
- </div>
-</body>
-</html> \ No newline at end of file