Subversion Repositories Applications.papyrus

Rev

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

Rev 443 Rev 444
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: integrateur_wikini.php,v 1.7 2005-09-20 17:01:22 ddelon Exp $
24
// CVS : $Id: integrateur_wikini.php,v 1.8 2005-09-20 20:25:39 ddelon Exp $
25
/**
25
/**
26
* Integrateur de page Wikini
26
* 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        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
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.7 $ $Date: 2005-09-20 17:01:22 $
36
*@version       $Revision: 1.8 $ $Date: 2005-09-20 20:25:39 $
37
*
37
*
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line -... Line 41...
-
 
41
 
-
 
42
 
41
 
43
 
-
 
44
 
-
 
45
/** Inclusion de la classe PEAR de gestion des URL. */
-
 
46
 
-
 
47
 
42
 
48
$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
Line 43... Line 49...
43
/** Inclusion de la classe PEAR de gestion des URL. */
49
 
44
require_once 'Net/URL.php';
50
require_once 'Net/URL.php';
45
 
51
 
Line 59... Line 65...
59
 
65
 
60
global $wikini_config_defaut;
66
global $wikini_config_defaut;
61
global $wiki;
67
global $wiki;
Line 62... Line -...
62
global $wiki_p;
-
 
63
 
68
global $wiki_p;
Line 64... Line 69...
64
 
69
 
65
// $_REQUEST['wiki'] est obligatoire, car wakka.php envoie un redirect si non detecté, avec perte de tout l'environnement !
70
// $_REQUEST['wiki'] est obligatoire, car wakka.php envoie un redirect si non detecté, avec perte de tout l'environnement !
66
 
71
 
Line 231... Line 236...
231
} else {
236
} else {
232
    /** Inclusion du fichier de traduction fr par défaut. */
237
    /** Inclusion du fichier de traduction fr par défaut. */
233
    include_once IW_CHEMIN_LANGUES.'iw_langue_fr.inc.php';
238
    include_once IW_CHEMIN_LANGUES.'iw_langue_fr.inc.php';
234
}
239
}
Line 235... Line -...
235
 
-
 
-
 
240
 
236
 
241
$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
237
/**
242
/**
238
 * Renvoie le menu général de l'integrateur Wikini : derniers  changement etc.
243
 * Renvoie le menu général de l'integrateur Wikini : derniers  changement etc.
239
 *
244
 *
240
 * @return string
245
 * @return string
241
 * @access public
246
 * @access public
Line 242... Line 247...
242
 */
247
 */
243
   
248
   
Line -... Line 249...
-
 
249
function afficherContenuMenu()
-
 
250
{
244
function afficherContenuMenu()
251
	
245
{
252
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
246
	
253
 
Line 247... Line 254...
247
  // TODO
254
  // TODO
Line 281... Line 288...
281
    $sortie.=$wiki->Format("----");
288
    $sortie.=$wiki->Format("----");
282
	$sortie.=$wiki->Format($contenu['body']);   
289
	$sortie.=$wiki->Format($contenu['body']);   
Line 283... Line 290...
283
 
290
 
Line 284... Line -...
284
	$_SERVER['PHP_SELF']=$server;
-
 
285
	
-
 
286
	// TODO
291
	$_SERVER['PHP_SELF']=$server;
287
	// Retour au niveau d'erreur définit dans le fichier de config de Papyrus
292
	
288
    // error_reporting(GEN_DEBOGAGE_NIVEAU);
293
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
Line 289... Line 294...
289
    
294
	
Line 302... Line 307...
302
* @return  string  du code XHTML correspondant au contenu renvoyé par l'application.
307
* @return  string  du code XHTML correspondant au contenu renvoyé par l'application.
303
*/
308
*/
304
function afficherContenuCorps()
309
function afficherContenuCorps()
305
{
310
{
Line -... Line 311...
-
 
311
 
-
 
312
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
306
 
313
	
307
	// Ajout d'une feuille de style externe
314
	// Ajout d'une feuille de style externe
Line 308... Line 315...
308
	GEN_stockerStyleExterne ('wikini', 'client/integrateur_wikini/presentations/styles/wikini.css') ;
315
	GEN_stockerStyleExterne ('wikini', 'client/integrateur_wikini/presentations/styles/wikini.css') ;
309
	
316
	
310
  // TODO
-
 
311
  // Changement du niveau d'erreur pour éviter les Notices PHP dues à Wikini
317
  // TODO
-
 
318
  // Changement du niveau d'erreur pour éviter les Notices PHP dues à Wikini
312
  //  error_reporting(E_PARSE);
319
   	
313
	
320
   
314
	global $wiki;
321
	global $wiki;
315
	global $wikini_config_defaut;
322
	global $wikini_config_defaut;
316
	$sortie='';
323
	$sortie='';
Line 350... Line 357...
350
    $_SERVER['PHP_SELF']=$server;
357
    $_SERVER['PHP_SELF']=$server;
Line 351... Line 358...
351
    
358
    
352
    $sortie.= ob_get_contents();
359
    $sortie.= ob_get_contents();
Line 353... Line -...
353
    ob_end_clean();
-
 
354
 
-
 
355
	// TODO
360
    ob_end_clean();
356
	// Retour au niveau d'erreur définit dans le fichier de config de Papyrus
361
 
357
    // error_reporting(GEN_DEBOGAGE_NIVEAU);
362
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
358
    
363
 
Line 359... Line 364...
359
	//return remplacerEntiteHTLM("<div id=\"wikini_page\" onLoad=\"thisForm=document.ACEditor;\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");
364
	//return remplacerEntiteHTLM("<div id=\"wikini_page\" onLoad=\"thisForm=document.ACEditor;\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");