Subversion Repositories Applications.papyrus

Rev

Rev 860 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 860 Rev 898
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: iw_integrateur.fonct.php,v 1.16 2006-06-07 22:40:36 ddelon Exp $
24
// CVS : $Id: iw_integrateur.fonct.php,v 1.17 2006-07-04 09:40:49 alexandre_tb Exp $
25
/**
25
/**
26
* Fonctions de l'integrateur de page Wikini
26
* Fonctions de l'integrateur de page Wikini
27
*
27
*
28
* Application permettant d'intégrer des pages wikini dans Papyrus.
28
* Application permettant d'intégrer des pages wikini dans Papyrus.
29
*
29
*
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        David Delon <david.delon@clapas.net>
32
*@author        David Delon <david.delon@clapas.net>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 2000-2004
35
*@copyright     Tela-Botanica 2000-2004
36
*@version       $Revision: 1.16 $ $Date: 2006-06-07 22:40:36 $
36
*@version       $Revision: 1.17 $ $Date: 2006-07-04 09:40:49 $
37
*
37
*
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 79... Line 79...
79
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
79
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus
80
// TODO : verifier bon dimensionnement des champs et clef de la table papyrus_wiki
80
// TODO : verifier bon dimensionnement des champs et clef de la table papyrus_wiki
81
// TODO : creation des tables par defaut à l'installation d'un wikini
81
// TODO : creation des tables par defaut à l'installation d'un wikini
82
// TODO : Fusion des fichiers de configuration ?
82
// TODO : Fusion des fichiers de configuration ?
Line -... Line 83...
-
 
83
 
-
 
84
//echo IW_CHEMIN_WIKINI_COURANT.'wakka.php';
-
 
85
if (!file_exists(IW_CHEMIN_WIKINI_COURANT.'wakka.php')) {
-
 
86
	if (GEN_DEBOGAGE) {
-
 
87
            $GLOBALS['_GEN_commun']['debogage_info'] .=
-
 
88
                'ERREUR Papyrus : le fichier '.IW_CHEMIN_WIKINI_COURANT.'wakka.php n\'existe pas.<br />'.
-
 
89
                'Identifiant : '. $id_fichier .'<br />'.
-
 
90
                'Ligne n° : '. __LINE__ .'<br />'.
-
 
91
                'Fichier : '. __FILE__;
-
 
92
    }
83
 
93
    return  ;
84
 
94
}
85
ob_start();
-
 
86
 
95
ob_start();
87
include_once IW_CHEMIN_WIKINI_COURANT.'wakka.php';
96
include_once IW_CHEMIN_WIKINI_COURANT.'wakka.php';
88
include_once(IW_CHEMIN_WIKINI_COURANT."/formatters/tableaux.php");
97
include_once(IW_CHEMIN_WIKINI_COURANT."/formatters/tableaux.php");
Line 89... Line 98...
89
include_once(IW_CHEMIN_WIKINI_COURANT."/actions/attach.class.php");
98
include_once(IW_CHEMIN_WIKINI_COURANT."/actions/attach.class.php");
Line 355... Line 364...
355
 
364
 
356
	global $wiki;
365
	global $wiki;
357
	global $wikini_config_defaut;
366
	global $wikini_config_defaut;
358
	$sortie='';
367
	$sortie='';
-
 
368
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
359
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
369
    if (!class_exists('Wiki_Papyrus')) return ;
Line 360... Line 370...
360
    $wiki  = new Wiki_Papyrus($wakkaConfig);
370
    $wiki  = new Wiki_Papyrus($wakkaConfig);
361
 
371
 
Line 407... Line 417...
407
 
417
 
408
	global $wiki;
418
	global $wiki;
409
	global $wikini_config_defaut;
419
	global $wikini_config_defaut;
410
	$sortie='';
420
	$sortie='';
-
 
421
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
411
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
422
    if (!class_exists ('Wiki_Papyrus')) return ; 
Line 412... Line 423...
412
    $wiki  = new Wiki_Papyrus($wakkaConfig);
423
    $wiki  = new Wiki_Papyrus($wakkaConfig);
413
 
424
 
414
	if  ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
425
	if  ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {