aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/engine-cyclic/includes/getPageContent.php
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-08-24 15:38:16 +0200
committerMinteck <nekostarfan@gmail.com>2021-08-24 15:38:16 +0200
commit529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 (patch)
tree8a50c30271b9b328cde0d907b1441f2dabdc341b /Neutron-trunk/api/engine-cyclic/includes/getPageContent.php
parent15e4724761c50b30803df1811a525c85058f70bf (diff)
downloadelectrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.gz
electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.tar.bz2
electrode-529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105.zip
Update
Diffstat (limited to 'Neutron-trunk/api/engine-cyclic/includes/getPageContent.php')
-rw-r--r--Neutron-trunk/api/engine-cyclic/includes/getPageContent.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/Neutron-trunk/api/engine-cyclic/includes/getPageContent.php b/Neutron-trunk/api/engine-cyclic/includes/getPageContent.php
new file mode 100644
index 0000000..31b202c
--- /dev/null
+++ b/Neutron-trunk/api/engine-cyclic/includes/getPageContent.php
@@ -0,0 +1,14 @@
+<?php
+
+function getPageContent() {
+ rlgps("getPageContent() call");
+ global $MPCMSRendererPageMarkup;
+ global $MPCMSRendererPageMarkupDN;
+ global $MPCMSRendererPageNameValue;
+
+ if (isset($MPCMSRendererPageMarkup) && isset($MPCMSRendererPageMarkupDN)) {
+ return $MPCMSRendererPageMarkup;
+ } else {
+ return file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/pages/" . $MPCMSRendererPageNameValue);
+ }
+} \ No newline at end of file