aboutsummaryrefslogtreecommitdiff
path: root/Neutron-trunk/api/engine-cyclic/includes/getPageName.php
blob: e364493793498f9ddf097c077e709dee48d617d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
        }
    }
}