Exemple #1
0
 /**
  * Méthode qui se charger de créer le Singleton plxFeed
  *
  * @return	objet			retourne une instance de la classe plxFeed
  * @author	Stephane F
  **/
 public static function getInstance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new plxFeed(path('XMLFILE_PARAMETERS'));
     }
     return self::$instance;
 }
Exemple #2
0
#
# This file is part of PluXml : http://pluxml.org
#
# Copyright (c) 2010 Stephane Ferrari and contributors
# Copyright (c) 2008-2009 Florent MONTHEL and contributors
# Copyright (c) 2006-2008 Anthony GUERIN
# Licensed under the GPL license.
# See http://www.gnu.org/licenses/gpl.html
#
# ------------------- END LICENSE BLOCK -------------------
# Configuration avançée #
define('PLX_ROOT', './');
define('PLX_CORE', PLX_ROOT . 'core/');
define('PLX_CONF', PLX_ROOT . 'data/configuration/parametres.xml');
# On verifie que PluXml est installé
if (!file_exists(PLX_CONF)) {
    header('Location: ' . PLX_ROOT . 'install.php');
    exit;
}
# On inclut les librairies nécessaires
include_once PLX_ROOT . 'config.php';
include_once PLX_CORE . 'lib/class.plx.date.php';
include_once PLX_CORE . 'lib/class.plx.utils.php';
include_once PLX_CORE . 'lib/class.plx.glob.php';
include_once PLX_CORE . 'lib/class.plx.record.php';
include_once PLX_CORE . 'lib/class.plx.motor.php';
include_once PLX_CORE . 'lib/class.plx.feed.php';
# Creation de l'objet principal et lancement du traitement
$plxFeed = new plxFeed(PLX_CONF);
$plxFeed->fprechauffage();
$plxFeed->fdemarrage();
Exemple #3
0
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();
eval($plxFeed->plxPlugins->callHook('FeedBegin'));
# 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;