forked from pluxml/PluXml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.php
51 lines (39 loc) · 1.28 KB
/
feed.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
<?php
define('PLX_ROOT', './');
define('PLX_CORE', PLX_ROOT.'core/');
include PLX_ROOT.'config.php';
include PLX_CORE.'lib/config.php';
define('PLX_FEED', true);
# On verifie que PluXml est installé
if(!file_exists(path('XMLFILE_PARAMETERS'))) {
header('Location: '.PLX_ROOT.'install.php');
exit;
}
# On inclut les librairies nécessaires
include PLX_CORE.'lib/class.plx.date.php';
include PLX_CORE.'lib/class.plx.glob.php';
include PLX_CORE.'lib/class.plx.utils.php';
include PLX_CORE.'lib/class.plx.record.php';
include PLX_CORE.'lib/class.plx.motor.php';
include PLX_CORE.'lib/class.plx.feed.php';
include PLX_CORE.'lib/class.plx.plugins.php';
# Creation de l'objet principal et lancement du traitement
$plxFeed = plxFeed::getInstance();
# Détermination de la langue à utiliser (modifiable par le hook : FeedBegin)
$lang = $plxFeed->aConf['default_lang'];
eval($plxFeed->plxPlugins->callHook('FeedBegin'));
# Chargement du fichier de langue du core de PluXml
loadLang(PLX_CORE.'lang/'.$lang.'/core.php');
# On démarre la bufferisation
ob_start();
ob_implicit_flush(0);
$plxFeed->fprechauffage();
$plxFeed->fdemarrage();
# Récuperation de la bufférisation
$output = ob_get_clean();
# Hook Plugins
eval($plxFeed->plxPlugins->callHook('FeedEnd'));
# Restitution écran
echo $output;
exit;
?>