Advertisement
Guest User

Untitled

a guest
Nov 11th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.96 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. /**
  5.  *
  6.  * @package redaxo4
  7.  * @version $Id: index.php,v 1.2 2008/02/26 18:33:43 kills Exp $
  8.  */
  9.  
  10. // ----- ob caching start für output filter
  11. ob_start();
  12. ob_implicit_flush(0);
  13.  
  14. // ----------------- MAGIC QUOTES CHECK && REGISTER GLOBALS
  15. include './redaxo/include/functions/function_rex_mquotes.inc.php';
  16.  
  17. // --------------------------- ini settings
  18.  
  19. // Setzten des arg_separators, falls Sessions verwendet werden,
  20. // um XHTML valide Links zu produzieren
  21. @ini_set('arg_separator.input', '&amp;');
  22. @ini_set('arg_separator.output', '&amp;');
  23.  
  24. // --------------------------- globals
  25.  
  26. unset($REX);
  27.  
  28. // Flag ob Inhalte mit Redaxo aufgerufen oder
  29. // von der Webseite aus
  30. // Kann wichtig für die Darstellung sein
  31. // Sollte immer false bleiben
  32.  
  33. $REX['REDAXO'] = false;
  34.  
  35. // Wenn $REX[GG] = true; dann wird der
  36. // Content aus den redaxo/include/generated/
  37. // genommen
  38.  
  39. $REX['GG'] = true;
  40.  
  41. // setzte pfad und includiere klassen und funktionen
  42. $REX['HTDOCS_PATH'] = './';
  43. include './redaxo/include/master.inc.php';
  44.  
  45. // Starte einen neuen Artikel und setzte die aktuelle
  46. // artikel id. wenn nicht vorhanden, nimm einen
  47. // speziellen artikel. z.b. fehler seite oder home seite
  48. if (!isset($article_id) or $article_id == '') $article_id = $REX['START_ARTICLE_ID'];
  49.  
  50. $REX_ARTICLE = new rex_article;
  51. $REX_ARTICLE->setCLang($clang);
  52.  
  53. if($REX['SETUP'])
  54. {
  55.     header('Location: redaxo/index.php');
  56.     exit();
  57. }elseif ($REX_ARTICLE->setArticleId($article_id))
  58. {
  59.   echo $REX_ARTICLE->getArticleTemplate();
  60. }elseif($REX_ARTICLE->setArticleId($REX['NOTFOUND_ARTICLE_ID']))
  61. {
  62.   echo $REX_ARTICLE->getArticleTemplate();
  63. }else
  64. {
  65.   echo 'Kein Startartikel selektiert / No starting Article selected. Please click here to enter <a href="redaxo/index.php">redaxo</a>';
  66.   $REX['STATS'] = 0;
  67. }
  68.  
  69. // ----- caching end für output filter
  70. $CONTENT = ob_get_contents();
  71. ob_end_clean();
  72.  
  73. // ----- inhalt ausgeben
  74. rex_send_article($REX_ARTICLE, $CONTENT, 'frontend');
  75.  
  76. ?>
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement