Commit 06374ed0 authored by sgalinsk's avatar sgalinsk

[BUGFIX] Cleanup


git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/lfeditor/trunk@76637 735d13b6-9817-0410-8766-e36946ffe9aa
parent f0fc1128
######################### general informations ####################
######################### general information ####################
# cat=basic; type=string; label=view languages: Please enter a list of languages that you want to edit (only the short name). Let this field empty if you want to view all languages (Warning: very long list!). Please note that the default language is always included.
viewLanguages =
......@@ -21,7 +21,7 @@ extIgnore = /^(CVS|.svn|.git|csh_)/
# cat=basic; type=integer; label=maximal amount of backup files: Set this value to zero if you like to keep all files else all old files will be deleted unto the given amount.
anzBackup = 5
# cat=basic; type=integer; label=amount of rows in text area: Please enter the amoung of rows you want in a normal textarea. This feature isnt supported if you use tinyMCE.
# cat=basic; type=integer; label=amount of rows in text area: Please enter the amount of rows you want in a normal textarea. This feature is not supported if you use tinyMCE.
numTextAreaRows = 5
# cat=basic; type=integer; label=constants per site in language file edit mode: Please enter the amount of constants per site in the language file edit mode. This value has no influence if you use parallel edit or not.
......
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied!!!');
}
if (TYPO3_MODE == 'BE') {
t3lib_extMgm::addModule('user', 'txlfeditorM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
t3lib_extMgm::addModule('user', 'txlfeditorM1', '', t3lib_extMgm::extPath('lfeditor') . 'mod1/');
}
?>
?>
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* This script isnt part of any project. The script is
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
......@@ -24,19 +25,17 @@
/**
* adds a new error exception
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package TYPO3
* @subpackage tx_lfeditor
*/
class LFException extends Exception {
/**#@+
* @var string status wraps (i.e. "<p>|</p>" (without quotes))
* @see setWrap()
/**
* @var string
*/
private static $errorWrap = '|';
/**
* @var string
*/
private static $noticeWrap = '|';
/**#@-*/
/**
* @var string
......@@ -67,7 +66,9 @@ class LFException extends Exception {
*/
public function __construct($msg, $wrapType = 0, $staticMsg = '') {
if (!empty($msg)) {
$msg = $GLOBALS['LANG']->getLL($msg);
/** @var \TYPO3\CMS\Lang\LanguageService $lang */
$lang = $GLOBALS['LANG'];
$msg = $lang->getLL($msg);
}
if (empty($msg)) {
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* The script is free software; you can redistribute it and/or modify
......@@ -23,9 +24,6 @@
/**
* personal library with lots of useful methods
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package sgLib
*/
class sgLib {
###############################
......@@ -63,24 +61,30 @@ class sgLib {
* @param string $text text
* @param string $fromAddress from header
* @param string $toAddress email address
* @param string $attachement file attachement name or data string (optional)
* @param string $attachement file attachment name or data string (optional)
* @param string $sendFileName send filename (optional)
* @param string $mbLanguage language (default == unicode)
* @return void
*/
public static function sendMail($subject, $text, $fromAddress, $toAddress,
$attachement = '', $sendFileName = '', $mbLanguage = 'uni') {
public static function sendMail(
$subject, $text, $fromAddress, $toAddress,
$attachement = '', $sendFileName = '', $mbLanguage = 'uni'
) {
// checks
if (!preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/', $toAddress) &&
!preg_match('/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',
$toAddress)
!preg_match(
'/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',
$toAddress
)
) {
throw new Exception('email address isnt valid: ' . $toAddress);
}
if (!preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/', $fromAddress) &&
!preg_match('/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',
$fromAddress)
!preg_match(
'/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',
$fromAddress
)
) {
throw new Exception('email address isnt valid: ' . $fromAddress);
}
......@@ -166,7 +170,7 @@ class sgLib {
}
/**
* checks write permission of a given file (checks directory permission if file doesnt exists)
* checks write permission of a given file (checks directory permission if file does not exists)
*
* @param string $file file path
* @return boolean true or false
......@@ -186,7 +190,7 @@ class sgLib {
/**
* deletes given files
*
* @throws Exception raised, if some files cant be deleted (throwed after deletion of all)
* @throws Exception raised, if some files cant be deleted (thrown after deletion of all)
* @param array $files files
* @return void
*/
......@@ -267,7 +271,7 @@ class sgLib {
}
/**
* searches defined files in a given path recursivly
* searches defined files in a given path recursively
*
* @throws Exception raised if the search directory cant be read
* @param string $path search in this path
......@@ -287,7 +291,7 @@ class sgLib {
throw new Exception('directory "' . $path . '" cant be read');
}
// iterate thru the directory entries
// iterate through the directory entries
while ($file = readdir($fhd)) {
$filePath = $path . '/' . $file;
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......@@ -27,38 +28,60 @@ require_once(PATH_t3lib . 'class.t3lib_install.php');
/**
* include some general functions only usable for the 'lfeditor' module
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package TYPO3
* @subpackage tx_lfeditor
*/
abstract class tx_lfeditor_mod1_file {
/**#@+
/** @var array content of parsed files and origin of every language */
/**
* @var array
*/
protected $localLang = array();
/**
* @var array
*/
protected $originLang = array();
/**#@-*/
/**#@+
/** @var string information about some paths, current file type and workspace */
/**
* @var string
*/
protected $absPath;
/**
* @var string
*/
protected $relFile;
/**
* @var string
*/
protected $absFile;
/**
* @var string
*/
protected $fileType;
/**
* @var string
*/
protected $workspace;
/**#@-*/
/** @var array header information */
/**
* @var array
*/
protected $meta;
/**#@+
/** abstract methods */
/**
* @return mixed
*/
abstract protected function prepareFileContents();
/**
* @return mixed
*/
abstract protected function readFile();
/**#@-*/
/**
* sets some variables
*
......@@ -127,14 +150,11 @@ abstract class tx_lfeditor_mod1_file {
$value = $this->relFile;
} elseif ($info == 'absPath') {
$value = $this->absPath;
}
elseif ($info == 'absFile') {
} elseif ($info == 'absFile') {
$value = $this->absFile;
}
elseif ($info == 'fileType') {
} elseif ($info == 'fileType') {
$value = $this->fileType;
}
elseif ($info == 'workspace') {
} elseif ($info == 'workspace') {
$value = $this->workspace;
}
......@@ -152,8 +172,7 @@ abstract class tx_lfeditor_mod1_file {
return $this->localLang;
} elseif (is_array($this->localLang[$langKey])) {
return $this->localLang[$langKey];
}
else {
} else {
return array();
}
}
......@@ -258,7 +277,10 @@ abstract class tx_lfeditor_mod1_file {
}
// Default-Code for using XCLASS (dont touch)
if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file.php']) {
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file.php']);
}
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......@@ -22,35 +23,42 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/** general filefunctions */
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'mod1/class.tx_lfeditor_mod1_file.php');
/**
* backup class
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package TYPO3
* @subpackage tx_lfeditor
*/
class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
/** @var string meta information file */
/**
* @var string
*/
private $metaFile;
/** @var array meta informations */
/**
* @var array
*/
private $metaArray = array();
/**#@+
/** @var string some variables needed to get informations from the metaArray */
/**
* @var string
*/
private $extName;
/**
* @var string
*/
private $extPath;
private $langFile;
/**#@-*/
/**
* @var string
*/
private $langFile;
/**
* extended init
*
* @throws LFException raised if the meta file cant be correctly readed
* @throws LFException raised if the meta file cant be correctly read
* @param string $file name of the file (can be a path, if you need this (no check))
* @param string $path path to the file
* @param string $metaFile absolute path to the meta file (includes filename)
......@@ -76,14 +84,14 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
#####################
/**
* sets informations
* sets information
*
* structure:
* $infos["metaFile"] = absolute path to the meta file (includes filename)
* $infos["extPath"] = extension path
* $infos["langFile"] = language file
*
* @param array informations (see above)
* @param array $informations information (see above)
* @return void
*/
public function setVar($informations) {
......@@ -114,26 +122,23 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
return $this->metaFile;
} elseif ($info == 'extName') {
return $this->extName;
}
elseif ($info == 'extPath') {
} elseif ($info == 'extPath') {
return $this->extPath;
}
elseif ($info == 'langFile') {
} elseif ($info == 'langFile') {
return $this->langFile;
}
else {
} else {
return parent::getVar($info);
}
}
/**
* returns meta informations about backup files
* returns meta information about backup files
*
* Modes:
* - 0 => full meta informations (default)
* - 1 => only meta informations of given extension key
* - 2 => only meta informations of given extension key and workspace
* - 3 => only meta informations of given extension key, workspace and language file
* - 0 => full meta information (default)
* - 1 => only meta information of given extension key
* - 2 => only meta information of given extension key and workspace
* - 3 => only meta information of given extension key, workspace and language file
*
* @param integer $mode
* @param string $extName extension Name (default = $this->extName)
......@@ -151,14 +156,11 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
return $this->metaArray;
} elseif ($mode == 1) {
return $this->metaArray[$extName];
}
elseif ($mode == 2) {
} elseif ($mode == 2) {
return $this->metaArray[$extName][$workspace];
}
elseif ($mode == 3) {
} elseif ($mode == 3) {
return $this->metaArray[$extName][$workspace][$langFile];
}
else {
} else {
return array();
}
}
......@@ -167,12 +169,12 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
* rewrites current meta information array with the given equivalent
*
* Modes:
* - 0 => full meta informations (default)
* - 1 => only meta informations of given extension key
* - 2 => only meta informations of given extension key and workspace
* - 3 => only meta informations of given extension key, workspace and language file
* - 0 => full meta information (default)
* - 1 => only meta information of given extension key
* - 2 => only meta information of given extension key and workspace
* - 3 => only meta information of given extension key, workspace and language file
*
* @param array $metaArray meta informations
* @param array $metaArray meta information
* @param integer $mode
* @param string $extName extension Name (default = $this->extName)
* @param string $workspace (default = $this->workspace)
......@@ -185,16 +187,14 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
$workspace = empty($workspace) ? $this->workspace : $workspace;
// build new meta information array
if (is_array($metaArray)) {
if (is_array($metaArray) && count($metaArray)) {
if (!$mode) {
$this->metaArray = $metaArray;
} elseif ($mode == 1) {
$this->metaArray[$extName] = $metaArray;
}
elseif ($mode == 2) {
} elseif ($mode == 2) {
$this->metaArray[$extName][$workspace] = $metaArray;
}
elseif ($mode == 3) {
} elseif ($mode == 3) {
$this->metaArray[$extName][$workspace][$langFile] = $metaArray;
}
} else {
......@@ -202,11 +202,9 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
unset($this->metaArray);
} elseif ($mode == 1) {
unset($this->metaArray[$extName]);
}
elseif ($mode == 2) {
} elseif ($mode == 2) {
unset($this->metaArray[$extName][$workspace]);
}
elseif ($mode == 3) {
} elseif ($mode == 3) {
unset($this->metaArray[$extName][$workspace][$langFile]);
}
}
......@@ -281,7 +279,6 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
/**
* removes the meta information entry and the backup file
*
*
* @param string $filename
* @param string $extName (default = $this->extName)
* @param string $langFile (default = $this->langFile)
......@@ -307,13 +304,13 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
// build new meta information file
unset($metaArray[$filename]);
if (!count($metaArray)) {
unset($metaArray);
$metaArray = NULL;
}
$this->setMetaInfos($metaArray, 3, $extName, '', $langFile);
$extMetaArray = $this->getMetaInfos(2, $extName);
if (!count($extMetaArray)) {
unset($extMetaArray);
$extMetaArray = NULL;
}
$this->setMetaInfos($extMetaArray, 2, $extName);
......@@ -350,7 +347,7 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
/**
* reads a backup file
*
* @throws LFException raised if the backup file cant be readed
* @throws LFException raised if the backup file can't be read
* @return void
*/
public function readFile() {
......@@ -365,6 +362,7 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
}
// read array
$localLang = $originLang = array();
foreach ($phpArray['data'] as $langKey => $informations) {
// read origin
try {
......@@ -382,7 +380,7 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
}
// check
if (!is_array($localLang) || !is_array($originLang)) {
if (!count($localLang) || !count($originLang)) {
throw new LFException('failure.backup.notRead');
}
......@@ -441,7 +439,7 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
}
/**
* prepares the backup file and writes the new meta informations
* prepares the backup file and writes the new meta information
*
* @throws LFException raised if meta file cant be written
* @return array backup file as key and content as value
......@@ -473,7 +471,10 @@ class tx_lfeditor_mod1_file_backup extends tx_lfeditor_mod1_file {
}
// Default-Code for using XCLASS (dont touch)
if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_backup.php']) {
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_backup.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_backup.php']);
}
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......@@ -27,24 +28,35 @@ require_once(t3lib_extMgm::extPath('lfeditor') . 'mod1/class.tx_lfeditor_mod1_fi
/**
* base workspace class
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package TYPO3
* @subpackage tx_lfeditor
*/
abstract class tx_lfeditor_mod1_file_base extends tx_lfeditor_mod1_file {
/**#@+
/** abstract methods */
/**
* @param string $content
* @param string $lang
* @return mixed
*/
abstract protected function getLocalizedFile($content, $lang);
/**
* @param string $filename
* @param string $langKey
* @return mixed
*/
abstract protected function checkLocalizedFile($filename, $langKey);
/**
* @param string $langKey
* @return mixed
*/
abstract protected function nameLocalizedFile($langKey);
/**
* @param string $file
* @param string $langKey
* @return mixed
*/
abstract protected function readLLFile($file, $langKey);
/**#@-*/
/**
* extended init
*
......@@ -62,7 +74,7 @@ abstract class tx_lfeditor_mod1_file_base extends tx_lfeditor_mod1_file {
$availableLanguages = TYPO3_languages;
}
// localization files shouldnt be edited
// localization files should not be edited
if ($this->checkLocalizedFile(basename($file), $availableLanguages)) {
throw new LFException('failure.langfile.notSupported');
}
......@@ -87,9 +99,10 @@ abstract class tx_lfeditor_mod1_file_base extends tx_lfeditor_mod1_file {
// loop all languages
$languages = sgLib::getSystemLanguages();
$originLang = array();
foreach ($languages as $lang) {
$originLang[$lang] = $this->absFile;
if (is_array($localLang[$lang]) || $lang == 'default') {
if ((is_array($localLang[$lang]) && count($localLang[$lang])) || $lang == 'default') {
if (is_array($localLang[$lang]) && count($localLang[$lang])) {
ksort($localLang[$lang]);
}
......@@ -119,7 +132,7 @@ abstract class tx_lfeditor_mod1_file_base extends tx_lfeditor_mod1_file {
}
// check
if (!is_array($localLang)) {
if (!is_array($localLang) || !count($localLang)) {
throw new LFException('failure.search.noFileContent');
}
......@@ -130,7 +143,10 @@ abstract class tx_lfeditor_mod1_file_base extends tx_lfeditor_mod1_file {
}
// Default-Code for using XCLASS (dont touch)
if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_base.php']) {
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_base.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_base.php']);
}
......
<?php
/***************************************************************
* Copyright notice
*
* (c) 2005-2012 Stefan Galinski (stefan.galinski@gmail.com)
* (c) Stefan Galinski (stefan.galinski@gmail.com)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
......@@ -22,15 +23,11 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/** general filefunctions */
/** general file functions */
require_once(t3lib_extMgm::extPath('lfeditor') . 'mod1/class.tx_lfeditor_mod1_file_base.php');
/**
* base workspace class (php)
*
* @author Stefan Galinski <stefan.galinski@gmail.com>
* @package TYPO3
* @subpackage tx_lfeditor
*/
class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
/**
......@@ -67,7 +64,7 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
/**
* reads a language file
*
* @throws LFException raised if the file dont contain a locallang array
* @throws LFException raised if the file does not contain a locallang array
* @param string language file
* @param string language shortcut (not used)
* @return array language content
......@@ -79,10 +76,12 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
include($file);
if (!is_array($LOCAL_LANG)) {
/** @var array $LOCAL_LANG */
if (!is_array($LOCAL_LANG) || !count($LOCAL_LANG)) {
throw new LFException('failure.search.noFileContent', 0, '(' . $file . ')');
}
/** @var array $LFMETA */
if ($langKey == 'default') {
$this->meta = $LFMETA;
}
......@@ -102,8 +101,10 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
return '';
}
return typo3Lib::fixFilePath(dirname($this->absFile) .
'/' . $this->nameLocalizedFile($langKey));
return typo3Lib::fixFilePath(
dirname($this->absFile) .
'/' . $this->nameLocalizedFile($langKey)
);
}
/**
......@@ -137,7 +138,7 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
* @return string meta data for writing purposes
*/
private function prepareMeta() {
if (!is_array($this->meta)) {
if (!is_array($this->meta) || !count($this->meta)) {
return '';
}
......@@ -184,7 +185,7 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
*/
private function getLangContent($localLang, $lang) {
$content = "\t'$lang' => array (\n";
if (is_array($localLang)) {
if (is_array($localLang) && count($localLang)) {
ksort($localLang);
foreach ($localLang as $const => $value) {
$value = preg_replace("/([^\\\])'/", "$1\'", $value);
......@@ -206,7 +207,7 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
*/
private function getLangContentLoc($localLang, $lang) {
$content = '$LOCAL_LANG[\'' . $lang . '\'] = array (' . "\n";
if (is_array($localLang)) {
if (is_array($localLang) && count($localLang)) {
ksort($localLang);
foreach ($localLang as $const => $value) {
$value = preg_replace("/([^\\\])'/", "$1\'", $value);
......@@ -271,7 +272,10 @@ class tx_lfeditor_mod1_file_basePHP extends tx_lfeditor_mod1_file_base {
}
// Default-Code for using XCLASS (dont touch)
if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_basePHP.php']) {
if (defined(
'TYPO3_MODE'
) && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_basePHP.php']
) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/lfeditor/mod1/class.tx_lfeditor_mod1_file_basePHP.php']);
}
......
<?php
/***************************************************************
* Copyright notice