Subversion Repositories Applications.papyrus

Rev

Rev 580 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 580 Rev 581
Line 1... Line 1...
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
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.4 2005-10-31 17:12:00 ddelon Exp $
24
// CVS : $Id: iw_integrateur.fonct.php,v 1.5 2005-10-31 17:45:41 ddelon 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.4 $ $Date: 2005-10-31 17:12:00 $
36
*@version       $Revision: 1.5 $ $Date: 2005-10-31 17:45:41 $
37
*
37
*
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 92... Line 92...
92
$_SERVER['PHP_SELF']=$server;
92
$_SERVER['PHP_SELF']=$server;
Line 93... Line 93...
93
 
93
 
94
 
94
 
95
// On surcharge la classe Wiki pour en faire ce qu'on en veut
95
// On surcharge la classe Wiki pour en faire ce qu'on en veut
96
Class Wiki_Papyrus extends Wiki {
96
Class Wiki_Papyrus extends Wiki {
97
	
97
 
98
    
98
 
99
	function Header() {
99
	function Header() {
100
		
100
 
101
		return;
101
		return;
102
	}	
102
	}
103
 
103
 
104
 	function Footer() {
104
 	function Footer() {
105
 		echo  "<div class=\"footer\">";
105
 		echo  "<div class=\"footer\">";
106
		echo  $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Cliquez pour modifier cette page.\">Modifier cette page</a> ::\n" : "";
106
		echo  $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Cliquez pour modifier cette page.\">Modifier cette page</a> ::\n" : "";
107
		echo  $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Cliquez pour voir les derni&egrave;res modifications sur cette page.\">".$this->GetPageTime()."</a> ::\n" : "";
107
		echo  $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Cliquez pour voir les derni&egrave;res modifications sur cette page.\">".$this->GetPageTime()."</a> ::\n" : "";
108
		// 	if this page exists
108
		// 	if this page exists
109
		if ($this->page)
109
		if ($this->page)
110
		{
110
		{
111
		// if owner is current user
111
		// if owner is current user
112
			if ($this->UserIsOwner())
112
			if ($this->UserIsOwner())
113
			{
113
			{
114
				echo 
114
				echo
115
				"Propri&eacute;taire&nbsp;: vous :: \n",
115
				"Propri&eacute;taire&nbsp;: vous :: \n",
116
				"<a href=\"",$this->href("acls")."\" title=\"Cliquez pour modifer les permissions de cette page.\">&Eacute;diter permissions</a> :: \n",
116
				"<a href=\"",$this->href("acls")."\" title=\"Cliquez pour modifer les permissions de cette page.\">&Eacute;diter permissions</a> :: \n",
117
				"<a href=\"",$this->href("deletepage")."\">Supprimer</a> :: \n";
117
				"<a href=\"",$this->href("deletepage")."\">Supprimer</a> :: \n";
Line 131... Line 131...
131
			}
131
			}
132
		}
132
		}
133
		echo "Vous &ecirc;tes ";
133
		echo "Vous &ecirc;tes ";
134
		echo $this->Format($this->GetUserName());
134
		echo $this->Format($this->GetUserName());
135
		echo "</div>";
135
		echo "</div>";
136
 		
136
 
137
 	}
137
 	}
138
	
138
 
139
	function FormOpen($method = "", $tag = "", $formMethod = "post") {
139
	function FormOpen($method = "", $tag = "", $formMethod = "post") {
140
	
140
 
141
	// Le diff ne fonctionne pas avec la methode get dans papyrus. On surcharge avec du post. 
141
	// Le diff ne fonctionne pas avec la methode get dans papyrus. On surcharge avec du post.
142
		
142
 
143
		if (($method=="diff") && $formMethod=="get") {
143
		if (($method=="diff") && $formMethod=="get") {
144
			$formMethod="post";	
144
			$formMethod="post";
145
		}
145
		}
146
	
146
 
147
		if ($method=="edit") {
147
		if ($method=="edit") {
148
            $result = "<form id=\"ACEditor\" name=\"ACEditor\" action=\"".$this->href($method, $tag)."\" method=\"".$formMethod."\">\n";
148
            $result = "<form id=\"ACEditor\" name=\"ACEditor\" action=\"".$this->href($method, $tag)."\" method=\"".$formMethod."\">\n";
149
            return $result;
149
            return $result;
150
		}
150
		}
151
		
151
 
152
		return parent::FormOpen($method,$tag, $formMethod);
152
		return parent::FormOpen($method,$tag, $formMethod);
153
		
153
 
154
	}
154
	}
155
	// Detournement des handlers : comme ca on peut faire ce que l'on veut ....
155
	// Detournement des handlers : comme ca on peut faire ce que l'on veut ....
156
	function Method($method) {
156
	function Method($method) {
157
		
157
 
158
		if ($method=="edit") {
158
		if ($method=="edit") {
159
	
159
 
160
			$result='';
160
			$result='';
161
								
161
 
162
			if ($_POST) {
162
			if ($_POST) {
163
				if ($_POST["submit"] == "Sauver")	{
163
				if ($_POST["submit"] == "Sauver")	{
164
				// check for overwriting
164
				// check for overwriting
165
					if ($this->page) {
165
					if ($this->page) {
166
						if ($this->page["id"] != $_POST["previous"]) {
166
						if ($this->page["id"] != $_POST["previous"]) {
Line 175... Line 175...
175
						// test si la nouvelle page est differente de la précédente
175
						// test si la nouvelle page est differente de la précédente
176
						if(rtrim($body)==rtrim($this->page["body"])) {
176
						if(rtrim($body)==rtrim($this->page["body"])) {
177
							$this->SetMessage("Cette page n\'a pas &eacute;t&eacute; enregistr&eacute;e car elle n\'a subi aucune modification.");
177
							$this->SetMessage("Cette page n\'a pas &eacute;t&eacute; enregistr&eacute;e car elle n\'a subi aucune modification.");
178
							$this->Redirect($this->href());
178
							$this->Redirect($this->href());
179
						}
179
						}
180
	
180
 
181
						// add page (revisions)
181
						// add page (revisions)
182
						$this->SavePage($this->tag, $body);
182
						$this->SavePage($this->tag, $body);
183
		
183
 
184
						// now we render it internally so we can write the updated link table.
184
						// now we render it internally so we can write the updated link table.
185
						$this->ClearLinkTable();
185
						$this->ClearLinkTable();
186
						$this->StartLinkTracking();
186
						$this->StartLinkTracking();
187
						$dummy = $this->Header();
187
						$dummy = $this->Header();
188
						$dummy .= $this->Format($body);
188
						$dummy .= $this->Format($body);
189
						$dummy .= $this->Footer();
189
						$dummy .= $this->Footer();
190
						$this->StopLinkTracking();
190
						$this->StopLinkTracking();
191
						$this->WriteLinkTable();
191
						$this->WriteLinkTable();
192
						$this->ClearLinkTable();
192
						$this->ClearLinkTable();
193
	
193
 
194
						// forward
194
						// forward
195
						print "hh";
195
						print "hh";
196
						 debug_print_backtrace();
196
						 debug_print_backtrace();
197
						$this->Redirect($this->href());
197
						$this->Redirect($this->href());
198
					}
198
					}
Line 200... Line 200...
200
			}
200
			}
Line 201... Line 201...
201
 
201
 
202
			// fetch fields
202
			// fetch fields
203
			if (!$previous = $_POST["previous"]) $previous = $this->page["id"];
203
			if (!$previous = $_POST["previous"]) $previous = $this->page["id"];
204
			if (!$body = $_POST["body"]) $body = $this->page["body"];
204
			if (!$body = $_POST["body"]) $body = $this->page["body"];
205
			
205
 
206
			// preview?
206
			// preview?
207
			if ($_POST["submit"] == "Aperçu")
207
			if ($_POST["submit"] == "Aperçu")
208
			{
208
			{
209
				$result .=
209
				$result .=
Line 219... Line 219...
219
					$this->FormClose()."\n";
219
					$this->FormClose()."\n";
220
				return $result;
220
				return $result;
221
			}
221
			}
222
			else
222
			else
223
			{
223
			{
224
					
224
 
225
			    require_once(IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.buttonsBar.php");
225
			    require_once(IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.buttonsBar.php");
226
			    
226
 
227
				$result .=
227
				$result .=
228
				$this->FormOpen("edit").
228
				$this->FormOpen("edit").
229
				"<input type=\"hidden\" name=\"previous\" value=\"".$previous."\" />\n".$ACbuttonsBar.
229
				"<input type=\"hidden\" name=\"previous\" value=\"".$previous."\" />\n".$ACbuttonsBar.
230
				"<textarea onkeydown=\"fKeyDown()\" name=\"body\" cols=\"60\" rows=\"40\" wrap=\"soft\" class=\"edit\">\n".
230
				"<textarea onkeydown=\"fKeyDown()\" name=\"body\" cols=\"60\" rows=\"40\" wrap=\"soft\" class=\"edit\">\n".
231
				htmlspecialchars($body).
231
				htmlspecialchars($body).
232
				"\n</textarea><br />\n".
232
				"\n</textarea><br />\n".
233
				($this->config["preview_before_save"] ? "" : "<input name=\"submit\" type=\"submit\" value=\"Sauver\" accesskey=\"s\" />\n").
233
				($this->config["preview_before_save"] ? "" : "<input name=\"submit\" type=\"submit\" value=\"Sauver\" accesskey=\"s\" />\n").
234
				"<input name=\"submit\" type=\"submit\" value=\"Aper&ccedil;u\" accesskey=\"p\" />\n".
234
				"<input name=\"submit\" type=\"submit\" value=\"Aper&ccedil;u\" accesskey=\"p\" />\n".
235
				"<input type=\"button\" value=\"Annulation\" onclick=\"document.location='".$this->href("")."';\" />\n".
235
				"<input type=\"button\" value=\"Annulation\" onclick=\"document.location='".$this->href("")."';\" />\n".
236
				$this->FormClose();
236
				$this->FormClose();
237
				
237
 
238
				return $result;
238
				return $result;
239
			}
239
			}
240
		
240
 
241
		}
241
		}
242
		else {
242
		else {
243
			return parent::Method($method);
243
			return parent::Method($method);
244
		}
244
		}
245
	}
245
	}
246
	
246
 
247
	
247
 
248
	// Surcharge Format a cause probleme de chemin. 
248
	// Surcharge Format a cause probleme de chemin.
249
	
249
 
250
	function Format($text, $formatter = "wakka") {
250
	function Format($text, $formatter = "wakka") {
251
		return $this->IncludeBuffered(IW_CHEMIN_WIKINI_COURANT_FORMATTER.$formatter.".php", "<i>Impossible de trouver le formateur \"$formatter\"</i>", compact("text")); 
251
		return $this->IncludeBuffered(IW_CHEMIN_WIKINI_COURANT_FORMATTER.$formatter.".php", "<i>Impossible de trouver le formateur \"$formatter\"</i>", compact("text"));
252
	}
252
	}
253
	
253
 
254
	
254
 
255
	// Identification 
255
	// Identification
256
	
256
 
257
	function SetUser($user, $remember=1) {
257
	function SetUser($user, $remember=1) {
258
			$_SESSION["user"]["name"] = ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom))).ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)));;
258
			$_SESSION["user"]["name"] = ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom))).ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)));;
