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/engine-cyclic/includes/getPageContent.php | |
parent | 15e4724761c50b30803df1811a525c85058f70bf (diff) | |
download | electrode-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.php | 14 |
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 |