2019-04 Update Mailversand
Archiv
Auswertung
admin
FCKeditor
_samples
_testcases
editor
_documentation.html
_whatsnew.html
fckconfig.js
fckeditor.afp
fckeditor.asp
fckeditor.cfc
fckeditor.cfm
fckeditor.js
fckeditor.lasso
fckeditor.php
fckeditor.pl
fckeditor.py
fckstyles.xml
fcktemplates.xml
htaccess.txt
license.txt
anschreiben
anschreiben_kehl
import
livesearch
livesearch2
overlib
prints
#anz_anm.php
#bereiche.php
#fehlende_pu.php
#liste_pu.php
#pu_standorte.php
#puzuweisung.php
#sperrzeiten.php
.4
Vorgehensweise.txt
adm_anleg.php
adm_bearb.php
adminrechte.php
adminrechte_del.php
aenderung.php
ag_tage_admin.php
ag_tage_admin_alt.php
ag_tage_admin_neu.php
agzuweisung.php
ajax.js
anmschluss.php
anschreiben.zip
arr.php
ausland_mit_agstandort.php
ausnahme.php
auswertung_anz_teilnehmer.php
bearbeiten.php
bearbeiten_alt.php
bearbeiten_neu.php
ch_attr.php
daten_pruefen_admin.php
datenblatt.php
datenblatt_kehl.php
datenblatt_kehl_alt.php
datenblatt_kehl_neu.php
datenblatt_lubu.php
datenblatt_lubu_alt.php
datenblatt_lubu_neu.php
datenvergleich.php
datenvergleich_alt.php
datenvergleich_erst.php
datenvergleich_neu.php
datenverleich.php
dst_bearb.php
expo_auslandsstellen.php
expo_jahrgangsstatus.php
fehlende_ant.php
fehlende_sozuweisung.php
fehlender_standort.php
fehlender_standort_alt.php
fehlender_standort_neu.php
func_get_vert_block.php
func_mail_att.php
func_printqueue_antrag.php
hauptframe.htm
hauptframe_jahr.php
historie.php
historie_alt.php
historie_neu.php
index.php
jahrgang.php
jahrgangsstatus.php
jahrgangsstatus_verkuerzt.php
jquery-1.9.1.js
kennwortwechsel_admin.php
liste_w.php
livesearch2.php
livesearch_dst.php
livesearch_stud.php
login_log.php
logout_admin.php
mail.php
mail_zusage.php
menuframe.php
offene_aendant.php
offene_beurteilung.php
offene_erstant.php
pdf_gen.php
pdf_gen_alt.php
pdf_gen_ges_akte.php
pdf_gen_ges_kehl.php
pdf_gen_ges_lubu.php
pdf_gen_ges_mail.php
pdf_gen_kehl.php
pdf_gen_kehl_alt.php
pdf_gen_kehl_neu.php
pdf_gen_mail.php
pdf_gen_mail_einzel.php
pdf_gen_neu.php
pdf_gen_so_zuw.php
pdf_gen_so_zuw_alt.php
pdf_gen_so_zuw_neu.php
praxisstellen_admin.php
praxisstellen_admin_alt.php
sozuweisung.php
sozuweisung_alt.php
sozuweisung_neu.php
stan_admin_anleg.php
stan_admin_bearb.php
stan_admin_del.php
stan_useronline.php
standort_erfassen.php
standorte_2014.php
stelle_in_bw_mit_ag_standort_ausserhalb_bw.php
stud_bearb.php
test.php
test1.php
topframe.htm
ungestellte_ant.php
vert_bereich.php
zuweisung_mail.php
balance_img
fancybox
images
js
mail
standort
stud
#pdf_gen.php
#pdf_gen_alt.php
#pdf_gen_ges_lubu.php
#pdf_gen_kehl.php
#pdf_gen_kehl_alt.php
#pdf_gen_kehl_neu.php
#pdf_gen_neu.php
++ Printqueue zurücksetzen.txt.lnk
.gitignore
Auswertung_besuchte Stellen der Studs - alle Jahrgänge.sql
Auswertung_besuchte Stellen der Studs.sql
Pflicht.sql
Trigger.sql
VIEW_stan_zuw_so.sql
VIEW_stan_zuw_so_neu.sql
anz_anm.php
bearbeiten_neu.php
historie.php
historie_alt.php
historie_neu.php
index.php
index_db.php
index_ldap.php
ldap_info.php
ldap_info_hsnet.php
login.css
menuframe.php
styles_pc.css
test.html
umzugsverguetung.sql
162 lines
4.2 KiB
PHP
Executable File
162 lines
4.2 KiB
PHP
Executable File
<?php
|
|
/*
|
|
* FCKeditor - The text editor for internet
|
|
* Copyright (C) 2003-2006 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: fckeditor.php
|
|
* This is the integration file for PHP.
|
|
*
|
|
* It defines the FCKeditor class that can be used to create editor
|
|
* instances in PHP pages on server side.
|
|
*
|
|
* File Authors:
|
|
* Frederico Caldeira Knabben (fredck@fckeditor.net)
|
|
*/
|
|
|
|
class FCKeditor
|
|
{
|
|
var $InstanceName ;
|
|
var $BasePath ;
|
|
var $Width ;
|
|
var $Height ;
|
|
var $ToolbarSet ;
|
|
var $Value ;
|
|
var $Config ;
|
|
|
|
// PHP 5 Constructor (by Marcus Bointon <coolbru@users.sourceforge.net>)
|
|
function __construct( $instanceName )
|
|
{
|
|
$this->InstanceName = $instanceName ;
|
|
$this->BasePath = '/fckeditor/' ;
|
|
$this->Width = '100%' ;
|
|
$this->Height = '200' ;
|
|
$this->ToolbarSet = 'Default' ;
|
|
$this->Value = '' ;
|
|
|
|
$this->Config = array() ;
|
|
}
|
|
|
|
// PHP 4 Contructor
|
|
function FCKeditor( $instanceName )
|
|
{
|
|
$this->__construct( $instanceName ) ;
|
|
}
|
|
|
|
function Create()
|
|
{
|
|
echo $this->CreateHtml() ;
|
|
}
|
|
|
|
function CreateHtml()
|
|
{
|
|
$HtmlValue = htmlspecialchars( $this->Value ) ;
|
|
|
|
$Html = '<div>' ;
|
|
|
|
if ( $this->IsCompatible() )
|
|
{
|
|
if ( isset( $_GET['fcksource'] ) && $_GET['fcksource'] == "true" )
|
|
$File = 'fckeditor.original.html' ;
|
|
else
|
|
$File = 'fckeditor.html' ;
|
|
|
|
$Link = "{$this->BasePath}editor/{$File}?InstanceName={$this->InstanceName}" ;
|
|
|
|
if ( $this->ToolbarSet != '' )
|
|
$Link .= "&Toolbar={$this->ToolbarSet}" ;
|
|
|
|
// Render the linked hidden field.
|
|
$Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}\" name=\"{$this->InstanceName}\" value=\"{$HtmlValue}\" style=\"display:none\" />" ;
|
|
|
|
// Render the configurations hidden field.
|
|
$Html .= "<input type=\"hidden\" id=\"{$this->InstanceName}___Config\" value=\"" . $this->GetConfigFieldString() . "\" style=\"display:none\" />" ;
|
|
|
|
// Render the editor IFRAME.
|
|
$Html .= "<iframe id=\"{$this->InstanceName}___Frame\" src=\"{$Link}\" width=\"{$this->Width}\" height=\"{$this->Height}\" frameborder=\"0\" scrolling=\"no\"></iframe>" ;
|
|
}
|
|
else
|
|
{
|
|
if ( strpos( $this->Width, '%' ) === false )
|
|
$WidthCSS = $this->Width . 'px' ;
|
|
else
|
|
$WidthCSS = $this->Width ;
|
|
|
|
if ( strpos( $this->Height, '%' ) === false )
|
|
$HeightCSS = $this->Height . 'px' ;
|
|
else
|
|
$HeightCSS = $this->Height ;
|
|
|
|
$Html .= "<textarea name=\"{$this->InstanceName}\" rows=\"4\" cols=\"40\" style=\"width: {$WidthCSS}; height: {$HeightCSS}\">{$HtmlValue}</textarea>" ;
|
|
}
|
|
|
|
$Html .= '</div>' ;
|
|
|
|
return $Html ;
|
|
}
|
|
|
|
function IsCompatible()
|
|
{
|
|
global $HTTP_USER_AGENT ;
|
|
|
|
if ( isset( $HTTP_USER_AGENT ) )
|
|
$sAgent = $HTTP_USER_AGENT ;
|
|
else
|
|
$sAgent = $_SERVER['HTTP_USER_AGENT'] ;
|
|
|
|
if ( strpos($sAgent, 'MSIE') !== false && strpos($sAgent, 'mac') === false && strpos($sAgent, 'Opera') === false )
|
|
{
|
|
$iVersion = (float)substr($sAgent, strpos($sAgent, 'MSIE') + 5, 3) ;
|
|
return ($iVersion >= 5.5) ;
|
|
}
|
|
else if ( strpos($sAgent, 'Gecko/') !== false )
|
|
{
|
|
$iVersion = (int)substr($sAgent, strpos($sAgent, 'Gecko/') + 6, 8) ;
|
|
return ($iVersion >= 20030210) ;
|
|
}
|
|
else
|
|
return false ;
|
|
}
|
|
|
|
function GetConfigFieldString()
|
|
{
|
|
$sParams = '' ;
|
|
$bFirst = true ;
|
|
|
|
foreach ( $this->Config as $sKey => $sValue )
|
|
{
|
|
if ( $bFirst == false )
|
|
$sParams .= '&' ;
|
|
else
|
|
$bFirst = false ;
|
|
|
|
if ( $sValue === true )
|
|
$sParams .= $this->EncodeConfig( $sKey ) . '=true' ;
|
|
else if ( $sValue === false )
|
|
$sParams .= $this->EncodeConfig( $sKey ) . '=false' ;
|
|
else
|
|
$sParams .= $this->EncodeConfig( $sKey ) . '=' . $this->EncodeConfig( $sValue ) ;
|
|
}
|
|
|
|
return $sParams ;
|
|
}
|
|
|
|
function EncodeConfig( $valueToEncode )
|
|
{
|
|
$chars = array(
|
|
'&' => '%26',
|
|
'=' => '%3D',
|
|
'"' => '%22' ) ;
|
|
|
|
return strtr( $valueToEncode, $chars ) ;
|
|
}
|
|
}
|
|
|
|
?>
|