| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0481 | 3877376 | include( '/var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/generated/templates/4.template' ) | .../class.rex_article_base.inc.php(395) : eval()'d code:5 |
| 5 | 0.0631 | 4280088 | seo42::getLangTags( ) | .../4.template:114 |
| 6 | 0.0642 | 4286072 | OOArticle::getArticleById( ) | .../class.seo42.inc.php:236 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0481 | 3877376 | include( '/var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/generated/templates/4.template' ) | .../class.rex_article_base.inc.php(395) : eval()'d code:5 |
| 5 | 0.0631 | 4280088 | seo42::getLangTags( ) | .../4.template:114 |
| 6 | 0.0660 | 4293856 | OOArticle::getArticleById( ) | .../class.seo42.inc.php:236 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0778 | 4699976 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0798 | 4765112 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0817 | 4846032 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0835 | 4927480 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0853 | 5008544 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0872 | 5085408 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0890 | 5166512 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0907 | 5247664 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0932 | 5328920 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0949 | 5405808 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0969 | 5487568 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.ooarticle.inc.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.0772 | 4689504 | OOArticle::getArticlesOfCategory( ) | .../class.rex_article.inc.php(126) : eval()'d code:858 |
| 7 | 0.0986 | 5569056 | OOArticle::getArticleById( ) | .../class.ooarticle.inc.php:107 |
| ( ! ) Warning: require_once(): Unable to allocate memory for pool. in /var/www/vhosts/h221300.host218.alfahosting-server.de/html/neues/redaxo/include/classes/class.oomedia.inc.php on line 116 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 246360 | {main}( ) | .../index.php:0 |
| 2 | 0.0475 | 3830120 | rex_article_base->getArticleTemplate( ) | .../index.php:55 |
| 3 | 0.0479 | 3876264 | eval( '?>getFile();
?>
getValue("article_id"));
echo $this->getArticle();
?>
| .../class.rex_article_base.inc.php:395 |
| 4 | 0.0753 | 4334120 | rex_article->getArticle( ) | .../class.rex_article_base.inc.php(395) : eval()'d code:45 |
| 5 | 0.0771 | 4684976 | eval( '?>ctype == '1' || ($this->ctype == '-1')) { ?>getValue('id')) //Selbstauflistung unterbinden
{
//Startartikel
if($withstartpage == '1' || $thearticle->getValue('startpage') != '1')
{
//Teaser
if(($onlyteaser != '1' || $onlyteaser != '3') || $thearticle->getValue('art_teaser') == '1')
{
//Datum: online_from / online_to
if($metatime != '1' || ($thearticle->getValue('art_online_from') <= date('U') && $thearticle->getValue('art_online_to') >= date('U')))
{
$show_articles[] = $thearticle;
}
}
}
}
}
return $show_articles;
}
}
// Sortierfunktion
if(!function_exists("sortArticlesByprior1"))
{
function sortArticlesByprior1( $artA, $artB)
{
$sortby = 'prior';
//name, createdate, updatedate, online_from, online_to, prior
$createA = $artA->getValue($sortby);
$createB = $artB->getValue($sortby);
if ( $createA == $createB)
{
return 0;
}
if('1') return $createA > $createB ? -1 : 1;
else return $createA < $createB ? -1 : 1;
}
}
//Paginierung
if(!function_exists("generatePagination"))
{
function generatePagination($articles, $listpage='0', $itemsperpage, $listnum, $wholewidth)
{
global $REX;
$GETPARAMS = $_GET;
unset($GETPARAMS['list'.$listnum.'page']);
$output = '';
if($itemsperpage > 0)
{
$prevtext = "«";
$nexttext = "»";
$itemcount = count($articles);
$output = '';
$pagecount = ceil($itemcount / $itemsperpage);
if($pagecount > 1)
{
if($listpage > $pagecount) $listpage = $pagecount;
$prevpagenum = -1;
$nextpagenum = -1;
if($listpage > 0) $prevpagenum = $listpage-1;
if($listpage < ($pagecount-1)) $nextpagenum = $listpage+1;
$output = ' '."\n";
$output = ''."\n";
$output .= ' '."\n";
}
return $output;
}
else
{
return "";
}
}
}
//Limitierung
if(!function_exists("limitArticles"))
{
function limitArticles($articles, $listpage = '0', $itemsperpage)
{
if($itemsperpage)
{
$itemcount = count($articles);
$pagecount = ($itemcount / $itemsperpage);
if($listpage > $pagecount) $listpage = $pagecount;
$offset = $listpage*$itemsperpage;
return array_slice ($articles, $offset ,$itemsperpage);
}
return $articles;
}
}
//Artikel Output for Slider
if(!function_exists("createArticleOutputPicture"))
{
function createArticleOutputPicture($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the slide item DIV
if($counter == '0')
{
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Slider with Modal
if(!function_exists("createArticleOutputModal"))
{
function createArticleOutputModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_slider_'.$rexMobile;
$gta_out = new article();
$gta_out->setArticleID($articleId);
//Get the modal out
$output .= ''."\n";
$output .= ''."\n";
$output .= ' '."\n";
$output .= ''."\n";
$output .= ' '."\n";
return $output;
}
}
//Artikel Output for Texts
if(!function_exists("createArticleOutputPictureText"))
{
function createArticleOutputPictureText($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
//Artikel Output for Texts with modal
if(!function_exists("createArticleOutputPictureTextModal"))
{
function createArticleOutputPictureTextModal($article, $thumbsize, $fromMetadata, $withmorelink, $counter, $sliderTexts, $rexMobile, $shortenText, $textpart, $teaserwidth, $format)
{
global $REX;
$output = '';
$articleId = $article->getId();
//Woher beziehe ich die Informationen
if($fromMetadata != '1') // from Metadata
{
$listHeadline = $article->getName();
$listShortTxt = $article->getValue('art_description');
$listImage = $article->getValue('art_picture');
$mfile = OOMedia::getMediaByFileName($listImage);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
//Meta-Zeiträume
$newsDate = $article->getValue('art_newsdate');
$eventStart = $article->getValue('art_eventstart');
$eventEnd = $article->getValue('art_eventend');
}
else // from first Slice
{
if($firstSlice = OOArticleSlice::getFirstSliceForArticle($articleId))
{
$listHeadline = $firstSlice->getValue(1);
$listShortTxt = $firstSlice->getValue(2);
$listImage = $firstSlice->getFile(1);
//Make sure there is a picture
$imageFile = $listImage;
if($imageFile == '') $imageFile = 'dummy.jpg';
$mfile = OOMedia::getMediaByFileName($imageFile);
// oder hole ich mir diese doch aus dem Medienpool?
if($sliderTexts == '1')
{
$listHeadline = $mfile->getValue('med_title_'.$REX['CUR_CLANG']);
$listShortTxt = $mfile->getValue('med_description_'.$REX['CUR_CLANG']);
}
}
}
$imageType='rex_alist_thumbs_'.$rexMobile;
if($format == 'pictext_out') $imageType='rex_alist_pics_'.$rexMobile;
// generate image manager url
if (method_exists('seo42', 'getImageManagerFile')) {
$imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
} elseif (method_exists('seo42', 'getImageManagerUrl')) { // compat
$imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
}
else {
if ($REX['REDAXO']) {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
} else {
$imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&rex_img_file=' . $imageFile;
}
}
//Start the surrounding DIV
$output = ''."\n";
return $output;
}
}
// Ausgabe-Code erzeugen
//nummerierung für GET
if($MLnum <0) $MLnum = 1;
else $MLnum ++;
//Multiples auseinanderbauen
$position = stripos("a:1:{i:0;s:1:"3";}","{");
if($position == 4)
{
$numwid = 1;
}
elseif($position == 5)
{
$numwid = 2;
}
else
{
$numwid = 3;
}
$anzahl = substr("a:1:{i:0;s:1:"3";}",2,$numwid);
$selarray = substr("a:1:{i:0;s:1:"3";}",$position);
$klammern = array("{","}");
$quotes = '"';
$selarray = str_replace($klammern,"",$selarray);
$selarray = str_replace($quotes,"",$selarray);
$suchmuster = "/i:[0-9]+;s:[0-9]+:/";
preg_match_all($suchmuster, $selarray, $treffer);
$selects = str_replace($treffer[0],"",$selarray);
$selects = substr($selects,0,-1);
$selects = explode(";",$selects);
$articles = array();
for($k=0;$k'."\n";
echo ''."\n";
//echo ' '."\n";
}
elseif($format == 'rex_slider_modal')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
$modals .= createArticleOutputModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart);
}
//echo ''."\n";
echo ''."\n";
echo $modals;
//echo ' '."\n";
}
elseif($format == 'text_out' || $format == 'pictext_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureText($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
//echo ''."\n";
echo ' '."\n";
}
elseif($format == 'pictextmodal_out')
{
$output = ''."\n";
for($i=0;$i<=count($articles)-1;$i++)
{
$output .= createArticleOutputPictureTextModal($articles[$i], 0, '0', '2', $i, $slidertexts, $rexMobile, $shortenText, $textpart, 'col-sm-12', $format);
}
echo ''."\n";
echo ' '."\n";
//echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.rex_string_table::getString('MORELINK').' '.$archiveName.''."\n"; echo ' '; } echo ''."\n";
echo ' '."\n";
}
}
}
?>
''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo ' '."\n";
echo ''."\n";
echo $output."\n";
echo ' '."\n";
echo ' '.$pagination."\n";
if("" != '')
{
$archiveLink = OOArticle::getArticleById("");
$archiveName = $archiveLink->getName();
echo ''."\n"; echo ' '.$archiveName.'-Archiv'."\n"; echo ' '; } echo ' | .../class.rex_article.inc.php:126 |
| 6 | 0.1019 | 5653296 | createArticleOutputPictureText( ) | .../class.rex_article.inc.php(126) : eval()'d code:966 |
| 7 | 0.1019 | 5654064 | OOMedia::getMediaByFileName( ) | .../class.rex_article.inc.php(126) : eval()'d code:506 |
Die Ausstellung ist die erste öffentliche Präsentation des malerischen Kooperation von Paweł Althamer (geb. 1967) und Przemysław Matecki (geb. 1976). Die Bilder und Assemblagen entstanden in den letzten drei Jahren als Resultat intensiver, oft spontaner kreativer Begegnungen unter Verwendung vorgefundener Objekte und früherer Arbeiten der beiden Künstler. Der emotionale Charakter der Bilder korrespondiert mit dem angespannten politischen, sozialen und familiären Klima, in dem sie entstanden. Die Künstler unternehmen eine Neudefinition von Begriffen, Motiven und Symbolen, die für ihren kulturellen Kontext von zentraler Bedeutung sind und die religiöse, nationale und künstlerische Gemeinschaft prägen. Die beiden Künstler gehören zu den wichtigsten Kunstschaffenden ihrer jeweiligen Generation. Althamer ist Bildhauer und Performer, er schuf Installationen und initiierte soziale Aktionen von kollektivem, geistigem und kreativem Charakter. Seine Arbeiten wurden in den wichtigsten Kunstinstitutionen ausgestellt, unter anderem im New Museum (New York), im Centre Pompidou (Paris), auf der Kasseler Documenta und auf der Berlin Biennale. Matecki ist Maler, er verbindet unterschiedliche Gattungen und erweitert das Bildfeld um Elemente der Collage und Assemblage. Er schuf Werkzyklen in Zusammenarbeit mit Tomasz Ciecierski, Zbigniew Rogalski und Paweł Susid. Seine Werke wurden in Einzelausstellungen unter anderem im Zentrum für Gegenwartskunst und in der Nationalgalerie Zachęta in Warschau gezeigt.
Zwischen dem 19. September und 4. November 2018 während des Lichtfestivals in Recklinghausen wird eine gemeinsame Ausstellung von Oskar Zieta und dem Museum Jerke veranstaltet. Das Licht begleitet uns jeden Tag mit. Es spielt eine entscheidende Rolle dabei, wie wir unsere Umgebung wahrnehmen und wie der Schatten die Form unterstreicht. Dank spiegelglänzenden Oberflächen und den bionischen Objektformen wird das Licht gekrümmt und gespiegelt, um eine Lichtgestrichene Inszenierung innerhalb von Museums Objekten zu gestalten.
Radek Szlagas Ausstellung präsentiert den neuen Zyklus „Places I had no intention of seeing“. Nachdem sich der Künstler zuvor auf sprachliche Details, auf Fehler und Verschiebungen in übersetzten Texten sowie auf die Unvollkommenheit der Übersetzung konzentrierte, richtet er seine Aufmerksamkeit nun auf Landkarten und Geographie. Ausgangspunkt des neuen Zyklus ist der Atlas oder besser gesagt: seine Umkehrung. In dieser Serie von Arbeiten ist der Atlas nicht mehr die dem Betrachter vertraute Figur, präzise und lesbar, mit klar gezogenen Grenzen. Indem Szlaga die Nahtstellen überskaliert und vergrößert, betont er vielmehr das, was nicht zusammenpasst. Auf der Rückseite der Landkarte werden unwichtige Ausschnitte wichtig, provinzielle und kreolische Kulturen erweisen sich als Zentrum und winzige Elemente und Details diktieren die Ordnung des Feldes. MARTA KOŁAKOWSKA
PAWEŁ KOWALEWSKI ZEITGEIST Gemeinschaftsausstellung der Galerie Propaganda (Warschau) und des Museum Jerke in Zusammenarbeit mit der Kirche St. Peter in Recklinghausen und dem Polnischen Institut Düsseldorf
,,DAS WORT TÄUSCHT DAS AUGE NIE'' In der neuen Sonderausstellung präsentiert das Museum moderne polnische Typografie von 1918-1939 aus der privaten Sammlung von Dr.Jerke. Die Vernissage ist am Samstag den 09.09.17 um 13.00 Uhr. In Zusammenarbeit mit dem polnischen Institut Düsseldorf und dem Museum Sztuki Lodz.