Subversion Repositories Applications.papyrus

Rev

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

Rev 690 Rev 832
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.14 2006-01-09 21:58:16 ddelon Exp $
24
// CVS : $Id: iw_integrateur.fonct.php,v 1.15 2006-04-28 12:41:26 florian 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.14 $ $Date: 2006-01-09 21:58:16 $
36
*@version       $Revision: 1.15 $ $Date: 2006-04-28 12:41:26 $
37
*
37
*
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTETE du PROGRAMME                                       |
39
// |                                            ENTETE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
Line 44... Line 44...
44
 
44
 
Line 45... Line 45...
45
/** Inclusion de la classe PEAR de gestion des URL. */
45
/** Inclusion de la classe PEAR de gestion des URL. */
Line 46... Line 46...
46
 
46
 
Line 47... Line 47...
47
$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
47
$GLOBALS['_PAPYRUS_']['erreur']->setActive(0);
48
 
48
 
49
require_once 'Net/URL.php';
49
require_once PAP_CHEMIN_API_PEAR.'Net/URL.php';
Line 50... Line 50...
50
 
50
 
Line 51... Line 51...
51
// TODO : un seul fichier de configuration ?
51
// TODO : un seul fichier de configuration ?
52
/** Inclusion du fichier de configuration de cette application.*/
52
/** Inclusion du fichier de configuration de cette application.*/
Line 250... Line 250...
250
					$this->FormClose()."\n";
250
					$this->FormClose()."\n";
251
				return $result;
251
				return $result;
252
			}
252
			}
253
			else
253
			else
254
			{
254
			{
255
 
-
 
-
 
255
				$ACbuttonsBar='';
256
			    require_once(IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.buttonsBar.php");
256
			    require_once(IW_CHEMIN_BIBLIO_ACEDITOR."ACeditor.buttonsBar.php");
Line 257... Line 257...
257
 
257
 
258
				$result .=
258
				$result .=
259
				$this->FormOpen("edit").
259
				$this->FormOpen("edit").
Line 361... Line 361...
361
 
361
 
362
    // Suppression des slash.
362
    // Suppression des slash.
Line 363... Line 363...
363
    $_REQUEST['wiki'] = preg_replace("/^\//", '',  $_REQUEST['wiki']);
363
    $_REQUEST['wiki'] = preg_replace("/^\//", '',  $_REQUEST['wiki']);
-
 
364
 
364
 
365
    // split into page/method
365
    // split into page/method
366
    $matches='';
366
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
367
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
367
        list(, $page, $method) = $matches;
368
        list(, $page, $method) = $matches;
368
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
369
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
Line 431... Line 432...
431
 
432
 
432
    // Suppression des slash.
433
    // Suppression des slash.
Line 433... Line 434...
433
    $_REQUEST['wiki'] = preg_replace("/^\//", '',  $_REQUEST['wiki']);
434
    $_REQUEST['wiki'] = preg_replace("/^\//", '',  $_REQUEST['wiki']);
-
 
435
 
434
 
436
    // split into page/method
435
    // split into page/method
437
    $matches='';
436
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
438
    if ( preg_match( "#^(.+?)/(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
437
        list(, $page, $method) = $matches;
439
        list(, $page, $method) = $matches;
438
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {
440
    } else if ( preg_match( "#^(.*)$#",  $_REQUEST['wiki'], $matches ) ) {