TreeIndex.mcEg.inc.php 3.22 KB
<?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';

?>