aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/cms-special/error/index.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-24 15:38:16 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-24 15:38:16 +0200
commit529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 (patch)
tree8a50c30271b9b328cde0d907b1441f2dabdc341b /Neutron-trunk/cms-special/error/index.php
parent15e4724761c50b30803df1811a525c85058f70bf (diff)
downloadelectrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.gz
electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.bz2
electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.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, 71 insertions, 0 deletions
diff --git a/Neutron-trunk/cms-special/error/index.php b/Neutron-trunk/cms-special/error/index.php
new file mode 100644
index 0000000..3983bc7
--- /dev/null
+++ b/Neutron-trunk/cms-special/error/index.php
@@ -0,0 +1,71 @@
+<?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