Changeset 47977 in spip-zone
- Timestamp:
- May 21, 2011, 10:09:54 AM (10 years ago)
- Location:
- _plugins_/plugin-thelia
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/plugin-thelia/auth/thelia.php
r47334 r47977 24 24 25 25 spip_log("thelia2 $login " . ($pass ? "mdp fourni" : "mdp absent"). ($md5pass ? "md5mdp fourni" : "md5mdp absent")); 26 if (!file_exists( "fonctions/moteur.php") ) {26 if (!file_exists(_RACINE_THELIA."fonctions/moteur.php") ) { 27 27 spip_log("fichier thelia trouve"); 28 28 return array(); … … 36 36 $res =" foo "; 37 37 ob_start(); 38 include_once( 'fonctions/moteur.php');38 include_once(_RACINE_THELIA.'fonctions/moteur.php'); 39 39 ob_end_clean(); 40 40 //include_once('classes/Client.class.php'); -
_plugins_/plugin-thelia/spip_thelia_fonct.php
r47928 r47977 1 1 <?php 2 2 3 include_spip("inc/charsets") ; 3 4 function spip_thelia_supprimer_balises_thelia($texte) { … … 20 21 $page = ""; 21 22 22 include_once("../ classes/Navigation.class.php");23 include_once("../"._RACINE_THELIA."/classes/Navigation.class.php"); 23 24 24 25 ini_set('arg_separator.output', '&'); … … 51 52 echo ("erreur : la fonction chemin() dans ecrire/inc/utils.php doit être mise en commentaire !"); 52 53 } 53 if (!file_exists("../ fonctions/moteur.php")&&($_REQUEST['exec']!=""))54 if (!file_exists("../"._RACINE_THELIA."fonctions/moteur.php")&&($_REQUEST['exec']!="")) 54 55 echo ("erreur : thélia introuvable, vérifiez que les sous-répertoires de thélia et spip sont dans le même répertoire."); 55 56 if (!function_exists('lire_config')) … … 107 108 $page = ""; 108 109 109 110 include_once("classes/Navigation.class.php"); 110 include_once(_RACINE_THELIA."classes/Navigation.class.php"); 111 111 112 112 ini_set('arg_separator.output', '&'); … … 148 148 149 149 //si version >= 1.3.4 : plus de surcharge dans le plugin, on appelle directement le moteur de Th�lia 150 include_once( "fonctions/moteur.php");150 include_once(_RACINE_THELIA."fonctions/moteur.php"); 151 151 152 152 //Connexion à SPIP à la création du compte Thelia … … 304 304 ob_start(); 305 305 chdir('..'); 306 include_once( "fonctions/moteur.php");306 include_once(_RACINE_THELIA."fonctions/moteur.php"); 307 307 chdir('ecrire'); 308 308 $texte = ob_get_contents(); … … 391 391 ob_start(); 392 392 chdir('..'); 393 include_once( "fonctions/moteur.php");393 include_once(_RACINE_THELIA."fonctions/moteur.php"); 394 394 chdir('ecrire'); 395 395 $texte = ob_get_contents(); -
_plugins_/plugin-thelia/spip_thelia_mes_options.php
r40278 r47977 8 8 define('_DIR_PLUGIN_SPIP_THELIA',(_DIR_PLUGINS.end($p))); 9 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 10 20 include_spip('base/spip_thelia_produits_associes'); 11 21 $GLOBALS['liste_des_authentifications']['thelia'] = 'thelia';
Note: See TracChangeset
for help on using the changeset viewer.