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`).
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/editors_functions.php'
<?php
/*******************************************************************************
* Functions for editors
*******************************************************************************
* GuppY PHP Script - version 6
* CeCILL Copyright (C) 2004-2023 by Laurent Duveau
* Initiated by Laurent Duveau and Nicolas Alves
* Web site = https://www.freeguppy.org/
* e-mail = guppy@freeguppy.org
* V6 developed by Lud Bienaimé
* with the participation of the GuppY Team
*******************************************************************************
* Latest Changes :
* v6.00.11 (March 09, 2023) : maj ckeditor
******************************************************************************/
if (stristr($_SERVER["SCRIPT_NAME"], "editors_functions.php")) {
header("location:../index.php");
die();
}
/**
* Affiche l'éditeur dans la partie web
*
* @param string $name Nom de l'éditeur
* @param string $width Largeur de l'éditeur (voir fichier de condif)
* @param string $height Hauteur de l'éditeur
* @param string $content Contenu de l'éditeur
* @param array $params Paramètres optionnels
* @return string
*/
function display_editor($name, $width, $height, $value, $params = array()) {
global $site, $lng;
if (is_file(CHEMIN.'inc/ckeditor/ckeditor.php')) {
require_once CHEMIN.'inc/ckeditor/ckeditor.php';
$path = 'inc/ckeditor/';
$site[37] = empty($site[37]) ? 'moonocolor_v1.1' : $site[37];
$toolbarName = empty($params['toolbarName']) ? 'Guppy_out_min' : $params['toolbarName'];
$smileyBar = empty($params['smileyBar']) ? '' : $params['smileyBar'];
$oCKeditor = new CKeditor() ;
$oCKeditor->basePath = $site[3].$path;
$oCKeditor->config['width'] = $width;
$oCKeditor->config['height'] = $height;
$oCKeditor->config['baseHref'] = $site[3];
$oCKeditor->config['customConfig'] = $site[3].'inc/ckeditor_config/guppy_ckconfig.js';
$oCKeditor->config['contentsCss'] = [ $site[3].'inc/ckeditor_config/guppy_contents.css', $site[3].'inc/ckeditor_config/guppy_contents_plus.css' ];
$oCKeditor->config['language'] = is_file(CHEMIN.'inc/ckeditor/lang/'.$lng.'.js') ? $lng : 'en';
$oCKeditor->config['toolbar'] = $toolbarName;
$oCKeditor->config['smiley_path'] = 'inc/ckeditor/plugins/smiley/images/';
$oCKeditor->config['skin'] = $site[37].', '.$site[3].'inc/ckeditor_config/skins/'.$site[37].'/';
echo '<div class="text-center">'.$oCKeditor->editor($name, $value).'</div>';
}
else
return false;
}
// --------------------------------------------------------------------
/**
* Insère les fonctions javascripts nécessaires pour les éditeurs
*/
$headinc .= '<script src="'.CHEMIN.'inc/ckeditor_config/editors_scripts.js"></script>';
?>
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/editors_scripts.js'
/**
* Permet l'insertion des smileys de guppy dans l'éditeur
*
* @param string Nom de l'éditeur
* @param string Chemin du smiley
* @param string Attribut alt
* @param integer Largeur du smiley
* @param integer Hauteur du smiley
*
* @return string
*/
function insert_smiley_in_editor(instanceName, src, alt, width, height)
{
if (typeof(CKEDITOR) === 'object') {
insert_smiley_in_CKEditor(instanceName, src, alt, width, height);
} else {
return false;
}
};
// --------------------------------------------------------------------
/**
* Permet l'insertion des smileys de guppy dans l'éditeur CKEditor
*
* @param string Nom de l'éditeur
* @param string Chemin du smiley
* @param string Attribut alt
* @param integer Largeur du smiley
* @param integer Hauteur du smiley
* @return string
*/
function insert_smiley_in_CKEditor(instanceName, src, alt, width, height)
{
var oEditor = CKEDITOR.instances[instanceName];
if ( oEditor.mode == "wysiwyg") {
var img = "<img src=\""+src+"\" alt=\""+alt+"\" style=\"width:"+width+"px; height:"+height+"px; border:0px solid;\" />";
oEditor.insertHtml(img);
} else {
return false;
}
};
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/guppy_ckconfig.js'
/*
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 (idem Guppy_out_min)
['PasteText','PasteFromWord'],['TextColor','BGColor'],['Bold','Italic','Underline'],['Subscript','Superscript'],
['Citation'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Table','HorizontalRule','ckawesome'],
['Link','Unlink'],['NumberedList','BulletedList'],['Outdent','Indent'],['Undo','Redo'],['Smiley','Preview','Maximize']
];
//
config.toolbar_Guppy_out = [ // Barre pour forum, blog, nouvelles, réactions aux articles, commentaire blog, contact, sans image
['PasteText','PasteFromWord'],['TextColor','BGColor'],['Bold','Italic','Underline'],['Subscript','Superscript'],
['Citation','pbckcode'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Table','HorizontalRule','ckawesome'],
['Link','Unlink'],['NumberedList','BulletedList'],['Outdent','Indent'],['Undo','Redo'],['Smiley','Preview','Maximize']
] ;
//
config.toolbar_Guppy_out_img = [ // Barre pour forum, blog, nouvelles, réactions aux articles, commentaire blog, avec image
['PasteText','PasteFromWord'],['TextColor','BGColor','Image'],['Bold','Italic','Underline'],['Subscript','Superscript'],
['Citation','pbckcode'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Table','HorizontalRule','ckawesome'],
['Link','Unlink'],['NumberedList','BulletedList'],['Outdent','Indent'],['Undo','Redo'],['Smiley','Preview','Maximize']
] ;
//
config.toolbar_Guppy_out_min = [ // Barre pour le livre d or
['PasteText','PasteFromWord'],['TextColor','BGColor'],['Bold','Italic','Underline'],['Subscript','Superscript'],
['Citation'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Table','HorizontalRule','ckawesome'],
['Link','Unlink'],['NumberedList','BulletedList'],['Outdent','Indent'],['Undo','Redo'],['Smiley','Preview','Maximize']
] ;
//
config.toolbar_Guppy_out_min_img = [ // Barre pour contact avancé
['PasteText','PasteFromWord'],['TextColor','BGColor','Image'],['Bold','Italic','Underline'],['Subscript','Superscript'],
['Citation','pbckcode'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Table','HorizontalRule','ckawesome'],
['Link','Unlink'],['NumberedList','BulletedList'],['Outdent','Indent'],['Undo','Redo'],['Smiley','Preview','Maximize']
] ;
//
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,nbsp,citation,ckawesome,pbckcode';
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.resize_dir = 'vertical';
config.templates = 'default';
};
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/guppy_contents.css'
/*******************************************************************************
* 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-2023 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 Jean-Michel Misrachi and the GuppY Team
*******************************************************************************
* Version History :
* v6.00.11 (March 09, 2023) : update ck editor
******************************************************************************/
/*
* 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;
}
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/guppy_contents_plus.css'
/* --------- Parametrage de CKEditor public ----------- */
body {
background: #FFFFFF;
color: #000000;
font-size: 16px;
}
wget 'https://sme10.lists2.roe3.org/guppy/inc/ckeditor_config/styles.js'
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.stylesSet.add('styles',[{name:'Blue Title',element:'h3',styles:{color:'Blue'}},{name:'Red Title',element:'h3',styles:{color:'Red'}},{name:'Marker: Yellow',element:'span',styles:{'background-color':'Yellow'}},{name:'Marker: Green',element:'span',styles:{'background-color':'Lime'}},{name:'Big',element:'big'},{name:'Small',element:'small'},{name:'Typewriter',element:'tt'},{name:'Computer Code',element:'code'},{name:'Keyboard Phrase',element:'kbd'},{name:'Sample Text',element:'samp'},{name:'Variable',element:'var'},{name:'Deleted Text',element:'del'},{name:'Inserted Text',element:'ins'},{name:'Cited Work',element:'cite'},{name:'Inline Quotation',element:'q'},{name:'Language: RTL',element:'span',attributes:{dir:'rtl'}},{name:'Language: LTR',element:'span',attributes:{dir:'ltr'}},{name:'Image on Left',element:'img',attributes:{style:'padding: 5px; margin-right: 5px',border:'2',align:'left'}},{name:'Image on Right',element:'img',attributes:{style:'padding: 5px; margin-left: 5px',border:'2',align:'right'}},{name:'Borderless Table',element:'table',styles:{'border-style':'hidden','background-color':'#E6E6FA'}},{name:'Square Bulleted List',element:'ul',styles:{'list-style-type':'square'}}]);