259
			$_SESSION["user"]["password"] = "wikini";
259
			$_SESSION["user"]["password"] = "wikini";
-
 
260
			$_SESSION["user"]["changescount"] = 100;
260
			$this->SetPersistentCookie("name", $user["name"], $remember);
261
			$this->SetPersistentCookie("name", $user["name"], $remember);
261
			$this->SetPersistentCookie("password", $user["password"], $remember);
262
			$this->SetPersistentCookie("password", $user["password"], $remember);
262
			$this->SetPersistentCookie("remember", $remember, $remember);
263
			$this->SetPersistentCookie("remember", $remember, $remember);
263
	}
264
	}
264
	
265
 
265
	
266
 
266
}
267
}
Line 267... Line 268...
267
 
268
 
268
		
269
 
269
		
270
 
270
// Appel du fichier de traduction des textes de l'application Integrateur Wikini
271
// Appel du fichier de traduction des textes de l'application Integrateur Wikini
271
if (file_exists(IW_CHEMIN_LANGUES.'iw_langue_'.IW_I18N.'.inc.php')) {
272
if (file_exists(IW_CHEMIN_LANGUES.'iw_langue_'.IW_I18N.'.inc.php')) {
272
    /** Inclusion du fichier de traduction de l'application Integrateur Wikini. */
273
    /** Inclusion du fichier de traduction de l'application Integrateur Wikini. */
273
    include_once IW_CHEMIN_LANGUES.'iw_langue_'.IW_I18N.'.inc.php';
274
    include_once IW_CHEMIN_LANGUES.'iw_langue_'.IW_I18N.'.inc.php';
Line 276... Line 277...
276
    include_once IW_CHEMIN_LANGUES.'iw_langue_fr.inc.php';
277
    include_once IW_CHEMIN_LANGUES.'iw_langue_fr.inc.php';
277
}
278
}
Line 278... Line 279...
278
 
