aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/resources/private/relative.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/resources/private/relative.php
parent7b4af63a90a726b98a59b83e53f040a7a566a11d (diff)
downloadelectrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.gz
electrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.bz2
electrode-8fabf77b2a7720a357c63817c07035a9908818a0.zip
Update
Diffstat (limited to 'Neutron-trunk/resources/private/relative.php')
-rw-r--r--Neutron-trunk/resources/private/relative.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/Neutron-trunk/resources/private/relative.php b/Neutron-trunk/resources/private/relative.php
deleted file mode 100644
index a42a87f..0000000
--- a/Neutron-trunk/resources/private/relative.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-
-function getRelativeDetails($source) {
- global $__root;
-
- if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
- }
-
- $GLOBALS["ORIGINAL_DOCUMENT_ROOT"] = $_SERVER['DOCUMENT_ROOT'];
-
- if (substr($_SERVER['REQUEST_URI'], 0, strlen($source) + 1) === "/" . $source) {
- $__root = "";
- $GLOBALS["SYSTEM_ROOT"] = "";
- $GLOBALS["SYSTEM_PREFIXED"] = false;
- } else {
- $_SERVER['DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'] . "/" . explode("/", $_SERVER["PHP_SELF"])[1];
- $__root = "/" . explode("/", $_SERVER["PHP_SELF"])[1];
- $GLOBALS["SYSTEM_ROOT"] = "/" . explode("/", $_SERVER["PHP_SELF"])[1];
- $GLOBALS["SYSTEM_PREFIXED"] = true;
- }
-
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/oldRenderer") && $GLOBALS["SYSTEM_PREFIXED"]) {
- header("Content-Type: text/plain");
- echo("Error: Neutron Titanium does not support relative URLs! Please delete ./data/webcontent/oldRenderer and try again.");
- require $_SERVER['DOCUMENT_ROOT'] . "/api/electrode/quit.php";quit();
- }
-
- if (isset($__electrode) && $__electrode) {
- $__root = "";
- $GLOBALS["SYSTEM_ROOT"] = "";
- $_SERVER['DOCUMENT_ROOT'] = $GLOBALS["ORIGINAL_DOCUMENT_ROOT"];
- $GLOBALS["SYSTEM_PREFIXED"] = false;
- }
-}