diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:38:16 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-24 15:38:16 +0200 |
commit | 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 (patch) | |
tree | 8a50c30271b9b328cde0d907b1441f2dabdc341b /Neutron-trunk/api/renderer | |
parent | 15e4724761c50b30803df1811a525c85058f70bf (diff) | |
download | electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.gz electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.bz2 electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.zip |
Update
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 |