Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @package redaxo4
- * @version $Id: index.php,v 1.2 2008/02/26 18:33:43 kills Exp $
- */
- // ----- ob caching start für output filter
- ob_start();
- ob_implicit_flush(0);
- // ----------------- MAGIC QUOTES CHECK && REGISTER GLOBALS
- include './redaxo/include/functions/function_rex_mquotes.inc.php';
- // --------------------------- ini settings
- // Setzten des arg_separators, falls Sessions verwendet werden,
- // um XHTML valide Links zu produzieren
- @ini_set('arg_separator.input', '&');
- @ini_set('arg_separator.output', '&');
- // --------------------------- globals
- unset($REX);
- // Flag ob Inhalte mit Redaxo aufgerufen oder
- // von der Webseite aus
- // Kann wichtig für die Darstellung sein
- // Sollte immer false bleiben
- $REX['REDAXO'] = false;
- // Wenn $REX[GG] = true; dann wird der
- // Content aus den redaxo/include/generated/
- // genommen
- $REX['GG'] = true;
- // setzte pfad und includiere klassen und funktionen
- $REX['HTDOCS_PATH'] = './';
- include './redaxo/include/master.inc.php';
- // Starte einen neuen Artikel und setzte die aktuelle
- // artikel id. wenn nicht vorhanden, nimm einen
- // speziellen artikel. z.b. fehler seite oder home seite
- if (!isset($article_id) or $article_id == '') $article_id = $REX['START_ARTICLE_ID'];
- $REX_ARTICLE = new rex_article;
- $REX_ARTICLE->setCLang($clang);
- if($REX['SETUP'])
- {
- header('Location: redaxo/index.php');
- exit();
- }elseif ($REX_ARTICLE->setArticleId($article_id))
- {
- echo $REX_ARTICLE->getArticleTemplate();
- }elseif($REX_ARTICLE->setArticleId($REX['NOTFOUND_ARTICLE_ID']))
- {
- echo $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;
- }
- // ----- caching end für output filter
- $CONTENT = ob_get_contents();
- ob_end_clean();
- // ----- inhalt ausgeben
- rex_send_article($REX_ARTICLE, $CONTENT, 'frontend');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement