diff options
Diffstat (limited to 'Neutron-trunk/api/renderer')
-rw-r--r-- | Neutron-trunk/api/renderer/main.php | 24 | ||||
-rw-r--r-- | Neutron-trunk/api/renderer/render.php | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Neutron-trunk/api/renderer/main.php b/Neutron-trunk/api/renderer/main.php new file mode 100644 index 0000000..c873f60 --- /dev/null +++ b/Neutron-trunk/api/renderer/main.php @@ -0,0 +1,24 @@ +<?php + +global $_VERSION; + +global $_FNSN_DUMP_STARTDATE; +$_FNSN_DUMP_STARTDATE = new DateTime("now"); +require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-cyclic/includes/cache.php"; +ob_start(); + +function rlgps(string $message) { + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/engine-cyclic.log", file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/engine-cyclic.log") . "\n" . "... " . $message); +} + +if (!file_exists($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/oldRenderer")) { + $_VERSION = trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/cyclic_version")); + $_RENDERER = "Neutron Copper"; + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/engine-cyclic.log", "Using CyclicCMS version " . $_VERSION); + require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-cyclic/wrapper.php"; +} else { + $_VERSION = trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/api/jaw_version")); + $_RENDERER = "Neutron Titanium"; + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/engine-cyclic.log", "Using JustAWebsite version " . $_VERSION); + require_once $_SERVER['DOCUMENT_ROOT'] . "/api/engine-jaw/render.php"; +}
\ No newline at end of file diff --git a/Neutron-trunk/api/renderer/render.php b/Neutron-trunk/api/renderer/render.php new file mode 100644 index 0000000..30f32c1 --- /dev/null +++ b/Neutron-trunk/api/renderer/render.php @@ -0,0 +1,2 @@ +<?php +require_once "main.php";
\ No newline at end of file |