bei 4.8.13 bricht der Quellcode der HTML Frontend Seite ab.
Bei 4.8.14 habe ich die Datei zur Anzeige des CodeOutputs hinzugefügt und folgenden Text bekommen:
Code: Alles auswählen
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="http://xxxxxx/contenido_4.8.14/cms/" />
<?php $C1CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 3; ?><?php $cCurrentContainer = 1; ?><?php
/**
* $RCSfile$
*
* Description: Display HTML Comment with Infos about Contenido and the Sample Client.
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl) || strtolower(get_class($tpl)) != 'template') {
$tpl = new Template();
}
$tpl->reset();
$tpl->generate('templates/contenido_header.html');
?>
<title><?php $C10CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 22; ?><?php $cCurrentContainer = 10; ?><?php
/**
* $RCSfile$
*
* Description: Print HTML title tag content
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation_Breadcrumb.class.php');
try {
$oBread = new Contenido_FrontendNavigation_Breadcrumb($db, $cfg, $client, $lang, $cfgClient);
$oBreadCats = $oBread->get($idcat, 1);
$sBread = 'Contenido - ';
$aBread = array();
foreach ($oBreadCats as $oConCat) {
$aBread[] = $oConCat->getCategoryLanguage()->getName();
}
$sBread .= implode(' - ', $aBread);
$oArticle = new Article($idart, $client, $lang);
$sHeadline = strip_tags($oArticle->getContent('CMS_HTMLHEAD', 1));
if ($sHeadline != '') {
$sBread .= ' - '.$sHeadline;
}
echo $sBread;
} catch (InvalidArgumentException $eI) {
echo 'Contenido';
} catch (Exception $e) {
echo 'Contenido';
}
?>
</title>
<link rel="stylesheet" href="css/contenido_sample.css" type="text/css" media="all" />
<link rel="shortcut icon" href="favicon.ico" />
<!--[if lte IE 6]>
<style type="text/css">
.clearfix {height:1px;}
</style>
<![endif]-->
<meta name="generator" content="CMS Contenido 4.8" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
</head>
<body>
<div id="outerContainer">
<div id="head">
<?php $C20CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 5; ?><?php $cCurrentContainer = 20; ?><?php
/**
* $RCSfile$
*
* Description: Display Header with Contenido Logo, an image and the current (navigation-) location.
* If no image is selected, the default one will be used.
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
cInclude('classes', 'Contenido_Category/Contenido_Category.class.php');
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
// get start idcat
$iIdcatStart = (int) getEffectiveSetting('navigation', 'idcat-home', '1');
try {
// get headline
$oConCat = new Contenido_Category($db, $cfg);
$oConCat->load($idcat, true, $lang);
$sImgEdit = "";
$sImg = "";
$sHeadline = $iIdcatStart != intval($idcat)
? $oConCat->getCategoryLanguage()->getName()
: mi18n("Willkommen!");
$sCssStyle = '';
if ($contenido && $edit) {
echo '<div id="modHeaderImgEdit">'.$sImgEdit.'</div>';
}
if ($sImg != '') {
$sCssStyle = ' style="background-image:url('.$sImg.');"';
}
$tpl->reset();
$tpl->set('s', 'css-style', $sCssStyle);
$tpl->set('s', 'url', 'front_content.php');
$tpl->set('s', 'title', mi18n("Zur Contenido Homepage"));
$tpl->set('s', 'headline', $sHeadline);
$tpl->generate('templates/header.html');
} catch (InvalidArgumentException $eI) {
echo 'Some error occured: ' . $eI->getMessage() . ': ' . $eI->getFile() . ' at line '.$eI->getLine() . ' ('.$eI->getTraceAsString().')';
} catch (Exception $e) {
echo 'Some error occured: ' . $e->getMessage() . ': ' . $e->getFile() . ' at line '.$e->getLine() . ' ('.$e->getTraceAsString().')';
}
?>
</div>
<div id="contentContainer" class="clearfix">
<div id="navigation">
<?php $C30CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 10; ?><?php $cCurrentContainer = 30; ?><?php
/**
* $RCSfile$
*
* Description:
* Main Navigation, displays Navigation from a starting idcat down to the max. level set.
* For now (as of 2009-01-12) all subcategories are put inside one <ul> and are assigned css classes
* to distinguish level depth, first/last and active item property.
*
* Module requires two client settings:
* navigation_main_standard | start_idcat
* navigation_main_standard | level_depth
*
* To modify the behaviour of the module (e.g. style of URL, CSS classes, ...), you need to edit Contenido_NavMain_Util::loopCats
* @see {frontend}/includes/Util/Modules/Contenido_NavMain_Util.class.php
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2009-01-12
* }}
*
* $Id: Navigation_Standard.php 3444 2009-01-19 11:42:59Z rudi.bieller $
*/
if (!isset($db)) {
$db = new DB_Contenido();
}
if (!isset($tpl)) {
$tpl = new Template();
}
$tpl->reset();
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation.class.php');
cInclude('frontend', 'includes/Util/Modules/Contenido_NavMain_Util.class.php');
$iStartIdcat = getEffectiveSetting('navigation', 'idcat-home', 1);
$iSelectedDepth = getEffectiveSetting('navigation', 'level-depth', 3);
if ($iStartIdcat > 0) {
$oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
$oFeNav->setAuth($auth);
$oFeNav->setRootCat($iStartIdcat);
$oSubCategories = $oFeNav->getSubCategories($iStartIdcat, true, true, 1);
// see if there are any subcategories to display
if ($oSubCategories->count() > 0) {
$aLevelInfo = array();
$aDepthInfo = array();
$aDepthInfo[0] = 0;
$aDepthInfo[1] = $iSelectedDepth;
foreach ($oSubCategories as $oSubCategory) {
Contenido_NavMain_Util::loopCats($oSubCategory, $oFeNav, $tpl, $cfg, $lang, $aLevelInfo, intval($idcat), $aDepthInfo);
}
$tpl->generate('templates/navigation_standard.html');
}
} else {
echo '<p>Navigation not configured correctly.</p>';
}
?>
<?php $C40CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 17; ?><?php $cCurrentContainer = 40; ?><?php
/**
* $RCSfile$
*
* Description: Search input box
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
$sTargetIdcat = getEffectiveSetting('search-results', 'idcat', '1');
$sTargetIdart = getEffectiveSetting('search-results', 'idart', '1');
$sFormAction = 'front_content.php?idcat='.$sTargetIdcat.'&idart='.$sTargetIdart;
$tpl->set('s', 'form_action', $sFormAction);
$tpl->set('s', 'label_search', mi18n("Suche"));
$tpl->generate('templates/search_input.html');
?>
</div>
<div id="whiteBg">
<div id="content">
<?php $C50CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 6; ?><?php $cCurrentContainer = 50; ?><?php
/**
* $RCSfile$
*
* Description: Output standard h1 headline
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* modified 2008-11-13, Timo Trautman - fixed XHTML validation error, when module displays empty h1 tag
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$sText = "Ihre Installation hat geklappt!
";
$tpl->reset();
if ($contenido && $edit) {
$tpl->set('s', 'text', $sText);
$tpl->generate('templates/headline_h1.html');
} else {
if ($sText != '') {
$tpl->set('s', 'text', strip_tags($sText));
$tpl->generate('templates/headline_h1.html');
}
}
?>
<?php $C51CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 20; ?><?php $cCurrentContainer = 51; ?><?php
/**
* $RCSfile$
*
* Description: Output standard h2 subheadline
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
$sText = "";
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
if ($contenido && $edit) {
$tpl->set('s', 'text', $sText);
$tpl->generate('templates/subheadline_h2.html');
} else {
if ($sText != '') {
$tpl->set('s', 'text', strip_tags($sText));
$tpl->generate('templates/subheadline_h2.html');
}
}
?>
<?php $C52CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 23; ?><?php $cCurrentContainer = 52; ?><?php
/**
* $RCSfile$
*
* Description: Output some HTML text
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
$tpl->set('s', 'text', "<p>
Sie haben das Content Management System Contenido erfolgreich installiert. War doch nicht so schwer, oder?
</p>
<p>
Nun können Sie sich in Contenido anmelden und den Inhalt bearbeiten.
Navigationsstrukturen können Sie individuell verändern, neue Seiten
einstellen, dabei Bilder, Links und Tabellen einfügen usw.
</p>
<p>
Diese Seite soll Ihnen einen kurzen Überblick über die
Arbeit in Contenido geben. Für weiterführende Informationen empfehlen
wir Ihnen das Redakteurshandbuch.
</p>
<p>
Anhand dieser Seite können Sie auch mit der Integration einer
eigenen Seite beginnen. Anhand den gegebenen Layouts, Modulen und
Templates können Sie die Funktionsweise von Contenido und den Aufbau
und Bestandteile einer Website schnell erlernen.
</p>
<p>
Was Ihnen diese Beispielinstallation bietet und welche Module zum
einen Siteaufbau zur Verfügung stehen, können Sie hier erfahren.
</p>
");
$tpl->generate('templates/text_html.html');
?>
<?php $C53CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 53; ?>
<?php $C54CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 54; ?>
<?php $C55CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 55; ?>
<?php $C56CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 56; ?>
<?php $C57CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 57; ?>
<?php $C58CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 58; ?>
<?php $C59CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 0; ?><?php $cCurrentContainer = 59; ?>
<img src="images/hr_article.gif" alt="" class="hr" />
</div>
<div id="teasersRight">
<?php $C60CMS_VALUE[0]="http://www.contenido.org/rss/de/news"; $C60CMS_VALUE[1]="teaser_right.html"; $C60CMS_VALUE[2]="3"; ?>
<?php $cCurrentModule = 16; ?><?php $cCurrentContainer = 60; ?><?php
/**
* $RCSfile$
*
* Description: Display an RSS Feed. Module "Output".
*
* @version 1.0.0
* @author Timo Hummel, Andreas Lindner
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2005-09-30
* }}
*
* $Id$
*/
cInclude("pear", "XML/Parser.php");
cInclude("pear", "XML/RSS.php");
if ("http://www.contenido.org/rss/de/news" == "")
{
$sFeed = "http://www.contenido.org/rss/de/news";
} else {
$sFeed = "http://www.contenido.org/rss/de/news";
}
if ("3" == "")
{
$FeedMaxItems = 999;
} else {
$FeedMaxItems = intval("3");
}
/* Preparse feed for an encoding due to the poorly designed
PHP XML parser */
$sFeedContent = substr(@file_get_contents($sFeed),0,1024);
$regExp = "/<\?xml.*encoding=[\"\'](.*)[\"\']\?>/i";
preg_match($regExp,trim($sFeedContent),$matches);
if ($matches[1])
{
$rss = new XML_RSS($sFeed, $matches[1]);
} else {
$rss = new XML_RSS($sFeed);
}
$rss->parse();
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
$i = 0;
foreach ($rss->getItems() as $item)
{
if ($i < $FeedMaxItems) {
$tpl->set("d", "TITLE", htmlentities($item['title'],ENT_QUOTES));
$tpl->set("d", "LINK", htmlentities($item['link'],ENT_QUOTES));
$tpl->set("d", "DESCRIPTION", htmlentities($item['description'],ENT_QUOTES));
$tpl->set("d", "READ_ON", mi18n("weiterlesen"));
$tpl->next();
}
$i++;
}
$tpl->generate($cfgClient[$client]["path"]["frontend"]."templates/"."teaser_right.html");
?>
</div>
</div>
</div>
</div> <!-- /outerContainer -->
<div id="footer">
<div id="footerContainer">
<?php $C70CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 8; ?><?php $cCurrentContainer = 70; ?><?php
/**
* $RCSfile$
*
* Description: Display Logo on bottom of page
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
$tpl->generate('templates/logo_bottom.html');
?>
<div id="footerContentContainer" class="clearfix">
<div id="footerContentLeft">
<?php $C75CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 11; ?><?php $cCurrentContainer = 75; ?><?php
/**
* $RCSfile$
*
* Description: Meta Navigation on bottom of page
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
// include Contenido_FrontendNavigation class
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation.class.php');
// get start idcat
$iIdcatStart = getEffectiveSetting('navigation', 'idcat-meta', 2);
//check if there is a template instance
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
// reset template object
$tpl->reset();
// build navigation
try {
$oFeNav = new Contenido_FrontendNavigation($db, $cfg, $client, $lang, $cfgClient);
$oContenidoCategories = $oFeNav->getSubCategories($iIdcatStart, true);
if ($oContenidoCategories->count() > 0) {
foreach ($oContenidoCategories as $oContenidoCategory) {
// this is just for sample client - modify to your needs!
if ($cfg['url_builder']['name'] == 'front_content') {
$aParams = array('lang' => $lang, 'idcat' => $oContenidoCategory->getIdCat());
} else {
$aParams = array('a' => $oContenidoCategory->getIdCat(),
'idcat' => $oContenidoCategory->getIdCat(), // needed to build category path
'lang' => $lang, // needed to build category path
'level' => 0); // needed to build category path
}
try {
$tpl->set('d', 'url', Contenido_Url::getInstance()->build($aParams));
} catch (InvalidArgumentException $e) {
$tpl->set('d', 'url', 'front_content.php?idcat='.$oContenidoCategory->getIdCat());
}
$tpl->set('d', 'title', $oContenidoCategory->getCategoryLanguage()->getName());
$tpl->set('d', 'label', $oContenidoCategory->getCategoryLanguage()->getName());
$tpl->next();
}
$sItems = $tpl->generate('templates/navigation_meta_item.html', true, false);
$tpl->reset();
$tpl->set('s', 'items', $sItems);
$tpl->generate('templates/navigation_meta_container.html');
}
} catch (Exception $e) {
echo 'Shit happens: ' . $e->getMessage() . ': ' . $e->getFile() . ' at line '.$e->getLine() . ' ('.$e->getTraceAsString().')';
}
?>
<?php $C76CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 4; ?><?php $cCurrentContainer = 76; ?><?php
/**
* $RCSfile$
*
* Description: Display footnotes, fixed output directly from template
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-11
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
$tpl->generate('templates/footnotes_'.strval($lang).'.html');
?>
</div>
<div id="footerContentRight">
<?php $C80CMS_VALUE[]=""; ?>
<?php $cCurrentModule = 7; ?><?php $cCurrentContainer = 80; ?><?php
/**
* $RCSfile$
*
* Description: Display login form
*
* @version 1.0.0
* @author Rudi Bieller
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2008-04-07
* }}
*
* $Id$
*/
if (!isset($tpl) || !is_object($tpl)) {
$tpl = new Template();
}
$tpl->reset();
if ($auth->auth["uid"] == "nobody") {
$sTargetIdcat = getEffectiveSetting('login', 'idcat', '1');
$sTargetIdart = getEffectiveSetting('login', 'idart', '1');
$sFormAction = 'front_content.php?idcat='.$sTargetIdcat.'&idart='.$sTargetIdart;
$tpl->set('s', 'headline', mi18n("Geschlossener Bereich Login"));
$tpl->set('s', 'form_action', $sFormAction);
$tpl->set('s', 'label_name', mi18n("name"));
$tpl->set('s', 'label_pass', mi18n("pass"));
$tpl->set('s', 'label_login', mi18n("einloggen"));
$tpl->generate('templates/login_form.html');
} else {
cInclude('classes', 'class.frontend.users.php');
cInclude('classes', 'Contenido_Category/Contenido_Category.class.php');
try {
$oConCat = new Contenido_Category($db, $cfg);
$oConCat->load($idcat, true, $lang);
$bCatIsPublic = ($oConCat->getCategoryLanguage()->getVisible() == 1 && $oConCat->getCategoryLanguage()->getPublic() == 1)
? true : false;
} catch (Exception $e) {
echo $e->getMessage();
}
$oFeUserCollection = new FrontendUserCollection();
$oFeUser = $oFeUserCollection->loadItem($auth->auth["uid"]);
$sText = str_replace('[uname]', $oFeUser->get('username'), mi18n("Willkommen <strong>[uname]</strong>, sch
</div>
</div>
</div>
</div>
</body>
</html>
So tief bin ich in Contenido noch nicht drin, dass ich weiß worauf ich hier achten sollte. Kannst du da was erkennen?