header('Content-Type: text/html; charset=utf-8'); ob_start(); error_reporting(E_ERROR | E_WARNING | E_PARSE); ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT); $CacheTemplateID = '1'; $pageCachingEnabled = 1; if ($pageCachingEnabled) { include "OntoCMS/turbocache.php"; turbocache::getTurboCachedPage($CacheTemplateID,3600); # Max Cachetime in seconds # To flush the cache after Template changes use: /cgi-bin/flushpagecache.plx } # We want to know what will come in!!! $lng = $_GET['lng']; $node = $_GET['node']; if ($lng == '') { $lng = 'de'; } ### Server ROOT ### $www_root = substr($_SERVER['DOCUMENT_ROOT'],0,-1); $server_root = "https://".$_SERVER['HTTP_HOST'].''; $http_root = $server_root; $online_root = $server_root; $web_root = ""; $folder_root = $server_root; $detranslate = Array(); $detranslate['nights'] = "Nächte"; $detranslate['Anreise'] = "Anreise"; $detranslate['myvacationurl'] = "/home/kaerntenurlaub_buchen"; $detranslate['myvacationbutton'] = "suche"; $detranslate['UrlaubPlanen'] = 'Urlaub Planen'; $entranslate = Array(); $entranslate['nights'] = "Nights"; $entranslate['Anreise'] = "Arrival"; $entranslate['myvacationurl'] = "/home/my_vacation"; $entranslate['myvacationbutton'] = "search"; $entranslate['UrlaubPlanen'] = 'My Vacation'; if ($lng == "en") { $translate = $entranslate; } else { $translate = $detranslate; } include $www_root."/config/config.php"; include $www_root."/inc/createcache.php"; include $www_root."/inc/functions.php"; ############################################################################################################## ### ONTO Values laden ### ############################################################################################################## if(!$node){ $node = 2; } $menuNode = $node; # Load own Context to $thisnode and $Contentnode # $Thisnode: Use for Meta-Info, menu, images etc. # $ContentNode: Use for Content Data html text, image galleries etc. can be different to "thisnode because of aliasfor try { $thisnode = $nodecache->getNodeById($menuNode,4); } catch (Exception $e) { $thisnode = $nodecache->getNodeById($menuNode,10); } $RootMenuNode = $nodecache->getNodeById(2,4); $ContentNode = $thisnode; # Process Alias Property $getAlias = $ContentNode->getPropertyByType('aliasfortemplate'); if ($getAlias != '') { $ContentNode = $nodecache->getNodeByOntoRef($getAlias->getValue()); } $thisnode->loadInheritedProperties(); $ContentNode->loadInheritedProperties(); $authnode = $thisnode->getPropertyByType('RequireAuth',''); if ($authnode != '') { include_once('OntoCMS/OntoCMSAuth.php'); $authOBJ = new OntoCMSAuth(); $actuser = $authOBJ->AuthOntoCMS($authnode->getNode(),'ThisNodeRef'); if ($actuser) { # echo $actuser; } else { echo "Sorry Authentication failed"; exit; } } # Process Redirect $redirectTo = $thisnode->getPropertyByType('RedirectTo',null); if ($redirectTo) { redirectTo($redirectTo->getOriginalValue()); } $module = false; if ($ContentNode->getPropertyByType(array($lng."Rzkmodule","NotAutoContentTitle"),"nomodule") != "nomodule") {$module = true; } $checkarray = array(); # Direct Changes to us: $checkarray['START'] = array($lng.'HTML','externalLink','htmlCode','image_gallery','LinkTippTemplate','printSubItems','internal_flash','Video','VideoLink','Panorama','PanoramaLink','guestbookRef',$lng.'Rzkmodule','FeedOntoREF',$lng.'Internal_pdf','PRINTSUBMAP','internal_image'); # If there is a Object Property which referneces a node with the BaseReference internal_template we are interested in: $checkarray['internal_template'] = array($lng.'KurzText','KurztextBild'); # If there is a Object Property which referneces a node with the BaseReference internal_image we are interested in: $checkarray['internal_image'] = array($lng.'BildTitel',$lng.'Bildbeschreibung'); header('Last-Modified: '.gmdate('D, d M Y H:i:s', $ContentNode->getUnixTotalModDate(array('image_gallery','printSubItems'),0,$checkarray)).' GMT'); $kaerntnerhausnode = $nodecache->getNodeById(74,4); $troadkastnsnode = $nodecache->getNodeById(8,4); ############################################################################################################## ?>