} if ($REX[CACHING_DEBUG]) { print "Script time: " . showScripttime(); } $SHOWARTICLE = false; } else { // start caching $Cache->startCacheFile(); } } } if ($SHOWARTICLE) { $REX_ARTICLE = new article(); $REX_ARTICLE->setCLang($clang); if ($REX_ARTICLE->setArticleId($article_id)) { $REX_ARTICLE->getArticleTemplate(); } elseif ($REX_ARTICLE->setArticleId($REX[STARTARTIKEL_ID])) { $REX_ARTICLE->getArticleTemplate(); } else { echo "Kein Startartikel selektiert / No starting Article selected. Please click here to enter <a href=redaxo/index.php>redaxo</a>"; $REX[STATS] = 0; } ////////////////////////////////////////////// // advanced caching ////////////////////////////////////////////// if ($Cache->makeCacheFile) { $Cache->writeCacheFile(); if ($REX[CACHING_DEBUG]) { print "<br>MadeCache<br>"; } } else {
// $mail_aid // $test_email // $test_name // $test_firstname // $content $to_email = $test_email; $to_name = $test_name; $to_firstname = $test_firstname; // Testmail verschicken.. $REX['GG'] = true; $REX['REDAXO'] = true; $REX_ARTICLE = new article(); $REX_ARTICLE->setCLang(0); $REX_ARTICLE->setArticleId($mail_aid); // $REX_ARTICLE->setTemplateId(xx); $content = $REX_ARTICLE->getArticleTemplate(); $REX['GG'] = false; $REX['REDAXO'] = true; // Allgemeine Initialisierung $mail = new MyMailer(); $mail->AddAddress($to_email); $mail->From = $mail_reply; $mail->FromName = $mail_reply; // Subject $subject = $mail_subject; $subject = str_replace("###EMAIL###", "{$to_email}", $subject); $subject = str_replace("###NAME###", "{$to_name}", $subject); $subject = str_replace("###FIRSTNAME###", "{$to_firstname}", $subject); // Bodies // html $html_body = $content;