aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/engine-cyclic/includes/getPageName.php
diff options
context:
space:
mode:
Diffstat (limited to 'Neutron-trunk/api/engine-cyclic/includes/getPageName.php')
-rw-r--r--Neutron-trunk/api/engine-cyclic/includes/getPageName.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/Neutron-trunk/api/engine-cyclic/includes/getPageName.php b/Neutron-trunk/api/engine-cyclic/includes/getPageName.php
new file mode 100644
index 0000000..e364493
--- /dev/null
+++ b/Neutron-trunk/api/engine-cyclic/includes/getPageName.php
@@ -0,0 +1,18 @@
+<?php
+
+function getPageName() {
+ rlgps("getPageName() call");
+ global $MPCMSRendererPageMarkup;
+ global $MPCMSRendererPageMarkupDN;
+ global $MPCMSRendererPageNameValue;
+
+ if (isset($MPCMSRendererPageMarkup) && isset($MPCMSRendererPageMarkupDN)) {
+ return $MPCMSRendererPageMarkupDN;
+ } else {
+ if ($MPCMSRendererPageNameValue == "index") {
+ return file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/data/webcontent/sitename");
+ } else {
+ return file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/" . $MPCMSRendererPageNameValue . "/pagename");
+ }
+ }
+} \ No newline at end of file