279
 
279
$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
280
$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
280
/**
281
/**
281
 * 
282
 *
282
 * Fonction afficherPageMenuWikini()
283
 * Fonction afficherPageMenuWikini()
283
 * 
284
 *
284
 * Renvoie le contenu de la page Menu de Wikini
285
 * Renvoie le contenu de la page Menu de Wikini
285
 *
286
 *
286
 * @return string
287
 * @return string
287
 * @access public
288
 * @access public
288
 */
289
 */
289
   
290
 
290
function afficherPageMenuWikini()
291
function afficherPageMenuWikini()
291
{
292
{
292
	
293
 
Line 293... Line 294...
293
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
294
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
294
 
295
 
295
 
296
 
296
  // Autre possibilite : la page speciale MENU 
297
  // Autre possibilite : la page speciale MENU
297
	
298
 
298
	global $wiki;
299
	global $wiki;
299
	global $wikini_config_defaut;
300
	global $wikini_config_defaut;
300
	$sortie='';
301
	$sortie='';
Line 311... Line 312...
311
        list(, $page) = $matches;
312
        list(, $page) = $matches;
312
    }
313
    }
Line 313... Line 314...
313
 
314
 
314
    $server=$_SERVER['PHP_SELF'];
315
    $server=$_SERVER['PHP_SELF'];
