TreeIndex.mcEg.inc.php
3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* @file TreeIndex.mcEg.inc.php
* @category freeSN
* @mailto code [at] netz.coop
* @version 0.4.200901
* @link http://netz.coop
*
* @copyright Copyright by netz.coop e.G. 2015
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$DOMElement_Basic = $DOMDocument->createElement("XMLSite_Basic");
$Content->appendChild($DOMElement_Basic);
$DOMElement_Display = $DOMDocument->createElement("XMLSite_Display");
$Content->appendChild($DOMElement_Display);
$DOMElement_Misc = $DOMDocument->createElement("XMLSite_Misc");
$Content->appendChild($DOMElement_Misc);
$PartOf = false;
$var_RequestProfileID = 0;
$param_MenuLink=$param_url=$param_Tree=null;
/** Basic */
$var_PartOfBE =& MultimediaText::loadElement($HostAccount, $DB, $var_MultimediaTextClassName='*', $_LOSP_SIMPLEPAGE_ID);
if($var_PartOfBE) {
BasisElement::loadObjectLevel($HostAccount, $DB, $var_PartOfBE, 'RealSingleView');
$var_BasicDOMElement = $var_PartOfBE->getObjDOMElement($HostAccount, $DB, $DOMDocument);
$DOMElement_Basic->appendChild($var_BasicDOMElement);
$var_get['p'][0] = 'showSingle';
$var_get['p'][1] = 'ID';
$var_get['p'][2] = $_LOSP_SIMPLEPAGE_ID;
Controller::showDefaultBasisClipboard($HostAccount, $DB, $DOMDocument, 'ForShowSingle', $var_BasicDOMElement, get_class($var_PartOfBE), $var_PartOfBE, &$param_url, &$param_Tree, $var_get, $param_GET_setNull=false, $param_showDefault=0, $param_GETcount=null);
if(array_key_exists('p', $_GET) && count($_GET['p'])>3 && $_GET['p'][2]==$_LOSP_SIMPLEPAGE_ID){
$var_get['p'] = $_GET['p'];
if(array_key_exists('c',$_GET)){
$var_get['c'] = $_GET['c'];
}
$var_display=Controller::runTree($HostAccount, $DB, $DOMDocument, $var_get['p'][3], $param_MenuLink, $var_PageDOMElement, $var_PartOfBE, $param_GET_index=3, $param_url, $var_get, $param_Tree, $param_showDefault=0, $param_MaxDetph=0);
$DOMElement_Display->appendChild($DOMDocument->importNode($var_display,true));
}
}
if(array_key_exists('p', $_GET)){
if(count($_GET['p'])==3 && is_numeric($_GET['p'][2])){
if($_GET['p'][2] == $_LOSP_SIMPLEPAGE_ID){
$DOMElement_Display->appendChild($DOMDocument->importNode($var_BasicDOMElement->cloneNode(true),true));
}
}
}
/*$_TITLE = GlobalData::getSiteTitle();
$_DESCRIPTION = GlobalData::getMetaDescription();
if($_LOSP_DEV) {
$_DEV_TITLE = "[LOSP] :: DEV//Forest/$_TREE/Design/$_LOSP_DESIGNDIR/ - ";
} else {
$_DEV_TITLE ='';
}*/
$DOMElement_Display->appendChild(Error::getAllXML($DOMDocument));
/** vorstrukturierte DOMElemente werden dem Haupt XML DOMDocument hizugefügt */
$Content->appendChild($DOMElement_HTMLTagHead);
$var_css = $_LOSP_SERVERNAME.'/include/css/default.css';
?>