IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques & Frameworks Discussion :

Gestion des uploads [CKEditor]


Sujet :

Bibliothèques & Frameworks

  1. #1
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut Gestion des uploads
    Bonjour à tous
    J'ai intégrer FCKeditor avec plus ou moin de succès, en effet l'édition de texte marche bien mais la gestion des uploads (pour l'integration d'image ou d'anim flash) ne marche pas

    Alors, mon site est architecturé comme ceci
    /www/dev/BACKOFFICE/MesScrypt.php
    /www/dev/FRONTOFFICE/MesScrypt.php

    le module est dans
    /www/dev/BACKOFFICE/FCKeditor/

    j'utilise FCKeditor dans un scrypt situé dans
    /www/dev/BACKOFFICE/
    je l'appel comme ceci :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    require('FCKeditor/fckeditor.php');
    $test = new FCKeditor('texte');
    $test->Value = $val["texte"];
    $test->create();
    j'ai créé un repertoire en mod 777
    /www/dev/BACKOFFICE/FCKupload/

    et modifier
    /www/dev/BACKOFFICE/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
    en faisant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    $Config['Enabled'] = true ;
    $Config['UserFilesPath'] = '/FCKupload/' ;
    $Config['UserFilesAbsolutePath'] = '/www/dev/BACKOFFICE/FCKupload/' ;
    ainsi que
    /www/dev/BACKOFFICE/FCKeditor/editor/filemanager/upload/php/config.php
    en faisant :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    $Config['Enabled'] = true ;
    $Config['UserFilesPath'] = '/FCKupload/' ;
    voilà, quand j'upload un fichier dans le module de FCKeditor j'ai un temps de chargement qui n'en fini pas, qlq soit la taille du fichier, et je ne sais plus quoi faire

  2. #2
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    bon pour commencer le mieux est de vérifier les chemins
    si tu rempli a la main ton dossier, quand tu ouvres fckeditor, les vois tu?

  3. #3
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    non, voici un screen de l'interface FCKeditor(avec les bouton sur lesquel j'ai clické entouré en rouge).
    Je ne sais pas du tout ou se situe sur le serv le repertoire /, le bouton "Create New Folder" ne fait rien au niveau de l'interface et je ne retrouve pas non plus de nouveau dossier en fouinant sur le serv

    PS : maintenant vous savez tout, alors merci de ne pas me pourrir mon serveur j'ai déjà ma dose de pb

  4. #4
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    Bon apparement c'est bien un pb de location
    s'il ne crée rien c'est car il ne trouve quoi que normalement si mes souvenirs sont bons il crée les dossiers lui meme

    essaye avec ca
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    $Config['Enabled'] = true ; 
    $Config['UserFilesPath'] = '../FCKupload/' ;

  5. #5
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    dans les 2 fichiers de config ?
    /www/dev/BACKOFFICE/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php
    /www/dev/BACKOFFICE/FCKeditor/editor/filemanager/upload/php/config.php

    EDIT : g modif les 2fichiers, pareil :s

  6. #6
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    Petites questions
    tu aurais pas essayer d'uploader par hasard "Nénuphars.jpg"?
    ton serveur est bien sous unix?

    et pense aussi a proteger l'acces a tes dossiers.

  7. #7
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    j'ai créé :
    /www/FCKupload
    /www/dev/FCKupload
    /www/dev/BACKOFFICE/FCKupload
    /www/dev/BACKOFFICE/FCKeditor/FCKupload

    et je vois tjr rien, ce module marche ?

    sois j'ai loupé un paramètre, soit le repertoire par défaut se trouve plus profond dans l'archive de FCK

  8. #8
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    Citation Envoyé par Bebel
    Petites questions
    tu aurais pas essayer d'uploader par hasard "Nénuphars.jpg"?
    non, celui là c'est un que jai posé via mon client ftp comme tu me lavais demandé
    Citation Envoyé par Bebel
    ton serveur est bien sous unix?
    oui oui
    Citation Envoyé par Bebel
    et pense aussi a proteger l'acces a tes dossiers.
    je laisse en full access en phase de dev/test, pour être sur que c'est pas les droits qui me foute le b...el

  9. #9
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    J'avouerais que je jamais essaye sous linux,
    une chose sur c'est que sous windows en indiquant un chemin tel que
    "c:/monsite/mesdoc" cela fonctionne parfaitement.

  10. #10
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut

    bon et ben merci quand même de d'être penché sur le pb
    lundi j'essayerai de faire tournée mon site en local via EasyPHP histoire d'être sur que c'est juste un pb de chemin ou de droit

  11. #11
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    Ayè je viens de faire tounée mon site en local sous easyPhp en modifiant
    BACKOFFICE/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    $Config['Enabled'] = true ; 
    $Config['UserFilesPath'] = 'FCKupload' ; 
    $Config['UserFilesAbsolutePath'] = 'E:\\EasyPHP1-8\\www\\pharmado\\BACKOFFICE\\FCKupload' ;
    et BACKOFFICE/FCKeditor/editor/filemanager/upload/php/config.php :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    $Config['Enabled'] = true ; 
    $Config['UserFilesPath'] = 'FCKupload' ;
    mais ça marche tjr pas

  12. #12
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    Quand tu regarde dans connector.php
    tu dois avoir une ligne qui ressemble a ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    if( isset( $Config['UserFilesPath'] ) )
    	$GLOBALS["UserFilesPath"] = GetRootPath() . $Config['UserFilesPath'] ;
    elseif ( isset( $_GET['ServerPath'] ) )
    	$GLOBALS["UserFilesPath"] = GetRootPath() . $_GET['ServerPath'] ;
    else
    	$GLOBALS["UserFilesPath"] = GetRootPath() . '/UserFiles/' ;
    if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
    	$GLOBALS["UserFilesPath"] .= '/' ;
    regarde ce que vaut GetRootPath() un echo ne marchera pas je pense, mais essaye en ecrivant dans un fichier texte.

  13. #13
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    c'est très bizzard, voici mon connector.php :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
     
    <?php 
    /*
     * FCKeditor - The text editor for internet
     * Copyright (C) 2003-2005 Frederico Caldeira Knabben
     * 
     * Licensed under the terms of the GNU Lesser General Public License:
     * 		http://www.opensource.org/licenses/lgpl-license.php
     * 
     * For further information visit:
     * 		http://www.fckeditor.net/
     * 
     * "Support Open Source software. What about a donation today?"
     * 
     * File Name: connector.php
     * 	This is the File Manager Connector for PHP.
     * 
     * File Authors:
     * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
     */
     
    include('config.php') ;
    include('util.php') ;
    include('io.php') ;
    include('basexml.php') ;
    include('commands.php') ;
     
    if ( !$Config['Enabled'] )
    	SendError( 1, 'This connector is disabled. Please check the "editor/filemanager/browser/default/connectors/php/config.php" file' ) ;
     
    // Get the "UserFiles" path.
    $GLOBALS["UserFilesPath"] = '' ;
     
    if ( isset( $Config['UserFilesPath'] ) )
    	$GLOBALS["UserFilesPath"] = $Config['UserFilesPath'] ;
    else if ( isset( $_GET['ServerPath'] ) )
    	$GLOBALS["UserFilesPath"] = $_GET['ServerPath'] ;
    else
    	$GLOBALS["UserFilesPath"] = '/UserFiles/' ;
     
    if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) )
    	$GLOBALS["UserFilesPath"] .= '/' ;
     
    if ( strlen( $Config['UserFilesAbsolutePath'] ) > 0 ) 
    {
    	$GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ;
     
    	if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) )
    		$GLOBALS["UserFilesDirectory"] .= '/' ;
    }
    else
    {
    	// Map the "UserFiles" path to a local directory.
    	$GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ;
    }
     
     
    DoResponse() ;
     
    function DoResponse()
    {
    	if ( !isset( $_GET['Command'] ) || !isset( $_GET['Type'] ) || !isset( $_GET['CurrentFolder'] ) )
    		return ;
     
    	// Get the main request informaiton.
    	$sCommand		= $_GET['Command'] ;
    	$sResourceType	= $_GET['Type'] ;
    	$sCurrentFolder	= $_GET['CurrentFolder'] ;
     
    	// Check if it is an allowed type.
    	if ( !in_array( $sResourceType, array('File','Image','Flash','Media') ) )
    		return ;
     
    	// Check the current folder syntax (must begin and start with a slash).
    	if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ;
    	if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ;
     
    	// Check for invalid folder paths (..)
    	if ( strpos( $sCurrentFolder, '..' ) )
    		SendError( 102, "" ) ;
     
    	// File Upload doesn't have to Return XML, so it must be intercepted before anything.
    	if ( $sCommand == 'FileUpload' )
    	{
    		FileUpload( $sResourceType, $sCurrentFolder ) ;
    		return ;
    	}
     
    	CreateXmlHeader( $sCommand, $sResourceType, $sCurrentFolder ) ;
     
    	// Execute the required command.
    	switch ( $sCommand )
    	{
    		case 'GetFolders' :
    			GetFolders( $sResourceType, $sCurrentFolder ) ;
    			break ;
    		case 'GetFoldersAndFiles' :
    			GetFoldersAndFiles( $sResourceType, $sCurrentFolder ) ;
    			break ;
    		case 'CreateFolder' :
    			CreateFolder( $sResourceType, $sCurrentFolder ) ;
    			break ;
    	}
     
    	CreateXmlFooter() ;
     
    	exit ;
    }
    ?>
    j'y ajoute en début de scypt :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    $log = fopen("C:\\log.txt","r+");
    fwrite($log,GetRootPath());
    fclose($log);
    rien ne se passe, j'y rajoute pour voir :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    erreure de syntaxe faite expret !!!!
    rien non plus, c'est normal ?

  14. #14
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    et essaye avec ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
     
    if ( !$Config['Enabled'] ) 
       SendError( 1, 'This connector is disabled. Please check the "editor/filemanager/browser/default/connectors/php/config.php" file' ) ; 
     
    // Get the "UserFiles" path. 
    $GLOBALS["UserFilesPath"] = '' ; 
     
    if ( isset( $Config['UserFilesPath'] ) ) 
       $GLOBALS["UserFilesPath"] = $Config['UserFilesPath'] ; 
    else if ( isset( $_GET['ServerPath'] ) ) 
       $GLOBALS["UserFilesPath"] = $_GET['ServerPath'] ; 
    else 
       $GLOBALS["UserFilesPath"] = '/UserFiles/' ; 
     
    if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) ) 
       $GLOBALS["UserFilesPath"] .= '/' ; 
     
    if ( strlen( $Config['UserFilesAbsolutePath'] ) > 0 ) 
    { 
       $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ; 
     
       if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) ) 
          $GLOBALS["UserFilesDirectory"] .= '/' ; 
    } 
    else 
    { 
       // Map the "UserFiles" path to a local directory. 
       $GLOBALS["UserFilesDirectory"] = GetRootPath() . $GLOBALS["UserFilesPath"] ; 
    } 
     
    $log = fopen("C:\\log.txt","r+"); 
    fwrite($log,$GLOBALS["UserFilesDirectory"]);
    fclose($log); 
    DoResponse() ;

  15. #15
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    c très bizzar, j'ai même renommé le fichier et le dossier filemanager, l'interface d'upload souvre tjr sans aucun msg d'erreur.

    J'essaye quand même le log en fin de scrypt sur $GLOBALS["UserFilesDirectory"] mais j'ai l'impression que les modif sur ce fichier son pas prise en compte

    [EDIT]log.txt reste vide [/EDIT]

  16. #16
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    peut etre qu'il garde le .js de config en cache. Et donc ne prend pas les modifications.
    Sinon une idee comme ca. Au debut j'avais oublie de modifier la ligne pour donner le descripteurs cela marchait mais modification non

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
     
    FCKConfig.LinkBrowserURL =  FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php'
    // ASP			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp' ;
    //FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/CustomFiles/' ;
    // ASP.Net		// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/aspx/connector.aspx' ;
    // ColdFusion	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/cfm/connector.cfm' ;
    // Perl			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/perl/connector.cgi' ;
    // PHP			// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/php/connector.php' ;
    // PHP - mcpuk	// FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/mcpuk/browser.html?Connector=connectors/php/connector.php' ;

  17. #17
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    c'est dans quel fichier ça ? ^^

  18. #18
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    il se trouve dans fckconfig.js
    par contre quand tu le modifie pense a vide ton cache d'explorateur.

  19. #19
    Membre du Club
    Homme Profil pro
    Inscrit en
    Août 2004
    Messages
    128
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Août 2004
    Messages : 128
    Points : 67
    Points
    67
    Par défaut
    vraissemblablement nous n'avons pas la même version de FCKedit, alors désolé jte cole tous les code du fckconfig.js :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
     
    /*
     * FCKeditor - The text editor for internet
     * Copyright (C) 2003-2005 Frederico Caldeira Knabben
     * 
     * Licensed under the terms of the GNU Lesser General Public License:
     * 		http://www.opensource.org/licenses/lgpl-license.php
     * 
     * For further information visit:
     * 		http://www.fckeditor.net/
     * 
     * "Support Open Source software. What about a donation today?"
     * 
     * File Name: fckconfig.js
     * 	Editor configuration settings.
     * 	See the documentation for more info.
     * 
     * File Authors:
     * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
     */
     
    FCKConfig.CustomConfigurationsPath = '' ;
     
    FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ;
     
    FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
     
    FCKConfig.BaseHref = '' ;
     
    FCKConfig.FullPage = false ;
     
    FCKConfig.Debug = true ;
    FCKConfig.AllowQueryStringDebug = true ;
     
    FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;
     
    FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ;
     
    // FCKConfig.Plugins.Add( 'placeholder', 'de,en,fr,it,pl' ) ;
     
    FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ;	// <SCRIPT> tags.
    // FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;	// ASP style server side code <%...%>
    // FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ;	// PHP style server side code <?...?>
    // FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;	// ASP.Net style tags <asp:control>
     
    FCKConfig.AutoDetectLanguage	= true ;
    FCKConfig.DefaultLanguage		= 'en' ;
    FCKConfig.ContentLangDirection	= 'ltr' ;
     
    FCKConfig.EnableXHTML		= true ;	// Unsupported: Do not change.
    FCKConfig.EnableSourceXHTML	= true ;	// Unsupported: Do not change.
     
    FCKConfig.ProcessHTMLEntities	= true ;
    FCKConfig.IncludeLatinEntities	= true ;
    FCKConfig.IncludeGreekEntities	= true ;
     
    FCKConfig.FillEmptyBlocks	= true ;
     
    FCKConfig.FormatSource		= true ;
    FCKConfig.FormatOutput		= true ;
    FCKConfig.FormatIndentator	= '    ' ;
     
    FCKConfig.ForceStrongEm = true ;
    FCKConfig.GeckoUseSPAN	= true ;
    FCKConfig.StartupFocus	= false ;
    FCKConfig.ForcePasteAsPlainText	= false ;
    FCKConfig.AutoDetectPasteFromWord = true ;	// IE only.
    FCKConfig.ForceSimpleAmpersand	= false ;
    FCKConfig.TabSpaces		= 0 ;
    FCKConfig.ShowBorders	= true ;
    FCKConfig.UseBROnCarriageReturn	= false ;	// IE only.
    FCKConfig.ToolbarStartExpanded	= true ;
    FCKConfig.ToolbarCanCollapse	= true ;
    FCKConfig.IEForceVScroll = false ;
    FCKConfig.IgnoreEmptyParagraphValue = true ;
    FCKConfig.PreserveSessionOnFileBrowser = false ;
    FCKConfig.FloatingPanelsZIndex = 10000 ;
     
    FCKConfig.ToolbarSets["Default"] = [
    	['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
    	['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
    	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
    	['OrderedList','UnorderedList','-','Outdent','Indent'],
    	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
    	['Link','Unlink','Anchor'],
    	['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
    	['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
    	'/',
    	['Style','FontFormat','FontName','FontSize'],
    	['TextColor','BGColor'],
    	['About']
    ] ;
     
    FCKConfig.ToolbarSets["Basic"] = [
    	['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
    ] ;
     
    FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ;
     
    FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
     
    FCKConfig.FontNames		= 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
    FCKConfig.FontSizes		= '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ;
    FCKConfig.FontFormats	= 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ;
     
    FCKConfig.StylesXmlPath		= FCKConfig.EditorPath + 'fckstyles.xml' ;
    FCKConfig.TemplatesXmlPath	= FCKConfig.EditorPath + 'fcktemplates.xml' ;
     
    FCKConfig.SpellChecker			= 'ieSpell' ;	// 'ieSpell' | 'SpellerPages'
    FCKConfig.IeSpellDownloadUrl	= 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ;
     
    FCKConfig.MaxUndoLevels = 15 ;
     
    FCKConfig.DisableImageHandles = false ;
    FCKConfig.DisableTableHandles = false ;
     
    FCKConfig.LinkDlgHideTarget		= false ;
    FCKConfig.LinkDlgHideAdvanced	= false ;
     
    FCKConfig.ImageDlgHideLink		= false ;
    FCKConfig.ImageDlgHideAdvanced	= false ;
     
    FCKConfig.FlashDlgHideAdvanced	= false ;
     
    // The following value defines which File Browser connector and Quick Upload 
    // "uploader" to use. It is valid for the default implementaion and it is here
    // just to make this configuration file cleaner. 
    // It is not possible to change this value using an external file or even 
    // inline when creating the editor instance. In that cases you must set the 
    // values of LinkBrowserURL, ImageBrowserURL and so on.
    // Custom implementations should just ignore it.
    var _FileBrowserLanguage	= 'php' ;	// asp | aspx | cfm | lasso | perl | php | py
    var _QuickUploadLanguage	= 'php' ;	// asp | aspx | cfm | lasso | php
     
     
    // Don't care about the following line. It just calculates the correct connector 
    // extension to use for the default File Browser (Perl uses "cgi").
    var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ;
     
    FCKConfig.LinkBrowser = true ;
    FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
    FCKConfig.LinkBrowserWindowWidth	= FCKConfig.ScreenWidth * 0.7 ;		// 70%
    FCKConfig.LinkBrowserWindowHeight	= FCKConfig.ScreenHeight * 0.7 ;	// 70%
     
    FCKConfig.ImageBrowser = true ;
    FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
    FCKConfig.ImageBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	// 70% ;
    FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	// 70% ;
     
    FCKConfig.FlashBrowser = true ;
    FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;
    FCKConfig.FlashBrowserWindowWidth  = FCKConfig.ScreenWidth * 0.7 ;	//70% ;
    FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ;	//70% ;
     
    FCKConfig.LinkUpload = true ;
    FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ;
    FCKConfig.LinkUploadAllowedExtensions	= "" ;			// empty for all
    FCKConfig.LinkUploadDeniedExtensions	= ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ;	// empty for no one
     
    FCKConfig.ImageUpload = true ;
    FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ;
    FCKConfig.ImageUploadAllowedExtensions	= ".(jpg|gif|jpeg|png)$" ;		// empty for all
    FCKConfig.ImageUploadDeniedExtensions	= "" ;							// empty for no one
     
    FCKConfig.FlashUpload = true ;
    FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ;
    FCKConfig.FlashUploadAllowedExtensions	= ".(swf|fla)$" ;		// empty for all
    FCKConfig.FlashUploadDeniedExtensions	= "" ;					// empty for no one
     
    FCKConfig.SmileyPath	= FCKConfig.BasePath + 'images/smiley/msn/' ;
    FCKConfig.SmileyImages	= ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ;
    FCKConfig.SmileyColumns = 8 ;
    FCKConfig.SmileyWindowWidth		= 320 ;
    FCKConfig.SmileyWindowHeight	= 240 ;
     
    if( window.console ) window.console.log( 'Config is loaded!' ) ;	// @Packager.Compactor.RemoveLine
    var _FileBrowserLanguage & _QuickUploadLanguage était configuré sur ASP donc j'ai modifié mais pas d'amélioration

    EDIT :
    je viens de décommenter la ligne :
    // FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code <?...?>
    pas mieux

  20. #20
    Membre éprouvé Avatar de Bebel
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Avril 2003
    Messages
    786
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Avril 2003
    Messages : 786
    Points : 1 262
    Points
    1 262
    Par défaut
    En effet ce n'est pas du tout la meme version

    et en forcant cette ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    FCKConfig.LinkBrowserURL
    avec quelques chose comme ca :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.php';

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. [PHP 5.0] Gestion des upload avec condition
    Par jmtrivia dans le forum Langage
    Réponses: 3
    Dernier message: 17/03/2010, 14h10
  2. FileReference et gestion des upload et download
    Par Watier_53 dans le forum ActionScript 3
    Réponses: 1
    Dernier message: 05/03/2008, 09h58
  3. [Upload] Perdu dans la gestion des images
    Par thewaawshow dans le forum Langage
    Réponses: 9
    Dernier message: 19/09/2007, 14h32
  4. Réponses: 8
    Dernier message: 15/10/2006, 18h45
  5. [Upload] Upload et gestion des dossier !
    Par phoeniix07 dans le forum Langage
    Réponses: 4
    Dernier message: 24/05/2006, 11h24

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo