aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/engine-cyclic/includes/getPageContent.php
diff options
context:
space:
mode:
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