/
index.php
73 lines (56 loc) · 1.7 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
*
* @package redaxo4
* @version svn:$Id$
*/
// ----- ob caching start für output filter
ob_start();
ob_implicit_flush(0);
// ----------------- MAGIC QUOTES CHECK
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';
// ----- INCLUDE ADDONS
include_once $REX['INCLUDE_PATH'].'/addons.inc.php';
if($REX['SETUP'])
{
header('Location:redaxo/');
exit();
}
$REX['ARTICLE'] = new rex_article;
$REX['ARTICLE']->setCLang($REX['CUR_CLANG']);
if($REX['SETUP'])
{
header('Location: redaxo/index.php');
exit();
}elseif ($REX["ARTICLE"]->setArticleId($REX['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');