PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

custom
config_upload.inc
wget 'https://sme10.lists2.roe3.org/guppy/admin/editors/ckeditor_config/config_upload.inc'
View Content
<?php
/*******************************************************************************
 *   Plugin CKEditor réalisé par Djchouix sous GNU Lesser General Public License
 *   Web site = http://lebrikabrak.free.fr/
 *   e-mail   = lebrikabrak@free.fr
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
*   v6.00.18 (February 11, 2024) : add avif type and control Php version
 ******************************************************************************/


if (stristr($_SERVER["SCRIPT_NAME"], "config_upload.inc")) {
	header("location:../index.php");
	die();
}
$pathRepUpload ='admin/editors/';  //chemin relatif du répertoire Upload ( à modifier si vous voulez placer ce répertoire ailleurs Ici)
	
$allowedUpload = true;  //Autorisation (TRUE) ou NON (FALSE) pour Upload
$allowedCreateRep = true;  //Autorisation (TRUE) ou NON (FALSE) pour la Création de Répertoire
$allowedRenameRepFile = true;  //Autorisation (TRUE) ou NON (FALSE) pour Renommer des Répertoires ou des Fichiers
$allowedDeleteRepFile = true;  //Autorisation (TRUE) ou NON (FALSE) pour la Suppression des Répertoires ou des Fichiers

$allowedExtFileUpload = array();  //Extensions des fichiers UNIQUEMENT autorisés à être uploadés (laisser vide pour autoriser toutes les extensions)
$deniedExtFileUpload = array();  //Extensions des fichiers NON autorisés à être uploadés (laisser vide pour autoriser toutes les extensions)

$accessRepUpload = array('file','img','photo','pages','skins');	//Nom des répertoires à la racine de Guppy accessibles pour le fichier Upload	(création si nécessaire) 
                                                                //Attention: pour les noms de répertoire, seuls les caractères alphanumériques (a-z A-Z 0-9) ainsi que les caractères (-  _)	sont autorisés et vous ne devez pas mettre d'espace.	
$accessRepUploadImage = array('img','photo','skins'); //Nom des répertoires à la racine de Guppy accessibles via le menu pour l'insertion d'Images.(accès avec variable $uptype='Image')
                                                      //Attention: vous devez choisir les répertoires uniquement parmi la liste des répertoires contenus dans la variable $accessRepUpload ci-dessus
$accessRepUploadLink = array('file','img','photo','pages');	//Nom des répertoires à la racine de Guppy accessibles via le menu pour l'insertion de Liens (accès avec variable $uptype='Link')
                                                            //Attention: vous devez choisir les répertoires uniquement parmi la liste des répertoires contenus dans la variable $accessRepUpload ci-dessus
$accessRepUploadMedia = array('img','photo'); //Accès aux répertoires à la racine de Guppy pour les fichiers Audio et Video (accès avec variable $uptype='Media')
                                      //Attention: vous devez choisir les répertoires uniquement parmi la liste des répertoires contenus dans la variable $accessRepUpload ci-dessus

$allowedExtImage = array('.jpg','.gif','.png','.bmp','.jpeg','.webp','.avif','.swf','.fla','.JPG','.GIF','.PNG','.BMP','.JPEG','.SWF','.FLA');  //Extensions UNIQUEMENT autorisées pour récupérer URL des Images (accès avec variable $uptype='Image')
$deniedExtLink = array();  //Extensions NON autorisées pour récupérer URL des Liens (laisser vide pour autoriser toutes les extensions) (accès avec variable $uptype='Link')
$allowedExtMedia = array('.jpg','.gif','.png','.bmp','.jpeg','.JPG','.GIF','.PNG','.BMP','.JPEG','.mp3','.mp4'); //Extensions UNIQUEMENT autorisées pour récupérer URL des fichiers Audio et Video (accès avec variable $uptype='Media')

//STYLE CSS DE LA POPUP UPLOAD
$colorTextTitre = '#000000';  //couleur du titre
$colorFondTitre = '#7F7F7F';  //couleur de fond du titre
$styleBordureTitre = '1px solid #7F7F7F';  //bordure du titre
$colorTextCorp = '#000000';   //couleur du texte
$colorFondCorp = '#EFEFEF';   //couleur du fond de page
$styleBordureCorp = '1px solid #7F7F7F';  //bordure du corps
$colorBodyUpload = '#EFEFEF';  //couleur de fond de page (popup upload)
$colorFondFileUpload = '#EFEFEF'; //couleur du fond du tableau (popup upload)
$colorFondFileUploadOver = '#E7E1EF';  //couleur de fond des fichiers lors du survol de la souris (popup upload)
$colorFileUploadOff = '#000000';  //couleur des liens off (popup upload)
$colorFileUploadOn = '#FF0000';  //couleur des liens on (popup upload)