315
	$_SERVER['PHP_SELF']="wakka.php";
316
	$_SERVER['PHP_SELF']="wakka.php";
316
	   
317
 
317
    $contenu=$wiki->LoadPage("PageMenu");
318
    $contenu=$wiki->LoadPage("PageMenu");
318
    
319
 
319
    $sortie.=$wiki->Format("----");
320
    $sortie.=$wiki->Format("----");
Line 320... Line 321...
320
	$sortie.=$wiki->Format($contenu['body']);   
321
	$sortie.=$wiki->Format($contenu['body']);
321
 
322
 
322
	$_SERVER['PHP_SELF']=$server;
323
	$_SERVER['PHP_SELF']=$server;
323
	
324
 
324
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
325
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
325
	
326
 
326
	return $sortie;
327
	return $sortie;
327
	
328
 
328
} 
329
}
329
			
330
 
330
	
331
 
331
// +------------------------------------------------------------------------------------------------------+
332
// +------------------------------------------------------------------------------------------------------+
332
// |                                            CORPS du PROGRAMME                                        |
333
// |                                            CORPS du PROGRAMME                                        |
333
// +------------------------------------------------------------------------------------------------------+
334
// +------------------------------------------------------------------------------------------------------+
Line 339... Line 340...
339
*/
340
*/
340
function afficherPageWikini()
341
function afficherPageWikini()
341
{
342
{
Line 342... Line 343...
342
 
343
 
343
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
344
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
344
	
345
 
345
	// Ajout d'une feuille de style externe
346
	// Ajout d'une feuille de style externe
346
	GEN_stockerStyleExterne ('wikini', 'client/integrateur_wikini/presentations/styles/wikini.css') ;
347
	GEN_stockerStyleExterne ('wikini', 'client/integrateur_wikini/presentations/styles/wikini.css') ;
347
	
348
 
348
  // TODO
349
  // TODO
349
  // Changement du niveau d'erreur pour éviter les Notices PHP dues à Wikini
350
  // Changement du niveau d'erreur pour éviter les Notices PHP dues à Wikini
350
   	
351
 
351
   
352
 
352
	global $wiki;
353
	global $wiki;
353
	global $wikini_config_defaut;
354
	global $wikini_config_defaut;
354
	$sortie='';
355
	$sortie='';
355
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
356
    $wakkaConfig = $GLOBALS['wikini_config_defaut'];
Line 356... Line 357...
356
    $wiki  = new Wiki_Papyrus($wakkaConfig);
357
    $wiki  = new Wiki_Papyrus($wakkaConfig);
357
 
358
 
358
 
359
 
359
	if  ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {		
360
	if  ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
360
		if (!isset($_COOKIE["name"])) {
361
		if (!isset($_SESSION["user"]) || ($_SESSION["user"]=="")) {
361
			$wiki->SetUser('');
362
			$wiki->SetUser('');
362
		}
363
		}
363
	}
364
	}
364
	else {
365
	else {
365
		$wiki->LogoutUser();
366
		$wiki->LogoutUser();
366
	}
367
	}
367
	
368
 
368
	// Gestion de la variable de session "linktracking"
369
	// Gestion de la variable de session "linktracking"
Line 377... Line 378...
377
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
378
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
378
        list(, $page, $method) = $matches;
379
        list(, $page, $method) = $matches;
379
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
380
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
380
        list(, $page) = $matches;
381
        list(, $page) = $matches;
381
    }
