aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/renderer/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/api/renderer/main.php')
-rw-r--r--Neutron-trunk/api/renderer/main.php24
1 files changed, 24 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