diff options
author | Gitea <gitea@fake.local> | 2021-11-10 17:53:50 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2021-11-10 17:53:50 +0100 |
commit | 8fabf77b2a7720a357c63817c07035a9908818a0 (patch) | |
tree | d689fcac1403e2473010fe80bc337599a78c21a4 /Neutron-trunk/api/engine-jaw/render.php | |
parent | 7b4af63a90a726b98a59b83e53f040a7a566a11d (diff) | |
download | electrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.gz electrode-8fabf77b2a7720a357c63817c07035a9908818a0.tar.bz2 electrode-8fabf77b2a7720a357c63817c07035a9908818a0.zip |
Update
Diffstat (limited to 'Neutron-trunk/api/engine-jaw/render.php')
-rw-r--r-- | Neutron-trunk/api/engine-jaw/render.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Neutron-trunk/api/engine-jaw/render.php b/Neutron-trunk/api/engine-jaw/render.php deleted file mode 100644 index 9a9efd3..0000000 --- a/Neutron-trunk/api/engine-jaw/render.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -function render(string $name) { - if (!cacheCheck($name)) { - if ($name == "index") { - require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-jaw/homepage.php"; - - $content = ob_get_contents(); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/page-index", $content); - require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/debug.php";debugDump(); - } else { - $MPCMSRendererPageNameValue = $name; - require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-jaw/init.php"; - - $content = ob_get_contents(); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/cache/page-" . $name, $content); - require_once $_SERVER['DOCUMENT_ROOT'] . "/resources/private/debug.php";debugDump(); - } - } else { - rlgps("Received page from cache"); - } -} - -function renderSpecial(string $markup, string $displayName = "Page") { - $MPCMSRendererPageMarkup = $markup; - $MPCMSRendererPageMarkupDN = $displayName; - rlgps("Special page"); - require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-jaw/init.php"; -}
\ No newline at end of file |