382
    }
382
    
383
 
383
    // Vérification de la méthode d'affichage employée!
384
    // Vérification de la méthode d'affichage employée!
384
    if ( ! isset( $method ) ) {
385
    if ( ! isset( $method ) ) {
385
        $method = '';
386
        $method = '';
386
    }
387
    }
387
		
388
 
388
    //Récupération du contenu de la page Wikini
389
    //Récupération du contenu de la page Wikini
389
    
390
 
390
    ob_start();
391
    ob_start();
391
    
392
 
392
    $server=$_SERVER['PHP_SELF'];
393
    $server=$_SERVER['PHP_SELF'];
393
	$_SERVER['PHP_SELF']="wakka.php";
394
	$_SERVER['PHP_SELF']="wakka.php";
394
    
395
 
395
	$wiki->Run($page, $method);
396
	$wiki->Run($page, $method);
396
    
397
 
397
    $_SERVER['PHP_SELF']=$server;
398
    $_SERVER['PHP_SELF']=$server;
398
    
399
 
399
    $sortie.= ob_get_contents();
400
    $sortie.= ob_get_contents();
400
    ob_end_clean();
401
    ob_end_clean();
Line 401... Line 402...
401
 
402
 
Line 402... Line 403...
402
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
403
	$GLOBALS['_PAPYRUS_']['erreur']->setActive(1);
403
 
404
 
404
	//return remplacerEntiteHTLM("<div id=\"wikini_page\" onLoad=\"thisForm=document.ACEditor;\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");
405
	//return remplacerEntiteHTLM("<div id=\"wikini_page\" onLoad=\"thisForm=document.ACEditor;\" ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");
405
	return remplacerEntiteHTLM("<script type=\"text/javascript\" src=\"".IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.js\"></script><div id=\"wikini_page\"  ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n"); 
406
	return remplacerEntiteHTLM("<script type=\"text/javascript\" src=\"".IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.js\"></script><div id=\"wikini_page\"  ondblclick=\"document.location='".$wiki->href("edit")."';"."\">"."\n".$sortie.'</div>'."\n");
Line 406... Line 407...
406
		
407
 
407
}
408
}