Exemplo n.º 1
0
// chargement des plugins : doit arriver en dernier
// car dans les plugins on peut inclure inc-version
// qui ne sera pas execute car _ECRIRE_INC_VERSION est defini
// donc il faut avoir tout fini ici avant de charger les plugins
if (@is_readable(_CACHE_PLUGINS_OPT) and @is_readable(_CACHE_PLUGINS_PATH)) {
    // chargement optimise precompile
    include_once _CACHE_PLUGINS_OPT;
} else {
    spip_initialisation_suite();
    include_spip('inc/plugin');
    // generer les fichiers php precompiles
    // de chargement des plugins et des pipelines
    actualise_plugins_actifs();
}
// Initialisations non critiques surchargeables par les plugins
spip_initialisation_suite();
if (!defined('_LOG_FILTRE_GRAVITE')) {
    /** niveau maxi d'enregistrement des logs */
    define('_LOG_FILTRE_GRAVITE', _LOG_INFO_IMPORTANTE);
}
if (!defined('_OUTILS_DEVELOPPEURS')) {
    /** Activer des outils pour développeurs ? */
    define('_OUTILS_DEVELOPPEURS', false);
}
// charger systematiquement inc/autoriser dans l'espace restreint
if (test_espace_prive()) {
    include_spip('inc/autoriser');
}
//
// Installer Spip si pas installe... sauf si justement on est en train
//
Exemplo n.º 2
0
/**
 * Fonction d'initialisation groupée pour compatibilité ascendante
 *
 * @param string $pi Répertoire permanent inaccessible
 * @param string $pa Répertoire permanent accessible
 * @param string $ti Répertoire temporaire inaccessible
 * @param string $ta Répertoire temporaire accessible
 */
function spip_initialisation($pi = NULL, $pa = NULL, $ti = NULL, $ta = NULL)
{
    spip_initialisation_core($pi, $pa, $ti, $ta);
    spip_initialisation_suite();
}
Exemplo n.º 3
0
Arquivo: utils.php Projeto: spip/SPIP
/**
 * Fonction d'initialisation groupée pour compatibilité ascendante
 *
 * @param string $pi Répertoire permanent inaccessible
 * @param string $pa Répertoire permanent accessible
 * @param string $ti Répertoire temporaire inaccessible
 * @param string $ta Répertoire temporaire accessible
 */
function spip_initialisation($pi = null, $pa = null, $ti = null, $ta = null)
{
    spip_initialisation_core($pi, $pa, $ti, $ta);
    spip_initialisation_suite();
}