Last change
on this file since 47977 was
47977,
checked in by cam.lafit@…, 10 years ago
|
Pouvoir mettre Thelia dans un repertoire dédié
- Une nouvelle constante _RACINE_THELIA sert à indiquer la racine thelia
- par défaut on conserve le comportement actuel : "./"
- par exemple si on a le choisi le repertoire "thelia", dans
config/mes_options.php sera indiqué define('_RACINE_THELIA','thelia/');
- On passage on indique à php que ce nouveau repertoire sera à considérer lors des inclusions
- autrement le moteur thelia ne pourra pas charger les bonnes dépendences
|
File size:
872 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /* Repertoire de l'admin THELIA */ |
---|
4 | define('_THELIA_ADMIN','admin'); //obsolete cette variable est désormais définie dans le formulaire CFG du plugin |
---|
5 | |
---|
6 | if (!defined('_DIR_PLUGIN_SPIP_THELIA')){ |
---|
7 | $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); |
---|
8 | define('_DIR_PLUGIN_SPIP_THELIA',(_DIR_PLUGINS.end($p))); |
---|
9 | } |
---|
10 | |
---|
11 | /* Chemin relatif du repertoire contenant Thelia */ |
---|
12 | /* Par défaut on Thelia est à la racine du site */ |
---|
13 | if (!defined('_RACINE_THELIA')){ |
---|
14 | define('_RACINE_THELIA','./'); |
---|
15 | } |
---|
16 | |
---|
17 | $thelia_path = ini_get("include_path").":"._RACINE_THELIA; |
---|
18 | ini_set('include_path', $thelia_path); |
---|
19 | |
---|
20 | include_spip('base/spip_thelia_produits_associes'); |
---|
21 | $GLOBALS['liste_des_authentifications']['thelia'] = 'thelia'; |
---|
22 | $GLOBALS['thelia_statut_nouvel_auteur'] = lire_config("spip_thelia/statutclients_spip_thelia", "6forum"); |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.