guppy_ckconfig.js
wget 'https://sme10.lists2.roe3.org/guppy/admin/editors/ckeditor_config/guppy_ckconfig.js'
View Content
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:

    /**
     * Définitions des barres d'outils
     */
    config.toolbar_Default =    // Barre par défaut (ensemble de tous les outils)
    [
    	['Source','-','Save','NewPage','Preview','-','Templates'],
    	['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
    	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    	['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
    	'/',
    	['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    	['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
    	['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
    	['Link','Unlink','Anchor'],
    	['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
    	'/',
    	['Styles','Format','Font','FontSize'],
    	['TextColor','BGColor'],
    	['Maximize', 'ShowBlocks','-','About']
    ];
    
    config.toolbar_Guppy_in = [     // Barre affichée par l'éditeur intégré
    	['Source','NewPage','Templates'],
		['Cut','Copy','Paste','PasteText','PasteFromWord'],
        ['SpellChecker', 'Scayt','Undo','Redo','SelectAll','Find','Replace','RemoveFormat'],
        ['Table','Citation','HorizontalRule','SpecialChar','ckawesome'],
    	'/',
    	['Bold','Italic','Underline','Strike','Subscript','Superscript'],
        ['NumberedList','BulletedList','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['TextColor','BGColor','Image','Youtube','Html5video'],
		['Link','Unlink','Anchor'],
    	'/',
    	['Styles','Format','Font','FontSize'],['Iframe','pbckcode'],
        ['Smiley'],['CreateDiv','ShowBlocks','Preview','Print','Maximize','About']
    ] ;
    //
		
	config.fillEmptyBlocks = false;
	
    config.colorButton_enableMore = true;  // Affiche (true) ou non (false) le bouton "Plus de couleurs..." 

    config.disableNativeSpellChecker = false;   // Active (false) ou désactive (true) le vérificateur orthographique des navigateurs (firefox et safari)
    config.disableNativeTableHandles = false;   // Active (false) ou désactive (true) les outils présents nativement dans les navigateurs (actuellement Firefox seulement)
    config.disableObjectResizing = false;        // Active (false) ou désactive (true) le redimensionnement des images et des tableaux    

	config.extraPlugins = 'table,image,html5video,widget,widgetselection,clipboard,lineutils,nbsp,pbckcode,citation,ckawesome,youtube,lytebox';
	
    config.entities = false;   
    
    config.format_tags    = 'p;h1;h2;h3;h4;h5;h6;pre;address;div' ;
    config.font_names     = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ;
    config.fontSize_sizes = '8/8px;9/9px;10/10px;11/11px;12/12px;13/13px;14/14px;15/15px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px';
  
    config.forcePasteAsPlainText = false;
    config.forceSimpleAmpersand = false;
	config.allowedContent = true;
	
	config.youtube_responsive = true;
	config.youtube_controls = true;
       
    config.resize_dir = 'vertical';
    
    config.skin = 'moonocolor_v1.1, ' + site3 + 'admin/editors/ckeditor_config/custom/skins/moonocolor_v1.1/';
    
    config.templates_files =
    [
        site3 + 'admin/editors/ckeditor_config/custom/templates/templates/default.js'
    ];
    config.templates = 'default';
    
    config.stylesSet = 'styles:'+ site3 + 'admin/editors/ckeditor_config/custom/styles/styles.js';
	
};
guppy_contents.css
wget 'https://sme10.lists2.roe3.org/guppy/admin/editors/ckeditor_config/guppy_contents.css'
View Content
/*******************************************************************************
 *   Plugin CKEditor réalisé par Djchouix sous GNU Lesser General Public License
 *   Web site = http://lebrikabrak.free.fr/
 *   e-mail   = lebrikabrak@free.fr
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.00 (December 15, 2020) : initial release
 ******************************************************************************/

/*
 * This is the default CSS file used by the editor area. It defines the
 * initial font of the editor and background color.
 *
 * A user can configure the editor to use another CSS file. Just change
 * the value of the FCKConfig.EditorAreaCSS key in the configuration
 * file.
 */
 
/**
 * The "body" styles should match your editor web site, mainly regarding
 * background color and font family and size.
 */

body
{
	font-family: Arial, Verdana, sans-serif; /* police du texte */
	font-size: 14px; /* taille du texte */
	background-color: #ffffff; /* couleur de fond */
	color: #000000; /* couleur du texte */
	margin: 0px; /* marge externe   */
    padding : 10px;
}

html
{
	/* #3658: [IE6] Editor document has horizontal scrollbar on long lines
	To prevent this misbehavior, we show the scrollbar always */
	_overflow-y: scroll
}

img:-moz-broken
{
	-moz-force-broken-image-icon : 1;
	width : 24px;
	height : 24px;
}

img, input, textarea
{
	cursor: default;
}

/*
    The following are some sample styles used in the "Styles" toolbar command.
    You should instead remove them, and include the styles used by the site
    you are using the editor in.
*/
.Bold
{
	font-weight: bold;
}

.Title
{
	font-weight: bold;
	font-size: 20px;
	color: #cc3300;
}

.Code
{
	border: #8b4513 1px solid;
	padding-right: 5px;
	padding-left: 5px;
	color: #000066;
	font-family: 'Courier New' , Monospace;
	background-color: #ff9933;
}

.surlign
{
	background-color: #FFFF33;
    font-weight:bold;
	color: #FF0000;
	border:1px dashed #8b4513;
	padding:1px 5px;
}
jscript_upload.inc
wget 'https://sme10.lists2.roe3.org/guppy/admin/editors/ckeditor_config/jscript_upload.inc'
View Content
<?php
/*******************************************************************************
 *   Plugin CKEditor réalisé par Djchouix sous GNU Lesser General Public License
 *   Web site = http://lebrikabrak.free.fr/
 *   e-mail   = lebrikabrak@free.fr
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.16 (December 14, 2023) : Integration audio and video files
 ******************************************************************************/

if (stristr($_SERVER["SCRIPT_NAME"], "jscript_upload.inc")) {
	header("location:../index.php");
	die();
}
?>
//Numéro attribué à l'éditeur (identifiant)
var funcNum = parseInt(getUrlParam('CKEditorFuncNum'));

// --------------------------------------------------------------------

/**
 * Récupère la valeur d'un paramètre passées dans l'url
 */
function getUrlParam(paramName)
{
  var reParam = new RegExp('(?:[\?&]|&amp;)' + paramName + '=([^&]+)', 'i') ;
  var match = window.location.search.match(reParam) ;
 
  return (match && match.length > 1) ? match[1] : '' ;
};

// --------------------------------------------------------------------

/**
 * Supprime l'adresse du serveur
 */
function delHostName(url)
{
	var posPathName = document.location.href.indexOf('admin/editors/upload/', 0);
	if (posPathName !== -1) {
		return url.substring(posPathName);
	}
	
	return url;
};

// --------------------------------------------------------------------

/**
 * Récupération de l'URL du fichier sélectionné dans le gestionnaire de fichiers
 */
function openURL(url, type, alt, width, height)
{
	url = delHostName(url);	// Path relative
	
    
    if (type == 'file') // Fichier lien
    {    
        url = url.replace(/^http:\/\//i , '');
        
        window.opener.CKEDITOR.tools.callFunction(funcNum, url, function () {
            var element, dialog = this.getDialog();
            if (dialog.getName() == 'link') {
                element = dialog.getContentElement( 'info', 'protocol' );
                if ( element ) {
                    element.setValue('');
                }
            }
        });
	}
    else if (type == 'img')	// Fichier image
    {
        window.opener.CKEDITOR.tools.callFunction(funcNum, url, function () {
            var element, dialog = this.getDialog();
            if (dialog.getName() == 'image') {
                element = dialog.getContentElement( 'info', 'txtAlt' );
                if ( element ) {
                    element.setValue( alt );
                }
                element = dialog.getContentElement( 'info', 'txtBorder' );
                if ( element ) {
                    element.setValue("0");
                } 
            }
        });
	}
	//audio Video
    else if (type == 'media') {
		url = url.replace(/^.+\/photo\/gal_/,'');
             id = window.name;
	    window.opener.document.getElementById(id).value = url;
	}    
    window.close();
};

/**
 * Ajout du paramètre 'CKEditorFuncNum' contenant l'identifiant de l'éditeur
 * dans l'url des éléments A et FORM
 */
(function () {
    
    function addUrlParam(paramName, paramValue)
    {       
        /**
         * Elements A
         */
        var aElements = document.getElementsByTagName('a');

        for ( var i = 0, len = aElements.length ; i < len ; i++ ) {
            if (aElements[i].href.indexOf("upload.php") !== -1 && aElements[i].href.indexOf(paramName) === -1) {
                aElements[i].href += '&'+paramName+'='+paramValue;
            }
        }
        //
        
        /**
         * Elements FORM
         */
        var formElements = document.getElementsByTagName('form');

        for ( var i = 0, len = formElements.length ; i < len ; i++ ) {
            if (formElements[i].action.indexOf("upload.php") !== -1 && formElements[i].action.indexOf(paramName) === -1) {
                formElements[i].action += '&'+paramName+'='+paramValue;
            }
        }
        //
    }

    // --------------------------------------------------------------------

	/**
	 * initialisation
	 */ 
	function init()
	{
        addUrlParam('CKEditorFuncNum', funcNum);
	}

    // --------------------------------------------------------------------

	/**
	 * Ajoute la fonction à l'évènement load de la page
	 */
	function addLoadListener(func)
	{
		if (window.addEventListener) {
			window.addEventListener("load", func, false);
		} else if (document.addEventListener) {
			document.addEventListener("load", func, false);
		} else if (window.attachEvent) {
			window.attachEvent("onload", func);
		}
	}

    // --------------------------------------------------------------------

	// Chargement
	addLoadListener(init);
   
})();
style_upload.css
wget 'https://sme10.lists2.roe3.org/guppy/admin/editors/ckeditor_config/style_upload.css'
View Content
/*******************************************************************************
 *   Plugin CKEditor réalisé par Djchouix sous GNU Lesser General Public License
 *   Web site = http://lebrikabrak.free.fr/
 *   e-mail   = lebrikabrak@free.fr
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.00 (December 15, 2020) : initial release
 ******************************************************************************/

body {
 font-size: 16px;
 font-family: "Times New Roman" , Arial, sans-serif;
 color: #000000; 
 background-color: #EFEFEF;
 margin:1px;
 padding-top:15px;
 padding-right:10px;
 padding-left:10px;
}

div.help {
text-align:center;
display:none;
border:1px solid #E3E3C7;
background-color:#FFFFFF;
color:#000000;
width:auto;
margin:10px;
font-weight:normal;
padding:5px 0px;
}

div.corpsFileScroll {
 margin-right:auto;
 margin-left:auto;
 max-width:630px;
 height:291px;
 border:1px solid #C7C78F;
 overflow:auto;
}

div.corpsFilenoScroll {
 margin-right:auto;
 margin-left:auto;
 max-width:630px;
 height:291px;
 border:1px solid #C7C78F;
 color: #000000;
 background-color: #FFFFFF;
}

div.labelupload {
 text-align:center;
 font-weight:bold;
 vertical-align:middle;
}

div.upload {
 text-align:center;
 font-weight:bold;
 vertical-align:middle;
 margin-top:10px;  
 margin-bottom:10px;
}

input.bouton {
margin-left:10px;
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
}
 
a {
 color: #000000;
 background-color: transparent;
 text-decoration: none;
 cursor:pointer;
}

a:hover {
 color: #FF0000;
 text-decoration: underline;
 background-color: transparent;
 cursor:pointer;
}

/* style général du tableau */
table {
 font-size: 12px;
 font-family: Arial, Helvetica, sans-serif;
 font-weight:normal;
 color: #000000;
 background-color: #FFFFFF;
}

div.corpsFilenoScroll table {
 max-width:630px;
} 

div.corpsFileScroll table {
 width:100% !important;
 max-width:613px;
}

td {
 padding:5px;
 text-align:center;
}

/*  style des titres du tableau (ligne 1 du tableau)  */
tr.forum {
 background-color: #7F7F7F;
 color: #FFFFFF;
 text-align: center;
 font-weight: bold;
}
td#forumName {
 border:1px solid #FFFFFF;
}

td#forumSize {
 border-top:1px solid #FFFFFF;
 border-bottom:1px solid #FFFFFF;
}

td#forumAction {
 border:1px solid #FFFFFF;
}

/*  style des lignes et des cellules du corps du tableau   */
tr.quest {
}

tr.rep {
}

td.fileName {
 text-align:left;
 border-left:1px solid #FFFFFF;
 border-bottom:1px solid #FFFFFF;
}

td.fileSize {
 border-bottom:1px solid #FFFFFF;
}

td.fileAction {
 border-right:1px solid #FFFFFF;
 border-bottom:1px solid #FFFFFF;
}

/* style des images */
img {
 vertical-align:middle;
 margin-right:10px;
 margin-bottom:2px;
}
/* style des images dans le tableau */
img.imgName{
 vertical-align:middle;
 margin-right:10px;
 cursor:pointer;
}

a.imgName:hover{
 text-decoration:none;
}

img.imgAction {
vertical-align:middle;
cursor:pointer;
border:2px solid #FFFFFF;
margin-right:0px;
}

img.imgAction2 {
vertical-align:middle;
cursor:pointer;
margin-left:5px;
margin-right:5px;
border:2px solid #FFFFFF;
}

/*  style lors du survol de la souris sur l'élément */
tr#trsurvol {
 background-color: #EFEFEF;
 color: #000000;
}

tr#trsurvol img.imgAction {
 border:2px solid #E3E3C7;
 background-color: #E3E3C7;
 color: #000000;
}

tr#trsurvol img.imgAction2 {
 border:2px solid #E3E3C7;
 background-color: #E3E3C7;
 color: #000000;
}

tr#trsurvol img#imgsurvol {
 border:2px solid #FF1010;
 background-color: #E3E3C7;
 color: #000000;
}