*** empty log message ***
authorKasper Skårhøj <kasper@typo3.org>
Mon, 26 Jan 2004 15:07:47 +0000 (15:07 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Mon, 26 Jan 2004 15:07:47 +0000 (15:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@118 709f56b5-9817-0410-a4d7-c38de5d9e867

118 files changed:
TODO.txt
changelog.txt [deleted file]
t3lib/class.t3lib_tcemain.php
t3lib/class.t3lib_tstemplate.php
t3lib/config_default.php
typo3/alt_main.php
typo3/class.db_layout.inc [deleted file]
typo3/db_layout.php [deleted file]
typo3/db_new_content_el.php [deleted file]
typo3/icons/icon_00f8e0220e.gif [deleted file]
typo3/icons/icon_0245c46507.gif [deleted file]
typo3/icons/icon_04dc0210a1.gif [deleted file]
typo3/icons/icon_07eff13a15.gif [deleted file]
typo3/icons/icon_0a7d5ada1a.gif [deleted file]
typo3/icons/icon_127199e3f6.gif [deleted file]
typo3/icons/icon_13d4655e90.gif [deleted file]
typo3/icons/icon_16f038ead8.gif [deleted file]
typo3/icons/icon_1cc7ca5c9a.gif [deleted file]
typo3/icons/icon_260a676af9.gif [deleted file]
typo3/icons/icon_26b59c6813.gif [deleted file]
typo3/icons/icon_29c5185e41.gif [deleted file]
typo3/icons/icon_30b5fb3b75.gif [deleted file]
typo3/icons/icon_3c085f9ae6.gif [deleted file]
typo3/icons/icon_3e891f9158.gif [deleted file]
typo3/icons/icon_4316b35f1d.gif [deleted file]
typo3/icons/icon_4734dba256.gif [deleted file]
typo3/icons/icon_4a67de7e15.gif [deleted file]
typo3/icons/icon_50d6da96d8.gif [deleted file]
typo3/icons/icon_50e1a0ffb4.gif [deleted file]
typo3/icons/icon_518ce78fa3.gif [deleted file]
typo3/icons/icon_530a10f836.gif [deleted file]
typo3/icons/icon_56b8094482.gif [deleted file]
typo3/icons/icon_5a4ab240d4.gif [deleted file]
typo3/icons/icon_5b879dc41e.gif [deleted file]
typo3/icons/icon_5f6da6391c.gif [deleted file]
typo3/icons/icon_6154f071e0.gif [deleted file]
typo3/icons/icon_63cb79d14d.gif [deleted file]
typo3/icons/icon_64070a40db.gif [deleted file]
typo3/icons/icon_67df7e3935.gif [deleted file]
typo3/icons/icon_69907e62dd.gif [deleted file]
typo3/icons/icon_6a16f30d0e.gif [deleted file]
typo3/icons/icon_6b3c2e00c1.gif [deleted file]
typo3/icons/icon_700589ec0f.gif [deleted file]
typo3/icons/icon_739ec5f077.gif [deleted file]
typo3/icons/icon_74182517a9.gif [deleted file]
typo3/icons/icon_7d6dfd461b.gif [deleted file]
typo3/icons/icon_830746c89e.gif [deleted file]
typo3/icons/icon_8b972a62a6.gif [deleted file]
typo3/icons/icon_8cbf4a449d.gif [deleted file]
typo3/icons/icon_8d74b6967a.gif [deleted file]
typo3/icons/icon_8da21ac0fa.gif [deleted file]
typo3/icons/icon_8e353fff01.gif [deleted file]
typo3/icons/icon_958043c184.gif [deleted file]
typo3/icons/icon_97c063a92e.gif [deleted file]
typo3/icons/icon_99d46d095f.gif [deleted file]
typo3/icons/icon_9b42b72742.gif [deleted file]
typo3/icons/icon_9d43c58ced.gif [deleted file]
typo3/icons/icon_a0aaa70402.gif [deleted file]
typo3/icons/icon_a1e1b10b1f.gif [deleted file]
typo3/icons/icon_a43271d346.gif [deleted file]
typo3/icons/icon_a6a2089da0.gif [deleted file]
typo3/icons/icon_a76c6c1322.gif [deleted file]
typo3/icons/icon_a947fedc6a.gif [deleted file]
typo3/icons/icon_aa721fed1e.gif [deleted file]
typo3/icons/icon_ab336769b4.gif [deleted file]
typo3/icons/icon_b3556f0b1a.gif [deleted file]
typo3/icons/icon_b3f9f36168.gif [deleted file]
typo3/icons/icon_b602733078.gif [deleted file]
typo3/icons/icon_b860c23353.gif [deleted file]
typo3/icons/icon_ba2af37bbf.gif [deleted file]
typo3/icons/icon_bf9e00b5d2.gif [deleted file]
typo3/icons/icon_c049aba16f.gif [deleted file]
typo3/icons/icon_c1d4b999b7.gif [deleted file]
typo3/icons/icon_c33b0a6c13.gif [deleted file]
typo3/icons/icon_c82f0aeb4f.gif [deleted file]
typo3/icons/icon_cb5b0bd837.gif [deleted file]
typo3/icons/icon_cfe024394f.gif [deleted file]
typo3/icons/icon_cfe308933c.gif [deleted file]
typo3/icons/icon_d1eca7846f.gif [deleted file]
typo3/icons/icon_d5017d767b.gif [deleted file]
typo3/icons/icon_d5927ef6ff.gif [deleted file]
typo3/icons/icon_d5fccc038d.gif [deleted file]
typo3/icons/icon_d7a4e09dfd.gif [deleted file]
typo3/icons/icon_d8c67850bb.gif [deleted file]
typo3/icons/icon_dd4182dd57.gif [deleted file]
typo3/icons/icon_e00e15f594.gif [deleted file]
typo3/icons/icon_e18829a00a.gif [deleted file]
typo3/icons/icon_e359adb2d1.gif [deleted file]
typo3/icons/icon_e465305d37.gif [deleted file]
typo3/icons/icon_e4d98f3869.gif [deleted file]
typo3/icons/icon_e576aac06a.gif [deleted file]
typo3/icons/icon_e5fddbe851.gif [deleted file]
typo3/icons/icon_efb54f6c90.gif [deleted file]
typo3/icons/icon_f111090b94.gif [deleted file]
typo3/icons/icon_f1e2cfe815.gif [deleted file]
typo3/icons/icon_f535e98248.gif [deleted file]
typo3/icons/icon_f5e741a136.gif [deleted file]
typo3/icons/icon_f6cf4262ba.gif [deleted file]
typo3/icons/icon_f8ceb88480.gif [deleted file]
typo3/icons/icon_f9e38cab80.gif [deleted file]
typo3/icons/icon_f9fe320fc3.gif [deleted file]
typo3/icons/icon_fa972c9af0.gif [deleted file]
typo3/icons/icon_fbc2d25714.gif [deleted file]
typo3/mod/tools/em/index.php
typo3/mod/web/perm/index.php
typo3/rte_cleaner.php [deleted file]
typo3/rte_select_image.php [deleted file]
typo3/rte_user.php [deleted file]
typo3/status_file.php [deleted file]
typo3/stylesheet.css
typo3/sysext/cms/tbl_tt_content.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/lang/ext_php_api.dat [deleted file]
typo3/sysext/lang/lang.php
typo3/sysext/lang/locallang_db_new_content_el.php [deleted file]
typo3/sysext/lang/locallang_rte_select_image.php [deleted file]
typo3/sysext/lang/locallang_rte_user.php [deleted file]

index 209d211..5fdd3af 100755 (executable)
--- a/TODO.txt
+++ b/TODO.txt
@@ -112,7 +112,7 @@ TCEforms:
                - making copies of select fields etc - check that remapped records are OK treated (with foreign/neg_foreign + free string values)
                - Letting one selectorbox set another hidden fields value apart from its own? [USE: When selecting a template, that also sets the DS value! (Thus a template is always selected!)]
                - Exclude field selection better, in a tree?
-               - set the width of the selector field.
+               - set the width of the selector field 
        - GROUP type:
                - [file] allow the selection of files from the system to be added as REFERENCES, not copied! (Message-ID: <003f01c23503$8cdd69d0$55333bd4@comtech>, + notify "illuminatus")
                - In the thumbnail list add the Edit and view icons as in the good old days.
@@ -122,6 +122,7 @@ TCEforms:
                  - See JH mail: Message-ID: <C018FF617C61AB4588D15494126A5C0F23E410@Soulman.hanno-kirchhoff.de>
                - IFRAME alternative for Element Browser.
                - Like in CB: Copy image/reference from a record to clipboard, then insert that file/reference in another record again (Element Browser change).
+               - set the width of the selector field(s)
        - INPUT type:
                - having a selectorbox from which a default value can be selected (which is just transferred to the input field). Of course the selectorbox can have its content added by a PHP script.
        - ? type:
@@ -197,6 +198,7 @@ Web>List:
 - Support for "grouping": - eg. tt_content elements are grouped by "column" + "language". This should be reflected in the LISTING order (before ordered by the "sorting" column) OR maybe in a hierarchical display?
 - Support for tree-tables (that can be browsed).
 - Support for a "tree-group" -> a chain of tables which are displayed in a tree since each table has a config for a parent field in a former table. (Eg. DS: brand -> domain -> product).
+- Support for display of relations: Files, 1-M, M-M
 - FlexForm tree view / editing: 
        - When a record contains a FlexForm the web>List module could display the fields inside in a nice tree structure which one could expand/collapse! Then by clicking "edit" for a brand you get an interface where you can edit *that branch* of the flexform! Brilliant way to manage large structures inside of flexforms!
                - Can you picture it? That would be like expanding an XML document by a node-tree and add/edit/delete/rearrange any of the internal informational pieces!
@@ -723,6 +725,8 @@ So we are looking at two scenarios:
 
 - Also have the possibility of local users: Thus 1) FIRST a lookup is done in LDAP, 2) THEN if this fails we look in the local mysql table. (Well, this solution is straight forward since a user must ALWAYS have a record in the local MySQL table...)
 
+- Make API so that other authentication solutions than LDAP can be used (eg. another MySQL table!)  [See Rene Fritz's prototype work with services...] 
+
 
 Also see:
 - [Kasper] "LDAP" folder in Mailbox 
diff --git a/changelog.txt b/changelog.txt
deleted file mode 100755 (executable)
index a038f6b..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-TYPO3 3.6.0-dev
-
-PHP:
-!!! $LANG->php3Lang + ->mainLang has been cancelled and replaced with a local-lang call: Search/replace regex: search for '->php3Lang\["([^]]*)"\]\["([^]]*)"\]', replace with '->sL("LLL:EXT:lang/locallang_core.php:\1.\2")'. Same for ->mainLang.
-!!! The global var $AB has been removed (since the "alternative backend" is now THE backend and the classic is totally gone. If you use this var, you can safely expect $AB's value to be TRUE and therefore remove all code which would excute if it was FALSE.
-!!! Removed what looked like unused functions and variables in the backend frameset JavaScript.
-!!! Change db_list_frame and file_list_frame to just "list_frame".
-!!! Cleaned up a lot in the template-class. 
-!!! dfw() and rfw() functions must be substituted with $GLOBALS["TBE_TEMPLATE"]->dfw() / ->rfw()
-!!! fw() is highly depreciated (and does NOT wrap strings anymore!)
-
-!!! if (top.theMenu) top.theMenu.recentuid
-!!! Constant "PATH_temp" has been cancelled - no scripts seemed to use it and the dir is depreciated.
-!!! typo3/temp/ has been cancelled. Changed to typo3/icons/ for STATIC icons and PATH_site.typo3temp/ is now used for the locally generated icons. So no more typo3/temp/ to be writable.
-!!! t3lib_BEfunc::loadTablesDescriptions() and t3lib_BEfunc::loadSingleTableDescription is removed. A function call like t3lib_BEfunc::loadSingleTableDescription("pages",$LANG->lang); is substituted with $LANG->loadSingleTableDescription("pages");
-!!! Function t3lib_BEfunc::pTypes() remove - nothing used it (apparently. prove me wrong... :-)
-!!! Function t3lib_div::extParseurl removed
-!!! Function t3lib_div::imagefinder, t3lib_div::linkfinder, t3lib_div::getStrippedURL, t3lib_div::getMimeType, t3lib_div::debug_white_space, t3lib_div::debug_code, t3lib_div::parsetime, t3lib_div::hardspace, t3lib_div::break_text, t3lib_div::unbreak_text removed
-
-!!! The font files "arial.ttf" and "verdana.ttf" has been removed from the folder t3lib/fonts/ and substituted with similar typefaces, "nimbus.ttf" and "vera.ttf" respectively.
-!!! The script "t3lib/formmail.php" has been removed. Was not used and didn't work anyways.
-
-
-Charsets:
-- A new class "t3lib_cs" has been added. It contains homemade functions for conversion to and from a list of charsets (conversion tables found in t3lib/csconvtbl/). The conversion could be speeded up enourmously by using PHP functions but I simply didn't find any that could be used. By time we can substitute the PHP-processing with internal PHP functions if possible.
-- In TYPO3_CONF_VARS we can now set up a system charset. [BE][forceCharset] This is used a) for storage of information and b) for whole backend. Default is that charset of the current user (as always), but clearly recommended is "UTF-8"!!!
-       - The recommendation is that the forceCharset configuration is used for multilingual sites. In this way the SAME charset is ALWAYS used in the backend regardless of which language the current backend user has chosen. Thus all content in the sysmte is stored in the same charset.
\ No newline at end of file
index 051e397..accb653 100755 (executable)
@@ -2243,13 +2243,9 @@ class t3lib_TCEmain      {
                                // Call post processing function for clear-cache:
                        global $TYPO3_CONF_VARS;
                        if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']))    {
-                               foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] as $funcRef)      {
-                                       $a = array(
-                                               'table' => $table,
-                                               'uid' => $uid,
-                                               'uid_page' => $uid_page
-                                       );
-                                       t3lib_div::callUserFunction($funcRef,$a,$this);
+                               $_params = array('table' => $table,'uid' => $uid,'uid_page' => $uid_page);
+                               foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] as $_funcRef)     {
+                                       t3lib_div::callUserFunction($_funcRef,$_params,$this);
                                }
                        }               
                }
@@ -3679,9 +3675,9 @@ class t3lib_TCEmain       {
                
                        // Call post processing function for clear-cache:
                if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']))    {
-                       foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] as $funcRef)      {
-                               $a =array('cacheCmd'=>$cacheCmd);
-                               t3lib_div::callUserFunction($funcRef,$a,$this);
+                       $_params = array('cacheCmd'=>$cacheCmd);
+                       foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] as $_funcRef)     {
+                               t3lib_div::callUserFunction($_funcRef,$_params,$this);
                        }
                }               
        }
index 33e3913..a9f98cc 100755 (executable)
@@ -1201,6 +1201,8 @@ class t3lib_TStemplate    {
         * @see tslib_frameset::frameParams(), tslib_cObj::typoLink(), tslib_cObj::SEARCHRESULT(), TSpagegen::pagegenInit(), tslib_menu::link()
         */
        function linkData($page,$oTarget,$no_cache,$script,$overrideArray='',$addParams='',$typeOverride='')    {
+               global $TYPO3_CONF_VARS;
+               
                $LD = Array();
 
                        // Overriding some fields in the page record and still preserves the values by adding them as parameters. Little strange function.
@@ -1218,7 +1220,7 @@ class t3lib_TStemplate    {
                        // Setting ID/alias:
                if (!$script)   {$script = $GLOBALS['TSFE']->config['mainScript'];}
                if ($page['alias'])     {
-                       $LD['url']=$script.'?id='.$page['alias'];
+                       $LD['url']=$script.'?id='.rawurlencode($page['alias']);
                } else {
                        $LD['url']=$script.'?id='.$page['uid'];
                }
@@ -1256,11 +1258,13 @@ class t3lib_TStemplate  {
                                list($LD['linkVars'], $remainLinkVars) = $GLOBALS['TSFE']->simulateStaticDocuments_pEnc_onlyP_proc($LD['linkVars']);
                        }
                        
-                       $LD['url'].=$GLOBALS['TSFE']->makeSimulFileName($page['title'],
+                       $LD['url'].=$GLOBALS['TSFE']->makeSimulFileName(
+                                                       $page['title'],
                                                        $page['alias'] ? $page['alias'] : $page['uid'],
                                                        intval($typeNum),
                                                        $LD['linkVars'],
-                                                       $LD['no_cache']?1:0);
+                                                       $LD['no_cache']?1:0
+                                               );
                        
                        if ($flag_simulateStaticDocuments_pEnc) {
                                $LD['linkVars']=$remainLinkVars;
@@ -1282,6 +1286,14 @@ class t3lib_TStemplate   {
                        // Compile the normal total url
                $LD['totalURL']= $this->removeQueryString($LD['url'].$LD['type'].$LD['no_cache'].$LD['linkVars'].$GLOBALS['TSFE']->getMethodUrlIdToken).$LD['sectionIndex'];
 
+                       // Call post processing function for link rendering:
+               if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc']))  {
+                       $_params = array('LD' => &$LD, 'args' => array($page,$oTarget,$no_cache,$script,$overrideArray,$addParams,$typeOverride));
+                       foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'] as $_funcRef)   {
+                               t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                       }
+               }               
+
                        // Return the LD-array  
                return $LD;
        }
index e868b48..d5641e2 100755 (executable)
@@ -83,7 +83,7 @@ $TYPO3_CONF_VARS = Array(
                'requiredExt' => 'cms,lang',                    // String list: List of extensions which are REQUIRED and cannot be unloaded by the Extension Manager!
                'extCache' => 1,                                                // Int. 0,1,2: 0: ext-scripts (ext_localconf.php and ext_tables.php) are NOT cached, but included every time. 1: scripts cached to typo3conf/temp_CACHED_[sitePathHash]* (saves some milliseconds even with PHP-A), 2: scripts cached and prefix includes a hash based on the 'extList' string, 3: scripts cached to typo3conf/temp_CACHED_* (no hash included at all...)
                'extList' => 'tsconfig_help,context_help,extra_page_cm_options,rte,impexp,sys_note,tstemplate,tstemplate_ceditor,tstemplate_info,tstemplate_objbrowser,tstemplate_analyzer,tstemplate_styler,func_wizards,wizard_crpages,wizard_sortpages,lowlevel,install,belog,beuser,phpmyadmin,aboutmodules,imagelist,setup,taskcenter,sys_notepad,taskcenter_recent,taskcenter_rootlist,info_pagetsconfig,viewpage',                                               // String list: List of extensions which are enabled for this install. Use the Extension Manager (EM) to manage this!
-               'extConf' => array(                                             // Config-options for extensions. Allow EM to handle this as well.
+               'extConf' => array(                                             // Config-options for extensions, stored as serialized arrays by extension-keys. Handled automatically by the EM.
 //                     '--key--' => array()
                )
        ),
@@ -180,6 +180,9 @@ $TYPO3_CONF_VARS = Array(
        'USER' => Array(                // Here you may define your own setup-vars for use in your include-scripts. (obsolete, make extension instead)
        ),
        'SC_OPTIONS' => Array(          // Here you can more or less freely define additional configuration for scripts in TYPO3. Of course the features supported depends on the script. See documentation "Inside TYPO3" for examples. Keys in the array are the relative path of a script (for output scripts it should be the "script ID" as found in a comment in the HTML header ) and values can then be anything that scripts wants to define for itself.
+       ),
+       'EXTCONF' => Array (            // Here you may add manually set configuration options for your extensions. Eg. $TYPO3_CONF_VARS['EXTCONF']['my_extension_key']['my_option'] = 'my_value';
+//             '--key--' => array()
        )
 );
 
index 46562e9..7134ae4 100755 (executable)
@@ -192,7 +192,7 @@ class SC_alt_main {
                window.setTimeout("busy_checkLoginTimeout_timer();",2*1000);    // Each 2nd second is enough for checking. The popup will be triggered 10 seconds before the login expires (see above, busy_checkLoginTimeout())
 
                        // Detecting the frameset module navigation frame widths (do this AFTER setting new timeout so that any errors in the code below does not prevent another time to be set!)
-               if (top && top.content && top.content.nav_frame && top.content.nav_frame.document)      {
+               if (top && top.content && top.content.nav_frame && top.content.nav_frame.document && top.content.nav_frame.document.body)       {
                        TS.navFrameWidth = (top.content.nav_frame.document.documentElement && top.content.nav_frame.document.documentElement.clientWidth) ? top.content.nav_frame.document.documentElement.clientWidth : top.content.nav_frame.document.body.clientWidth;
                }
        }
diff --git a/typo3/class.db_layout.inc b/typo3/class.db_layout.inc
deleted file mode 100755 (executable)
index ad0ed07..0000000
+++ /dev/null
@@ -1,1514 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * Include file extending db_list.inc for use with the web_layout module
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-class recordList_layout extends recordList {
-
-       var $nextThree = 3;
-       var $pI_showUser=0;
-       var $pI_showStat=1;
-       var $pages_noEditColumns=0;
-       var $option_showBigButtons=1;
-       var $option_newWizard=1;
-       var $ext_function=0;
-
-       var $tt_contentConfig = Array (
-               "showInfo" => 1,                // Boolean: Display info-marks or not
-               "showCommands" => 1,    // Boolean: Display up/down arrows and edit icons for tt_content records 
-               "showCommands_info" => 1,       // Boolean: Displays infoGif with the command buttons
-               "single" => 1,                  // Boolean: If set, the content of column(s) $this->tt_contentConfig["showSingleCol"] is shown in the total width of the page
-               "showSingleCol" => 0,   // The column(s) to show if single mode (under each other)
-               "languageCols" => 0,
-               "languageMode" => 0,
-               "languageColsPointer" => 0,
-               "showHidden" => 1,              // Displays hidden records as well
-               "sys_language_uid" => 0,        // Which language
-               "cols" => "1,0,2,3"             // The order of the rows: Default is left(1), Normal(0), right(2), margin(3)
-       );
-       
-                       // Internal:
-       var $tt_contentData = Array(
-               "nextThree" => Array(),
-               "prev" => Array(),
-               "next" => Array()
-       );
-
-
-       var $stat_select_field="page_id";
-       var $stat_codes=array();        // eg.  "HITS_days:-1"
-       
-       var $activeTables = array();
-       var $doEdit=1;
-       var $agePrefixes = " min| hrs| days| yrs";
-       
-       var $spaceSearchBoxFromLeft = 0;
-       function getTable($table,$id)   {
-               // Adds the code of a single table
-               global $TCA;
-               t3lib_div::loadTCA($table);
-               switch($table)  {
-                       case "sys_note":
-                               return $this->getTable_sys_note($table,$id);
-                       break;
-                       case "pages":
-                               return $this->getTable_pages($table,$id);
-                       break;
-                       case "tt_board":
-                               return $this->getTable_tt_board($table,$id);
-                       break;
-                       case "tt_address":
-                               return $this->getTable_tt_address($table,$id);
-                       break;
-                       case "tt_links":
-                               return $this->getTable_tt_links($table,$id);
-                       break;
-                       case "tt_guest":
-                               return $this->getTable_tt_guest($table,$id);
-                       break;
-                       case "tt_news":
-                               return $this->getTable_tt_news($table,$id);
-                       break;
-                       case "fe_users":
-                               return $this->getTable_fe_users($table,$id);
-                       break;
-                       case "tt_calender":
-                               return $this->getTable_tt_calender($table,$id);
-                       break;
-                       case "tt_products":
-                               return $this->getTable_tt_products($table,$id);
-                       break;
-                       case "tt_content":
-                               return $this->getTable_tt_content($table,$id);
-                       break;
-               }
-       }
-       
-       function getTable_sys_note($table,$id)  {
-               global $TCA;
-               
-               if (!t3lib_extMgm::isLoaded("sys_note"))        return "";
-
-               $perms_clause = $GLOBALS["BE_USER"]->getPagePermsClause(1);
-               $tree = $this->getTreeObject($id,intval($GLOBALS["SOBE"]->MOD_SETTINGS["pages_levels"]),$perms_clause);
-
-               $this->itemLabels =array();
-               while(list($name,$val)=each($TCA[$table]["columns"]))   {
-                       $this->itemLabels[$name]=$GLOBALS["LANG"]->sL($val["label"]);
-               }
-               if (count($tree->ids))          {
-                       $delClause = t3lib_BEfunc::deleteClause($table);
-                       $query = "SELECT * FROM sys_note where pid in (".implode($tree->ids,",").") AND (!personal OR cruser='".$GLOBALS["BE_USER"]->user[uid]."')".$delClause;
-                       $result = mysql(TYPO3_db,$query);
-                       if (mysql_error()) {echo mysql_error(); debug($query);}
-                       $dbCount = mysql_num_rows($result);
-                       $out="";
-                       if ($dbCount)   {
-                               $this->fieldArray = explode(",","__cmds__,info,note");
-
-                                       // Start table:
-                               $out.='<table border=0 cellpadding=1 cellspacing=2 width=480>';
-
-                                       // header line is drawn
-                               $theData = Array();
-                               $theData["__cmds__"] ="";
-                               $theData["info"] = '<b>Info</b><BR><img src="clear.gif" height=1 width=220>';
-                               $theData["note"] = '<b>Note</b>';
-                               $out.=$this->addelement(1,'',$theData,' bgcolor="'.$this->headLineCol.'"',20);
-
-                                       // half line is drawn
-                               $theData = Array();
-                               $theData["info"] = $this->widthGif;
-                               $out.=$this->addelement(0,'',$theData);
-               
-                               $this->no_noWrap=1;
-                                       // items
-                               $this->eCounter=$this->firstElementNumber;
-                               while ($row = mysql_fetch_assoc($result))       {
-                                       list($flag,$code) = $this->fwd_rwd_nav();
-                                       $out.=$code;
-                                       if ($flag)      {
-                                               $color = Array (
-                                                       0 => '',                // No category
-                                                       1 => ' bgcolor="'.$GLOBALS["SOBE"]->doc->bgColor4.'"',          // Instructions
-                                                       2 => ' bgcolor="'.$GLOBALS["SOBE"]->doc->bgColor2.'"',          // Template
-                                                       3 => '',                // Notes
-                                                       4 => ' bgcolor="'.$GLOBALS["SOBE"]->doc->bgColor5.'"'           // To-do
-                                               );
-                                               $tdparams = $color[$row["category"]];
-                                                       // getting childs:
-
-                                               $info = Array();;
-                                               $theData = Array();
-                                               $this->getProcessedValue($table,"subject,category,author,email,personal",$row,$info);
-                                               $cont=implode($info,"<BR>");
-                                               $head = "<B>Page:</b> ".t3lib_BEfunc::getRecordPath($row["pid"],$perms_clause,10)."<BR>";
-                                               $theData["__cmds__"]= $this->getIcon($table,$row,$row["subject"]);
-                                               $theData["info"] = $head.$cont;
-                                               $theData["note"] = nl2br($row["message"]);
-                                               $out.=$this->addelement(1,'',$theData,$tdparams,20);
-
-
-                                                       // half line is drawn
-                                               $theData = Array();
-                                               $theData["info"] = $this->widthGif;
-                                               $out.=$this->addelement(0,'',$theData);
-                                       }
-                                       $this->eCounter++;
-                               }
-                               $out.='</table>';
-                       }
-               }
-               return $out;
-       }
-       function getTable_pages($table,$id)     {
-               global $TCA;
-
-               $delClause = t3lib_BEfunc::deleteClause($table)." AND ".$GLOBALS["BE_USER"]->getPagePermsClause(1);
-               $out="";
-
-               $query = "SELECT * FROM pages where uid='".$id."'".$delClause;
-               $result = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $row=mysql_fetch_assoc($result);
-               if (!$id)       $row=$GLOBALS["SOBE"]->pageinfo;
-               if (is_array($row))     {
-                       $pKey = $GLOBALS["SOBE"]->MOD_SETTINGS["function"]=="tx_cms_webinfo_hits" ? "hits" : $GLOBALS["SOBE"]->MOD_SETTINGS["pages"];
-
-                       switch($pKey)   {
-                               case "hits":
-                                       $this->fieldArray = explode(",","title,".implode(",",$this->stat_codes));
-                               break;
-                               case 1:
-                                       $this->cleanTableNames();
-                                       $tableNames=$this->allowedTableNames;
-                                       $this->fieldArray = explode(",","title,uid,".implode(",",array_keys($tableNames)));
-                               break;
-                               case 2:
-                                       $this->fieldArray = explode(",","title,uid,lastUpdated,newUntil,no_cache,cache_timeout,php_tree_stop,TSconfig,storage_pid,is_siteroot");
-                               break;
-                               default:
-                                       $this->fieldArray = explode(",","title,uid,alias,starttime,endtime,fe_group,target,url,shortcut");
-                               break;
-                       }
-                       $depth=intval($GLOBALS["SOBE"]->MOD_SETTINGS["pages_levels"]);
-                       
-                               // half line is drawn
-                       $theData = Array();
-                       $theData["subject"] = $this->widthGif;
-                       $out.=$this->addelement(0,'',$theData);
-
-                               // Overriding a few things:
-                       $this->no_noWrap=0;
-                       $color=$GLOBALS["SOBE"]->doc->bgColor3;
-                       $this->oddColumnsTDParams=' bgcolor="'.t3lib_div::modifyHTMLColor($color,-20,-20,-20).'"';
-
-                               // items
-                       $this->eCounter=$this->firstElementNumber;
-
-                       list($flag,$code) = $this->fwd_rwd_nav();
-                       $out.=$code;
-                       $editUids=array();
-                       if ($flag)      {
-                                       // getting childs:
-                               $theRows = Array();
-                               $theRows = $this->pages_getTree($theRows,$row["uid"],$delClause,"",$depth);
-                               if ($GLOBALS["BE_USER"]->doesUserHaveAccess($row,2))    $editUids[]=$row["uid"];
-                               $out.=$this->pages_drawItem($table,$row,count($theRows),$this->fieldArray);
-
-                               reset($theRows);
-                               while(list($n,$sRow)=each($theRows))    {
-                                       if ($GLOBALS["BE_USER"]->doesUserHaveAccess($sRow,2))   $editUids[]=$sRow["uid"];
-                                       $out.=$this->pages_drawItem($table,$sRow,0,$this->fieldArray);
-                               }
-                               $this->eCounter++;      
-                       }
-
-
-                               // header line is drawn
-                       $theData = Array();
-                       $editIdList=implode(",",$editUids);
-                       reset($this->fieldArray);
-                       while(list(,$field)=each($this->fieldArray))    {
-                               if ($editIdList && isset($TCA["pages"]["columns"][$field]) && $field!="uid" && !$this->pages_noEditColumns)     {
-                                       $params="&edit[pages][".$editIdList."]=edit&columnsOnly=".$field."&disHelp=1";
-                                       $eI= '<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params,$this->backPath,"").'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 border=0 align="top"'.t3lib_BEfunc::titleAttrib(sprintf($GLOBALS["LANG"]->getLL("editThisColumn"),ereg_replace(":$","",trim($GLOBALS["LANG"]->sL(t3lib_BEfunc::getItemLabel("pages",$field)))))).'></a>';
-                               } else $eI="";
-                               switch($field)  {
-                                       case "title":
-                                               $theData[$field] = '&nbsp;<b>'.$GLOBALS["LANG"]->sL($TCA[$table]["columns"][$field]["label"]).'</b>'.$eI;
-                                       break;
-                                       case "uid":
-                                               $theData[$field] = '&nbsp;<b>ID:</b>';
-                                       break;
-                                       default:
-                                               if (substr($field,0,6)=="table_")       {
-                                                       $f2 = substr($field,6);
-                                                       if ($TCA[$f2])  {
-                                                               $theData[$field] = '&nbsp;<img src="'.$this->backPath.t3lib_iconWorks::getIcon($f2).'" width=18 height=16'.t3lib_BEfunc::titleAttrib($GLOBALS["LANG"]->sL($TCA[$f2]["ctrl"]["title"]),1).'>';
-                                                       }
-                                               } elseif (substr($field,0,5)=="HITS_")  {
-                                                       $fParts = explode(":",substr($field,5));
-                                                       switch($fParts[0])      {
-                                                               case "days":
-                                                                       $timespan = mktime (0,0,0)+intval($fParts[1])*3600*24;
-                                                                       $theData[$field]='&nbsp;'.date("d",$timespan);
-                                                               break;
-                                                               default:
-                                                                       $theData[$field] = "";
-                                                               break;
-                                                       }
-                                               } else {
-                                                       $theData[$field] = '&nbsp;&nbsp;<b>'.$GLOBALS["LANG"]->sL(stripslashes($TCA[$table]["columns"][$field]["label"])).'</b>'.$eI;
-                                               }
-                                       break;
-                               }
-                       }
-
-                               // Start table:
-                       $this->oddColumnsTDParams="";
-                       $out='<table border=0 cellpadding=0 cellspacing=0>'.$this->addelement(1,'',$theData,' bgcolor="'.$this->headLineCol.'"',20).$out."</table>";
-               }
-               $this->oddColumnsTDParams="";
-               return $out;
-       }
-       function getTable_tt_board($table,$id)  {
-               global $TCA;
-
-               $delClause = t3lib_BEfunc::deleteClause($table);
-               $query = $this->makeQuery($table, $id, "AND parent=0");
-               $this->setTotalItems();
-               $dbCount=0;
-
-               if ($this->totalItems)  {
-                       $result = mysql(TYPO3_db,$query);
-                       if (mysql_error()) {echo mysql_error(); debug($query);}
-                       $dbCount = mysql_num_rows($result);
-               }
-               $out="";
-               if ($dbCount)   {
-                       if ($GLOBALS["SOBE"]->MOD_SETTINGS["tt_board"]=="expand")       {
-                               $this->fieldArray = explode(",","subject,author,date,age");
-                       } else {
-                               $this->fieldArray = explode(",","subject,author,date,age,replys");
-                       }
-
-                               // Start table:
-                       $out.='<table border=0 cellpadding=0 cellspacing=0>';
-
-                               // header line is drawn
-                       $theData = Array();
-                       $theData["subject"] = '<b>'.$GLOBALS["LANG"]->getLL("tt_board_subject").'</b>'; 
-                       $theData["author"] = '<b>'.$GLOBALS["LANG"]->getLL("tt_board_author").'</b>';
-                       $theData["date"] = '<b>'.$GLOBALS["LANG"]->getLL("tt_board_date").'</b>';
-                       $theData["age"] = '<b>'.$GLOBALS["LANG"]->getLL("tt_board_age").'</b>';
-                       if ($GLOBALS["SOBE"]->MOD_SETTINGS["tt_board"]!="expand") {
-                               $theData["replys"] = '<b>'.$GLOBALS["LANG"]->getLL("tt_board_RE").'</b>';
-                       }
-                       $out.=$this->addelement(1,'',$theData,' bgcolor="'.$this->headLineCol.'"',20);
-
-                               // half line is drawn
-                       $theData = Array();
-                       $theData["subject"] = $this->widthGif;
-                       $out.=$this->addelement(0,'',$theData);
-
-                               // items
-                       $this->eCounter=$this->firstElementNumber;
-                       while ($row = mysql_fetch_assoc($result))       {
-                               list($flag,$code) = $this->fwd_rwd_nav();
-                               $out.=$code;
-                               if ($flag)      {
-                                               // getting childs:
-                                       $theRows = Array();
-                                       $theRows = $this->tt_board_getTree ($theRows,$row["uid"],$id,$delClause,"");
-                                       $out.=$this->tt_board_drawItem($table,$row,count($theRows));
-
-                                       if ($GLOBALS["SOBE"]->MOD_SETTINGS["tt_board"]=="expand")       {
-                                               reset($theRows);
-                                               while(list($n,$sRow)=each($theRows))    {
-                                                       $out.=$this->tt_board_drawItem($table,$sRow,0);
-                                               }
-                                       }
-                                       // IKKE-bundne records!!
-                               }
-                               $this->eCounter++;      
-                       }
-                               // finish
-                       $out.="</table>";       
-               }
-
-               return $out;
-       }
-       function getTable_tt_address($table,$id)        {
-               global $TCA;
-
-               switch($GLOBALS["SOBE"]->MOD_SETTINGS["tt_address"])    {
-                       case 1:
-                               $icon = 0;
-                               $fList = "name,address,zip,city,country";
-                       break;
-                       case 2:
-                               $icon = 1;
-                               $fList = "name;title;email;company,image";
-                       break;
-                       default:
-                               $icon = 0;
-                               $fList = "name,email,www,phone,fax,mobile";
-                       break;
-               }
-               $out = $this->makeOrdinaryList($table,$id, $fList, $icon);
-               return $out;
-       }
-       function getTable_tt_links($table,$id)  {
-               global $TCA;
-
-               switch($GLOBALS["SOBE"]->MOD_SETTINGS["tt_links"])      {
-                       case 1:
-                               $fList = "title,hidden,url";
-                       break;
-                       case 2:
-                               $fList = "title;url,note2";
-                       break;
-                       default:
-                               $fList = "title;url,note";
-                       break;
-               }
-
-               $out = $this->makeOrdinaryList($table,$id, $fList,1);
-               return $out;
-       }
-       function getTable_tt_guest($table,$id)  {
-               global $TCA;
-
-               $fList = "title;cr_name;cr_email,note";
-               $out = $this->makeOrdinaryList($table,$id, $fList, 1);
-               return $out;
-       }
-       function getTable_tt_news($table,$id)   {
-               global $TCA;
-
-               $this->addElement_tdParams=array(
-                       "title"=>" nowrap",
-                       "datetime"=>" nowrap",
-                       "starttime"=>" nowrap",
-                       "author"=>" nowrap"
-               );
-               $fList = "title,author,author_email,datetime,starttime,category,image";
-               $out = $this->makeOrdinaryList($table,$id, $fList, 1);
-               $this->addElement_tdParams=array();
-               return $out;
-       }
-       function getTable_fe_users($table,$id)  {
-               global $TCA;
-
-               $this->addElement_tdParams=array(
-                       "username"=>" nowrap",
-                       "password"=>" nowrap",
-                       "usergroup"=>" nowrap",
-                       "name"=>" nowrap",
-                       "address"=>" nowrap",
-                       "zip"=>" nowrap",
-                       "city"=>" nowrap",
-                       "email"=>" nowrap",
-                       "telephone"=>" nowrap"
-               );
-               $fList = "username,password,usergroup,name,email,telephone,address,zip,city";
-               $out = $this->makeOrdinaryList($table,$id, $fList, 1);
-               $this->addElement_tdParams=array();
-               return $out;
-       }
-       function getTable_tt_calender($table,$id)       {
-               global $TCA;
-
-               $type=$GLOBALS["SOBE"]->MOD_SETTINGS["tt_calender"];
-               switch($type)   {
-                       case "date":
-                                       // Date default
-                               $fList = "date,title";
-                               $icon=0;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=0");
-                               return $out;
-                       break;
-                       case "date_ext":
-                                       // Date extended
-                               $fList = "title;date;time;datetext;link,note";
-                               $icon=1;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=0");
-                               return $out;
-                       break;
-                       case "todo":
-                                       // Todo default
-                               $fList = "title,complete,priority,date";
-                               $icon=0;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=1");
-                               return $out;
-                       break;
-                       case "todo_ext":
-                                       // Todo extended
-                               $fList = "title;complete;priority;date;workgroup;responsible;category,note";
-                               $icon=1;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=1");
-                               return $out;
-                       break;
-                       default:
-                                       // Overview, both todo and calender
-                               $fList = "title,date,time,week";
-                               $icon=1;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=0");
-                               $out.= $this->makeOrdinaryList($table,$id, $fList, $icon, " AND type=1");
-                               return $out;
-                       break;
-               }
-       }
-       function getTable_tt_products($table,$id)       {
-               global $TCA;
-
-               $type=$GLOBALS["SOBE"]->MOD_SETTINGS["tt_products"];
-               switch($type)   {
-                       case "ext":
-                               $fList = "title;itemnumber;price;price2;inStock;category,image,note";
-                               $icon=1;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon);
-                               return $out;
-                       break;
-                       default:
-                               $fList = "title,itemnumber,price,category,image";
-                               $icon=1;
-                               $out = $this->makeOrdinaryList($table,$id, $fList, $icon);
-                               return $out;
-                       break;
-               }
-       }
-       function getTable_tt_content($table,$id)        {
-               global $TCA;
-
-               $RTE = $GLOBALS["BE_USER"]->isRTE();
-               
-               $lMarg=1;
-               $showHidden = $this->tt_contentConfig["showHidden"]?"":t3lib_BEfunc::BEenableFields("tt_content");
-
-               $pageTitleParamForAltDoc='&recTitle='.rawurlencode(t3lib_BEfunc::getRecordTitle("pages",t3lib_BEfunc::getRecord("pages",$id),1));
-
-               
-               reset($TCA[$table]["columns"]["CType"]["config"]["items"]);
-               $this->CType_labels =array();
-               while(list(,$val)=each($TCA[$table]["columns"]["CType"]["config"]["items"]))    {
-                       $this->CType_labels[$val[1]]=$GLOBALS["LANG"]->sL($val[0]);
-               }
-               reset($TCA[$table]["columns"]);
-               $this->itemLabels =array();
-               while(list($name,$val)=each($TCA[$table]["columns"]))   {
-                       $this->itemLabels[$name]=$GLOBALS["LANG"]->sL($val["label"]);
-               }
-
-
-
-               if (!$this->tt_contentConfig["single"]) {
-                       $langList = $this->tt_contentConfig["sys_language_uid"];
-                       if ($this->tt_contentConfig["languageMode"])    {
-                               if ($this->tt_contentConfig["languageColsPointer"])     {
-                                       $langList="0,".$this->tt_contentConfig["languageColsPointer"];
-                               } else {
-                                       $langList=implode(",",array_keys($this->tt_contentConfig["languageCols"]));
-                               }
-                               $languageColumn=array();
-                       }
-                       $langListArr = explode(",",$langList);
-                       reset($langListArr);
-                       while(list(,$lP)=each($langListArr))    {       // If NOT languageMode, then we'll only be through this once.
-                               $showLanguage = " AND sys_language_uid=".$lP;
-                               $delClause = t3lib_BEfunc::deleteClause($table);
-                               $cList = explode(",",$this->tt_contentConfig["cols"]);
-                               $content=array();
-                               $head=array();
-                               while(list(,$key)=each($cList)) {
-                                       $query = $this->makeQuery($table, $id, "AND colPos=".intval($key).$showHidden.$showLanguage);
-                                       $result = mysql(TYPO3_db,$query);
-                                       if (mysql_error()) {echo mysql_error(); debug($query);}
-
-
-                                       if ($this->option_showBigButtons && !intval($key) && !mysql_num_rows($result))  {
-                                               $onClick="document.location='db_new_content_el.php?id=".$id."&colPos=".intval($key)."&sys_language_uid=".$lP."&uid_pid=".$id."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';";
-                                               $theNewButton=$GLOBALS["SOBE"]->doc->t3Button($onClick,$GLOBALS["LANG"]->getLL("newPageContent"));
-                                               $content[$key].='<img src=clear.gif width=1 height=5><BR>'.$theNewButton;
-                                       }
-
-                                       $rowArr = $this->getResult($result);
-                                       reset($rowArr);
-                                       while (list(,$row)=each($rowArr))       {
-                                               $editUidList.=$row["uid"].",";
-                                               $content[$key].=$this->tt_content_drawHeader($row,$this->tt_contentConfig["showInfo"]?15:5);
-                                               
-                                               $isRTE=$RTE && $this->isRTEforField("tt_content",$row,"bodytext");
-                                               $content[$key].=$this->linkEditContent($this->tt_content_drawItem($row),$row,$isRTE);
-                                       }
-                                       $newP = $this->newContentElementOnClick($id,$key,$lP);
-                                       $head[$key].=$this->tt_content_drawColHeader(t3lib_BEfunc::getProcessedValue($table,"colPos",$key), ($this->doEdit&&count($rowArr)?"&edit[tt_content][".$editUidList."]=edit".$pageTitleParamForAltDoc:""), $newP);
-                                       $editUidList="";
-                               }
-                               $out = '<tr>';
-                                       reset($cList);
-                                       while(list($k,$key)=each($cList))       {
-                                               if (!$k)        {
-                                                       $out.= '<td><img src="clear.gif" width='.$lMarg.' height=1></td>';
-                                               } else {
-                                                       $out.= '<td><img src="clear.gif" width=4 height=1></td><td bgColor="black"><img src="clear.gif" width=1 height=1></td><td><img src="clear.gif" width=4 height=1></td>';
-                                               }
-                                               $out.= '<td valign=top>'.$head[$key].$content[$key].'</td>';
-                                               if ($this->tt_contentConfig["languageMode"])    {
-                                                       $languageColumn[$key][$lP]=$head[$key].$content[$key]."<BR><BR>";
-                                               }
-                                       }
-                               $out.= '</tr>';
-                               $out = '<table border=0 cellpadding=0 cellspacing=0 width=480>'.$out.'</table>';
-                       } 
-                       
-                               // If language mode, then make another presentation
-                       if ($this->tt_contentConfig["languageMode"])    {
-                               $languageSelector = $this->languageSelector($id);
-                       
-                               $out="";
-                               $midSep = '<td><img src="clear.gif" width=4 height=1></td><td bgColor="black"><img src="clear.gif" width=1 height=1></td><td><img src="clear.gif" width=4 height=1></td>';
-
-                               $cCont=array();
-                               $sCont=array();
-                               reset($langListArr);
-                               while(list(,$lP)=each($langListArr))    {
-                                       $cCont[$lP]='<td valign=top align=center bgColor="'.$GLOBALS["SOBE"]->doc->bgColor6.'"><strong>'.$this->tt_contentConfig["languageCols"][$lP].'</strong></td>';
-                                       if ($lP)        {
-                                               list($lpRecord) = t3lib_BEfunc::getRecordsByField("pages_language_overlay","pid",$id,"AND sys_language_uid=".$lP);
-                                               $params="&edit[pages_language_overlay][".$lpRecord["uid"]."]=edit&overrideVals[pages_language_overlay][sys_language_uid]=".$lP;
-                                               $lPLabel = '<nobr>'.t3lib_iconWorks::getIconImage("pages_language_overlay",$lpRecord,$this->backPath,"align=absmiddle").'<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("edit").'" align="absmiddle"></a>'.htmlspecialchars(t3lib_div::fixed_lgd($lpRecord["title"],20)).'</nobr>';
-                                       } else {
-                                               $lPLabel="";
-                                       }
-                                       $sCont[$lP]='<td>'.$lPLabel.'</td>';
-                               }
-                               $out.='<tr>'.implode($midSep,$cCont).'</tr>';
-                               $out.='<tr>'.implode($midSep,$sCont).'</tr>';
-
-                               reset($languageColumn);
-                               while(list($cKey,$cCont)=each($languageColumn)) {
-                                       $out.='<tr><td valign=top>'.implode('</td>'.$midSep.'<td valign=top>',$cCont).'</td></tr>';
-                               }
-                               $out = $languageSelector.'<table border=0 cellpadding=0 cellspacing=0 width=480>'.$out.'</table>';
-                       }
-               } else {
-                       $showLanguage = " AND sys_language_uid=".$this->tt_contentConfig["sys_language_uid"];
-                       $delClause = t3lib_BEfunc::deleteClause($table);
-                       $cList = explode(",",$this->tt_contentConfig["showSingleCol"]);
-                       $content=array();
-
-                       $out="";
-                                       $out.='<tr>
-                                               <td><img src="clear.gif" width='.$lMarg.' height=1></td>
-                                               <td valign=top><img src="clear.gif" width=150 height=1></td>
-                                               <td><img src="clear.gif" width=10 height=1></td>
-                                               <td valign=top><img src="clear.gif" width=300 height=1></td>
-                                               </tr>
-                                       ';
-                       while(list($counter,$key)=each($cList)) {
-                                       
-                               $query = $this->makeQuery($table, $id, "AND colPos=".intval($key).$showHidden.$showLanguage);
-                               $result = mysql(TYPO3_db,$query);
-                               if (mysql_error()) {echo mysql_error(); debug($query);}
-                               $c=0;
-                               $rowArr = $this->getResult($result);
-                               $rowOut="";
-
-                               if ($this->option_showBigButtons && !intval($key) && !mysql_num_rows($result))  {
-                                       $onClick="document.location='db_new_content_el.php?id=".$id."&colPos=".intval($key)."&sys_language_uid=".$lP."&uid_pid=".$id."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';";
-                                       $theNewButton=$GLOBALS["SOBE"]->doc->t3Button($onClick,$GLOBALS["LANG"]->getLL("newPageContent"));
-                                       $theNewButton='<img src=clear.gif width=1 height=5><BR>'.$theNewButton;
-                               } else $theNewButton="";
-
-                               reset($rowArr);
-                               while (list(,$row)=each($rowArr))       {
-                                       $editUidList.=$row["uid"].",";
-                                       $c++;
-
-                                       $isRTE=$RTE && $this->isRTEforField("tt_content",$row,"bodytext");
-                                       $rowOut.='<tr>
-                                               <td></td>
-                                               <td valign=top>'.$this->tt_content_drawHeader($row).'</td>
-                                               <td></td>
-                                               <td valign=top>'.$this->linkEditContent($this->tt_content_drawItem($row),$row,$isRTE).'</td></tr>
-                                       ';
-                                       if ($c!=mysql_num_rows($result))        {
-                                               $rowOut.='<tr><td></td><td colspan=3>
-                                                       <img src="gfx/stiblet_medium2.gif" width=468 height=1>
-                                                       </td></tr>
-                                               ';
-                                       }
-                               }
-                               if ($counter)   {
-                                       $out.='<tr><td></td><td colspan=3><BR><BR><BR><BR>
-                                               </td></tr>
-                                       ';
-                               }
-
-                               $newP = $this->newContentElementOnClick($id,$key,$this->tt_contentConfig["sys_language_uid"]);
-                               $out.='<tr>
-                                       <td></td>
-                                       <td valign=top colspan=3>'.
-                                               $this->tt_content_drawColHeader(t3lib_BEfunc::getProcessedValue($table,"colPos",$key), ($this->doEdit&&count($rowArr)?"&edit[tt_content][".$editUidList."]=edit".$pageTitleParamForAltDoc:""), $newP).
-                                               $theNewButton.
-                                               '<BR></td></tr>
-                               ';
-                               $out.=$rowOut;
-                       }
-                       $out = '<table border=0 cellpadding=0 cellspacing=0 width=400>'.$out.'</table>';
-               }
-               
-                       // edit page title:
-               if ($this->option_showBigButtons)       {
-                       $bArray=array();
-                       $bArray[0]=$GLOBALS["SOBE"]->doc->t3Button(t3lib_BEfunc::editOnClick("&edit[pages][".$id."]=edit",$this->backPath,""),$GLOBALS["LANG"]->getLL("editPageTitle"));
-                       $bArray[1]=$GLOBALS["SOBE"]->doc->t3Button("document.location='move_el.php?table=pages&uid=".$id."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';",$GLOBALS["LANG"]->getLL("move_page"));
-                       $bArray[2]=$GLOBALS["SOBE"]->doc->t3Button("document.location='db_new.php?id=".$id."&pagesOnly=1&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';",$GLOBALS["LANG"]->getLL("newPage2"));
-                       if ($this->ext_function==1) $bArray[3]=$GLOBALS["SOBE"]->doc->t3Button("document.location='db_new_content_el.php?id=".$id."&sys_language_uid=".$GLOBALS["SOBE"]->current_sys_language."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';",$GLOBALS["LANG"]->getLL("newPageContent2"));
-                       $out='<table border=0 cellpadding=4 cellspacing=0><tr><td>'.implode("</td><td>",$bArray).'</td></tr></table><img src=clear.gif width=1 height=5><BR>'.$out;
-               }
-               
-               return $out;
-       }
-       function newContentElementOnClick($id,$colPos,$sys_language)    {
-               if ($this->option_newWizard)    {
-                       $onClick="document.location='db_new_content_el.php?id=".$id."&colPos=".$colPos."&sys_language_uid=".$sys_language."&uid_pid=".$id."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';";
-               } else {
-                       $onClick=t3lib_BEfunc::editOnClick("&edit[tt_content][".$id."]=new&defVals[tt_content][colPos]=".$colPos."&defVals[tt_content][sys_language_uid]=".$sys_language);
-               }
-               return $onClick;
-       }
-       
-       function linkEditContent($str,$row,$isRTE=0)    {
-               $addButton="";
-               $onClick = "";
-
-               if ($this->doEdit)      {
-                       if ($isRTE)     {
-                               $params = array();
-                               $params["table"] = "tt_content";
-                               $params["uid"] = $row["uid"];
-                               $params["pid"] = $row["pid"];
-                               $params["field"] = "bodytext";
-                               $params["returnUrl"] = t3lib_div::linkThisScript();
-                               $onClick="document.location='wizard_rte.php?".t3lib_div::implodeArrayForUrl("",array("P"=>$params))."';return false;";
-                               $addButton=$this->option_showBigButtons?$GLOBALS["SOBE"]->doc->t3Button($onClick,$GLOBALS["LANG"]->getLL("editInRTE")):"";
-                       }// else {
-                               $onClick=t3lib_BEfunc::editOnClick("&edit[tt_content][".$row["uid"]."]=edit");
-                       //}
-               }
-               return $onClick ? '<a href="#" onClick="'.$onClick.'"'.t3lib_BEfunc::titleAttrib($GLOBALS["LANG"]->getLL("edit"),1).'>'.$str.'</a>'.$addButton : $str;
-       }
-       function languageSelector($id)  {
-               if ($GLOBALS["BE_USER"]->check("tables_select","pages_language_overlay"))       {
-                               // All:
-                       $query = $GLOBALS["SOBE"]->languageQuery(0);
-                       $res = mysql(TYPO3_db,$query);
-                       $langSelItems=array();
-                       $langSelItems[0]='<option value="0"></option>';
-                       while($row=mysql_fetch_assoc($res))     {
-                               $langSelItems[$row["uid"]]='<option value="'.$row["uid"].'">'.$row["title"].'</option>';
-                       }
-                               // Local:
-                       $query = $GLOBALS["SOBE"]->languageQuery($id);
-                       $res = mysql(TYPO3_db,$query);
-                       while($row=mysql_fetch_assoc($res))     {
-                               unset($langSelItems[$row["uid"]]);
-                       }
-                       if (count($langSelItems)>1)             {
-                               return $GLOBALS["LANG"]->getLL("new_language").': <select name="createNewLanguage" onChange="document.location=\'alt_doc.php?&edit[pages_language_overlay]['.$id.']=new&overrideVals[pages_language_overlay][sys_language_uid]=\'+this.options[this.selectedIndex].value+\'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'\'">'.implode("",$langSelItems).'</select><BR><BR>';
-                       }
-               }
-       }
-       function makeOrdinaryList($table, $id, $fList, $icon=0, $addWhere="")   {
-               global $TCA;
-               $out="";
-               $delClause = t3lib_BEfunc::deleteClause($table);
-               $query = $this->makeQuery($table, $id, $addWhere);
-               $this->setTotalItems();
-               $dbCount=0;
-               if ($this->totalItems)  {
-                       $result = mysql(TYPO3_db,$query);
-                       $titleCol = $TCA[$table][ctrl][label];
-                       if (mysql_error()) {echo mysql_error(); debug($query);}
-                       $dbCount = mysql_num_rows($result);
-               }
-               $out="";
-               if ($dbCount)   {
-                       $this->fieldArray = explode(",","__cmds__,".$fList);
-
-                               // Start table:
-                       $out.='<table border=0 cellpadding=1 cellspacing=2 width=480>';
-
-                               // header line is drawn
-                       $theData=array();
-                       $theData = $this->headerFields($this->fieldArray,$table,$theData);
-                       $out.=$this->addelement(1,'',$theData,' bgcolor="'.$this->headLineCol.'"',15);
-                       
-                               // items
-                       $this->eCounter=$this->firstElementNumber;
-                       while ($row = mysql_fetch_assoc($result))       {
-                               list($flag,$code) = $this->fwd_rwd_nav();
-                               $out.=$code;
-                               if ($flag)      {
-                                               $params="&edit[".$table."][".$row["uid"]."]=edit";
-                                               $Nrow=array();
-                                               if ($icon)      {
-                                                       $recTitle = htmlspecialchars($row[$titleCol]);
-                                                       $Nrow["__cmds__"]= $this->getIcon($table,$row,$recTitle);
-                                               }
-                                               if ($this->doEdit)      {
-                                                       $Nrow["__cmds__"].='<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("edit").'" align="top"></a>';
-                                               } else {
-                                                       $Nrow["__cmds__"].=$this->noEditIcon();
-                                               }
-
-                                               $Nrow = $this->dataFields($this->fieldArray,$table,$row,$Nrow);
-                                               $color=$GLOBALS["SOBE"]->doc->bgColor4;
-                                               $tdparams = $this->eCounter%2 ? ' bgcolor="'.$color.'"' : ' bgcolor="'.t3lib_div::modifyHTMLColor($color,-20,-20,-20).'"';
-                                               $out.=$this->addelement(1,'',$Nrow,$tdparams);
-                                       // IKKE-bundne records!!
-                               }
-                               $this->eCounter++;      
-                       }
-                               // finish
-                       $out.="</table>";       
-               }
-               return $out;
-       }
-       function dataFields($fieldArr,$table,$row,$out=array()) {
-               global $TCA;
-               if ($TCA[$table])       {
-                       t3lib_div::loadTCA($table);
-                       reset($fieldArr);
-                       $thumbsCol = $TCA[$table]["ctrl"]["thumbnail"];
-                       while(list(,$fieldName)=each($fieldArr))        {
-                               if ($TCA[$table]["columns"][$fieldName])        {
-                                       if ($fieldName==$thumbsCol)     {
-                                               $out[$fieldName] = $this->thumbCode($row,$table,$fieldName);
-                                       } else {
-                                               $out[$fieldName] = nl2br(trim(t3lib_div::fixed_lgd(t3lib_BEfunc::getProcessedValue($table,$fieldName,$row[$fieldName]),250)));
-                                       }
-                               } else {
-                                       $theFields = explode(";",$fieldName);
-                                       while(list(,$fName2)=each($theFields))  {
-                                               if ($TCA[$table]["columns"][$fName2])   {
-                                                        $out[$fieldName].= "<b>".$GLOBALS["LANG"]->sL($TCA[$table]["columns"][$fName2]["label"])."</b>&nbsp;&nbsp;".t3lib_div::fixed_lgd(t3lib_BEfunc::getProcessedValue($table,$fName2,$row[$fName2]),25)."<BR>";
-                                               }
-                                       }
-                               }
-                               if (!$out[$fieldName])  $out[$fieldName]="&nbsp;";
-                               if ($this->isDisabled($table,$row))     {
-                                       $out[$fieldName] = $GLOBALS["TBE_TEMPLATE"]->dfw($out[$fieldName]);
-                               } else {
-                                       $out[$fieldName] = $out[$fieldName];
-                               }
-                       }
-               }
-               return $out;
-       }
-       function isDisabled($table,$row)        {
-               global $TCA;
-               if (
-                       ($TCA[$table]["ctrl"]["enablecolumns"]["disabled"] && $row[$TCA[$table]["ctrl"]["enablecolumns"]["disabled"]]) ||
-                       ($TCA[$table]["ctrl"]["enablecolumns"]["starttime"] && $row[$TCA[$table]["ctrl"]["enablecolumns"]["starttime"]]>time() ) ||
-                       ($TCA[$table]["ctrl"]["enablecolumns"]["endtime"] && $row[$TCA[$table]["ctrl"]["enablecolumns"]["endtime"]] && $row[$TCA[$table]["ctrl"]["enablecolumns"]["endtime"]]<time())
-               )       return true;
-       }
-       function headerFields($fieldArr,$table,$out=array())    {
-               global $TCA;
-               t3lib_div::loadTCA($table);
-               reset($fieldArr);
-               while(list(,$fieldName)=each($fieldArr))        {
-                       $ll = $GLOBALS["LANG"]->sL($TCA[$table]["columns"][$fieldName]["label"]);
-                       $out[$fieldName] = '<B>'.($ll?$ll:"&nbsp;").'</b>';
-               }
-               return $out;
-       }
-       function getResult($result)     {
-               $editUidList="";
-               $recs=Array();
-               $nextTree = $this->nextThree;
-               $c=0;
-               $output=Array();
-               while ($row = mysql_fetch_assoc($result))       {
-                       $output[]=$row;
-                       $recs[$c]=$row["uid"];
-                       
-                       for($a=0;$a<$nextTree;$a++)     {
-                               if(isset($recs[$c-$a])) {
-                                       $this->tt_contentData["nextThree"][$recs[$c-$a]].=$row["uid"].",";
-                                       
-                               }
-                       }
-                       if (isset($recs[$c-1])) {
-                               if (isset($recs[$c-2])) {
-                                       $this->tt_contentData["prev"][$row["uid"]]=-$recs[$c-2];
-                               } else {
-                                       $this->tt_contentData["prev"][$row["uid"]]=$row["pid"];
-                               }
-                               $this->tt_contentData["next"][$recs[$c-1]]=-$row["uid"];
-                       }
-                       $c++;
-               }
-               return $output;
-       }
-       function tt_board_getTree ($theRows,$parent,$pid,$qWhere,$treeIcons) {
-               $query = "SELECT * FROM tt_board WHERE pid=".$pid." and parent=".$parent.$qWhere." ORDER BY crdate";
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               $c=0;
-               $rc = mysql_num_rows($res);
-               while($row = mysql_fetch_assoc($res))   {
-                       $c++;
-                       $row["treeIcons"] = $treeIcons.($rc==$c?'<img src="'.$this->backPath.'t3lib/gfx/ol/joinbottom.gif" width=18 height=16 align="top">':'<img src="'.$this->backPath.'t3lib/gfx/ol/join.gif" width=18 height=16 align="top">');
-                       $theRows[]=$row;
-                               
-                               // get the branch
-                       $theRows = $this->tt_board_getTree($theRows,$row["uid"],$row["pid"],$qWhere,$treeIcons.($rc==$c?'<img src="'.$this->backPath.'t3lib/gfx/ol/blank.gif" width=18 height=16 align="top">' : '<img src="'.$this->backPath.'t3lib/gfx/ol/line.gif" width=18 height=16 align="top">'));
-               }
-               return $theRows;        
-       }
-       function tt_board_drawItem($table,$row,$re)     {
-                       // Initialization
-               $recTitle = htmlspecialchars($row["subject"]);
-               $theIcon=$this->getIcon($table,$row,$recTitle);
-               
-                       //      Preparing and getting the data-array
-               $theData = Array();
-               $theData["subject"] = t3lib_div::fixed_lgd($recTitle,25).'&nbsp; &nbsp;';
-               $theData["author"] = t3lib_div::fixed_lgd($row["author"],15).'&nbsp; &nbsp;';
-               $theData["date"] = t3lib_div::fixed_lgd(t3lib_BEfunc::datetime($row["crdate"]),20).'&nbsp; &nbsp;';
-               $theData["age"] = t3lib_BEfunc::calcAge(time()-$row["crdate"], $this->agePrefixes).'&nbsp; &nbsp;';
-               if ($re)        {
-                       $theData["replys"] = $re;
-               }
-
-
-               $theData["subject"]=$row["treeIcons"].$theIcon.$theData["subject"];
-               return $this->addelement(1,"",$theData);
-       }
-       function tt_content_drawHeader($row,$space=0)   {
-               global $TCA;
-               $table="tt_content";
-               t3lib_div::loadTCA($table);
-               $recTitle = $this->CType_labels[$row["CType"]];
-
-               if ($lockInfo=t3lib_BEfunc::isRecordLocked("tt_content",$row["uid"]))   {
-                       $lockIcon='<a href="#" onClick="alert('.$GLOBALS['LANG']->JScharCode($lockInfo["msg"]).');return false;"><img src="gfx/recordlock_warning3.gif" width="17" height="12" vspace=2 border="0" align=top'.t3lib_BEfunc::titleAttrib($lockInfo["msg"]).'></a>';
-               } else $lockIcon="";
-
-               $header = $this->getIcon("tt_content",$row,$recTitle).$lockIcon.'&nbsp;<b>'.$recTitle.'</b>';
-
-               $out = '<tr><td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor4.'">'.$header.'</td></tr>';
-               if ($this->tt_contentConfig["showInfo"])        {
-                       $info = Array();;
-
-                       $this->getProcessedValue($table,"hidden,starttime,endtime,fe_group,spaceBefore,spaceAfter,section_frame,sectionIndex,linkToTop",$row,$info);
-                       
-//                     t3lib_div::print_array($info);
-
-                       if ($this->tt_contentConfig["showCommands"])    {
-                               $out.= '<tr><td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor5.'">';
-                                       // Info:
-/*                             if ($this->tt_contentConfig["showCommands_info"] && count($info))       {
-                                       $out.=trim($this->infoGif($info));
-                               }
-       */                      if ($this->doEdit)      {
-                                               // Edit:                                
-                                       $params="&edit[tt_content][".$this->tt_contentData["nextThree"][$row["uid"]]."]=edit";
-                                       $out.='<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 hspace=2 border=0 title="'.($this->nextThree>1?sprintf($GLOBALS["LANG"]->getLL("nextThree"),$this->nextThree):$GLOBALS["LANG"]->getLL("edit")).'" align="top"></a>';
-               
-                                               // New:
-
-                                       if ($this->option_newWizard)    {
-                                               $onClick="document.location='db_new_content_el.php?id=".$row["pid"].'&sys_language_uid='.$row["sys_language_uid"]."&colPos=".$row["colPos"]."&uid_pid=".(-$row["uid"])."&returnUrl=".rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI"))."';";
-                                       } else {
-                                               $params="&edit[tt_content][".(-$row["uid"])."]=new";
-                                               $onClick = t3lib_BEfunc::editOnClick($params);
-                                       }
-                                       $out.='<A HREF="#" onClick="'.$onClick.'"><img src="'.$this->backPath.'gfx/new_record.gif" width=16 height=12 hspace=1 border=0 title="'.$GLOBALS["LANG"]->getLL("newAfter").'" align="top"></a>';
-               
-                                               // Up
-                                       if ($this->tt_contentData["prev"][$row["uid"]]) {
-                                               $params="&cmd[tt_content][".$row["uid"]."][move]=".$this->tt_contentData["prev"][$row["uid"]];
-                                               $out.='<A HREF="'.$GLOBALS["SOBE"]->doc->issueCommand($params).'"><img src="'.$this->backPath.'gfx/button_up.gif" width=11 height=10 vspace=1 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("moveUp").'" align="top"></a>';
-                                       } else {
-                                               $out.='<img src="clear.gif" width=11 height=10 vspace=1 hspace=2 align="top">';
-                                       }
-                                               // Down
-                                       if ($this->tt_contentData["next"][$row["uid"]]) {
-                                               $params="&cmd[tt_content][".$row["uid"]."][move]=".$this->tt_contentData["next"][$row["uid"]];
-                                               $out.='<A HREF="'.$GLOBALS["SOBE"]->doc->issueCommand($params).'"><img src="'.$this->backPath.'gfx/button_down.gif" width=11 height=10 vspace=1 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("moveDown").'" align="top"></a>';
-                                       } else {
-                                               $out.='<img src="clear.gif" width=11 height=10 vspace=1 hspace=2 align="top">';
-                                       }
-                                               // Hide
-                                       $hiddenField = $TCA[$table]["ctrl"]["enablecolumns"]["disabled"];
-                                       if ($hiddenField && $TCA[$table]["columns"][$hiddenField] && (!$TCA[$table]["columns"][$hiddenField]["exclude"] || $GLOBALS["BE_USER"]->check("non_exclude_fields",$table.":".$hiddenField)))   {
-                                               if ($row[$hiddenField]) {
-                                                       $params="&data[tt_content][".$row["uid"]."][".$hiddenField."]=0";
-                                                       $out.='<A HREF="'.$GLOBALS["SOBE"]->doc->issueCommand($params).'"><img src="'.$this->backPath.'gfx/button_unhide.gif" width=11 height=10 vspace=1 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("unHide").'" align="top"></a>';
-                                               } else {
-                                                       $params="&data[tt_content][".$row["uid"]."][".$hiddenField."]=1";
-                                                       $out.='<A HREF="'.$GLOBALS["SOBE"]->doc->issueCommand($params).'"><img src="'.$this->backPath.'gfx/button_hide.gif" width=11 height=10 vspace=1 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("hide").'" align="top"></a>';
-                                               }
-                                       }
-
-                                               // Delete
-                                       $params="&cmd[tt_content][".$row["uid"]."][delete]=1";
-                                       $out.='<A HREF="'.$GLOBALS["SOBE"]->doc->issueCommand($params).'" onClick="return confirm('.$GLOBALS['LANG']->JScharCode($GLOBALS["LANG"]->getLL("deleteWarning")).');"><img src="'.$this->backPath.'gfx/garbage.gif" width=11 height=12 vspace=0 hspace=1 border=0 title="'.$GLOBALS["LANG"]->getLL("deleteItem").'" align="top"></a>';
-                               }
-                               $out.= '</td></tr>';
-                       }
-                       if (count($info))       {
-                               $out.= '<tr><td bgColor="'.t3lib_div::modifyHTMLColor($GLOBALS["SOBE"]->doc->bgColor4,-20,-20,-20).'">'.implode($info,'<BR>').'</td></tr>';
-                       }
-               }
-               return '<table border=0 cellpadding=0 cellspacing=0 width="100%">'.($space?'<tr><td><img src="clear.gif" height='.$space.'></td></tr>':'').$out.'</table>';
-       }
-       function tt_content_drawColHeader($colName,$editParams,$newParams)      {
-               global $TCA;
-               $table="tt_content";
-
-               $out = '<tr><td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor2.'" nowrap><img src="clear.gif" width=1 height=2><BR><b><div align="center">'.strtoupper($colName).'</div></b><img src="clear.gif" width=1 height=2></td></tr>';
-
-               if ($this->tt_contentConfig["showCommands"])    {
-                       $out.= '<tr><td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor5.'">';
-                               // Edit:                                
-                       if ($editParams)        {
-                               $params=$editParams;
-                               $out.='<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("editColumn").'" align="top"></a>';
-                       }
-                       if ($newParams) {
-                               $params=$newParams;
-                               $out.='<A HREF="#" onClick="'.$params.'"><img src="'.$this->backPath.'gfx/new_record.gif" width=16 height=12 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("newInColumn").'" align="top"></a>';
-                       }
-
-                       $out.= '</td></tr>';
-               }
-               return '<table border=0 cellpadding=0 cellspacing=0 width="100%">'.($space?'<tr><td><img src="clear.gif" height='.$space.'></td></tr>':'').$out.'</table>';
-       }
-       function pages_getTree ($theRows,$pid,$qWhere,$treeIcons,$depth) {
-               $depth--;
-               if ($depth>=0)  {
-                       $query = "SELECT * FROM pages WHERE pid=".$pid.$qWhere." ORDER BY sorting";
-                       $res = mysql(TYPO3_db,$query);
-                       echo mysql_error();
-                       $c=0;
-                       $rc = mysql_num_rows($res);
-                       while($row = mysql_fetch_assoc($res))   {
-                               $c++;
-                               $row["treeIcons"] = $treeIcons.($rc==$c?'<img src="'.$this->backPath.'t3lib/gfx/ol/joinbottom.gif" width=18 height=16 align="top">':'<img src="'.$this->backPath.'t3lib/gfx/ol/join.gif" width=18 height=16 align="top">');
-                               $theRows[]=$row;
-                               
-                               // get the branch
-                               $spaceOutIcons = ($rc==$c?'<img src="'.$this->backPath.'t3lib/gfx/ol/blank.gif" width=18 height=16 align="top">':'<img src="'.$this->backPath.'t3lib/gfx/ol/line.gif" width=18 height=16 align="top">');
-                               $theRows = $this->pages_getTree($theRows,$row["uid"],$qWhere,$treeIcons.$spaceOutIcons,$row["php_tree_stop"]?0:$depth);
-                       }
-               } else {
-                       $query = "SELECT count(*) FROM pages WHERE pid=".$pid.$qWhere;
-                       $res = mysql(TYPO3_db,$query);
-                       $row = mysql_fetch_row($res);
-                       if ($row[0])    {
-                               $this->plusPages[$pid]=$row[0];
-                       }                       
-               }
-               return $theRows;        
-       }
-       function pages_drawItem($table,$row,$re,$fieldArr)      {
-               global $TCA;
-                       // Initialization
-               $recTitle = htmlspecialchars($row["title"]);
-               $theIcon=$this->getIcon($table,$row,$recTitle);
-               
-                       //      Preparing and getting the data-array
-               $theData = Array();
-               while(list(,$field)=each($fieldArr))    {
-                       switch($field)  {
-                               case "title":
-                                       $red = $this->plusPages[$row["uid"]] ? '<font color="red"><b>+&nbsp;</b></font>' : '';
-                                       $pTitle = t3lib_BEfunc::getProcessedValue($table,$field,$row[$field],20);
-                                       if ($red)       {
-                                               $pTitle = '<a href="'.$this->script.'?id='.$row["uid"].'">'.$pTitle.'</a>';
-                                       }
-                                       $theData[$field]=$row["treeIcons"].$theIcon.$red.$pTitle.'&nbsp;&nbsp;';
-                               break;
-                               case "php_tree_stop":
-                               case "TSconfig":
-                                       $theData[$field] = $row[$field]?'&nbsp;<b>x</b>':'&nbsp;';
-                               break;
-                               case "uid":
-                                       if ($GLOBALS["BE_USER"]->doesUserHaveAccess($row,2))    {
-                                               $params="&edit[pages][".$row["uid"]."]=edit";
-                                               $eI= '<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params,$this->backPath,"").'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 hspace=2 border=0 align="top"'.t3lib_BEfunc::titleAttrib($GLOBALS["LANG"]->getLL("editThisPage")).'></a>';
-                                       } else $eI="";
-                                       $theData[$field] = '<div align="right">'.$row["uid"].$eI.'</div>';
-                               break;
-                               default:
-                                       if (substr($field,0,6)=="table_")       {
-                                               $f2 = substr($field,6);
-                                               if ($TCA[$f2])  {
-                                                       $c = $this->numberOfRecords($f2,$row["uid"]);
-                                                       $theData[$field] = '&nbsp;&nbsp;'.($c?$c:'');
-                                               }
-                                       } elseif (substr($field,0,5)=="HITS_")  {
-                                               if (t3lib_extMgm::isLoaded("sys_stat")) {
-                                                       $fParts = explode(":",substr($field,5));
-                                                       switch($fParts[0])      {
-                                                               case "days":
-                                                                       $timespan = mktime (0,0,0)+intval($fParts[1])*3600*24;
-                                                                               // Page hits
-                                                                       $query='SELECT count(*) FROM sys_stat 
-                                                                               WHERE '.$this->stat_select_field.'='.$row["uid"].' 
-                                                                               AND tstamp>='.$timespan.' AND tstamp<'.($timespan+3600*24);
-                                                                       $res=mysql(TYPO3_db,$query);
-                                                                       list($number) = mysql_fetch_row($res);
-                                                                       if ($number)    {
-                                                                                       // Sessions
-                                                                               $query.=' AND surecookie!="" GROUP BY surecookie';
-                                                                               $res=mysql(TYPO3_db,$query);
-                                                                               $scnumber = mysql_num_rows($res);
-                                                                               
-                                                                               $number.= "/".$scnumber;
-                                                                       } else {
-                                                                               $number="";
-                                                                       }
-                                                               break;
-                                                       }
-                                                       $theData[$field]= '&nbsp;'.$number;
-                                               } else {
-                                                       $theData[$field]= '&nbsp;';
-                                               }
-                                       } else {
-                                               $theData[$field]= '&nbsp;&nbsp;'.t3lib_BEfunc::getProcessedValue($table,$field,$row[$field]);
-                                       }
-                               break;                  
-                       }
-               }
-               return $this->addelement(1,"",$theData);
-       }
-       function numberOfRecords($table,$pid)   {
-               global $TCA;
-               if ($TCA[$table])       {
-                       $delClause = t3lib_BEfunc::deleteClause($table);
-                       $query = "SELECT count(*) FROM ".$table." where pid='".$pid."'".$delClause;
-                       $result = mysql(TYPO3_db,$query);
-                       $c=0;
-                       if ($row=mysql_fetch_row($result))      {
-                               $c=$row[0];
-                       }
-                       return $c;
-               }
-       }
-       function getProcessedValue($table,$fieldList,$row,&$info)       {
-               $fieldArr = explode(",",$fieldList);
-               while(list(,$field)=each($fieldArr))    {
-                       if ($row[$field])       {
-                               $info[]= $this->itemLabels[$field]." ".htmlspecialchars(t3lib_BEfunc::getProcessedValue($table,$field,$row[$field]));
-                       }
-               }
-       }
-       function tt_content_drawItem($row)      {
-               global $TCA;
-               $out="";
-               $table="tt_content";
-               if ($row["header"] && $row["header_layout"]!=100)       {
-                       $infoArr = Array();
-                       $this->getProcessedValue($table,"header_position,header_layout,header_link",$row,$infoArr);
-
-                       $out.=  ($row["date"]?$this->itemLabels["date"]." ".t3lib_BEfunc::date($row["date"])."<BR>":""). 
-                                       $this->infoGif($infoArr).
-                                       "<b>".$this->renderText($row["header"])."</b><BR>";
-               }
-               $infoArr=Array();
-               switch($row["CType"])   {
-                       case "header":
-                               if ($row["subheader"])  {
-                                       $this->getProcessedValue($table,"layout",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->renderText($row["subheader"])."<BR>";
-                               }
-                       break;
-                       case "text":
-                       case "textpic":
-                       case "image":
-                               if ($row["CType"]=="text" || $row["CType"]=="textpic")  {
-                                       if ($row["bodytext"])   {
-                                               $this->getProcessedValue($table,"text_align,text_face,text_size,text_color,text_properties",$row,$infoArr);
-                                               $out.=  $this->infoGif($infoArr).
-                                                               $this->renderText($row["bodytext"])."<BR>";
-                                       }
-                               }
-                               if ($row["CType"]=="textpic" || $row["CType"]=="image") {       
-                                       if ($row["image"])      {
-                                               $infoArr=Array();
-                                               $this->getProcessedValue($table,"imageorient,imagecols,image_noRows,imageborder,imageheight,image_link,image_zoom,image_compression,image_effects,image_frames",$row,$infoArr);
-                                               $out.=  $this->infoGif($infoArr).
-                                                               $this->thumbCode($row,"tt_content","image")."<BR>";
-                                                               
-                                               if ($row["imagecaption"])       {
-                                                       $infoArr=Array();
-                                                       $this->getProcessedValue($table,"imagecaption_position",$row,$infoArr);
-                                                       $out.=  $this->infoGif($infoArr).
-                                                                       $this->renderText($row["imagecaption"])."<BR>";
-                                               }
-                                       }
-                               }
-                       break;
-                       case "bullets":
-                               if ($row["bodytext"])   {
-                                       $this->getProcessedValue($table,"layout,text_align,text_face,text_size,text_color,text_properties",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->renderText($row["bodytext"])."<BR>";
-                               }
-                       break;
-                       case "table":
-                               if ($row["bodytext"])   {
-                                       $this->getProcessedValue($table,"table_bgColor,table_border,table_cellspacing,cols,layout,text_align,text_face,text_size,text_color,text_properties",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->renderText($row["bodytext"])."<BR>";
-                               }
-                       break;
-                       case "uploads":
-                               if ($row["media"])      {
-                                       $this->getProcessedValue($table,"media,select_key,layout,filelink_size,table_bgColor,table_border,table_cellspacing",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->renderText($row["bodytext"])."<BR>";
-                               }
-                       break;
-                       case "multimedia":
-                               if ($row["multimedia"]) {
-                                       $out.=  $this->renderText($row["multimedia"])."<BR>";
-                                       $out.=  $this->renderText($row["parameters"])."<BR>";
-                               }
-                       break;
-                       case "mailform":
-                               if ($row["bodytext"])   {
-                                       $this->getProcessedValue($table,"pages,subheader",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->renderText($row["bodytext"])."<BR>";
-                               }
-                       break;
-                       case "splash":
-                               if ($row["bodytext"])   {
-                                       $out.=  $this->renderText($row["bodytext"])."<BR>";
-                               }
-                               if ($row["image"])      {
-                                       $infoArr=Array();
-                                       $this->getProcessedValue($table,"imagewidth",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $this->thumbCode($row,"tt_content","image")."<br>";
-                               }
-                       break;
-                       case "menu":
-                               if ($row["pages"])      {
-                                       $this->getProcessedValue($table,"menu_type",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $row["pages"]."<BR>";
-                               }
-                       break;
-                       case "shortcut":
-                               if ($row["records"])    {
-                                       $this->getProcessedValue($table,"layout",$row,$infoArr);
-                                       $out.=  $this->infoGif($infoArr).
-                                                       $row["shortcut"]."<BR>";
-                               }
-                       break;
-                       case "list":
-                               $this->getProcessedValue($table,"layout",$row,$infoArr);
-                               $out.=  $this->infoGif($infoArr).
-                                               $GLOBALS["LANG"]->sL(t3lib_BEfunc::getItemLabel($table,"list_type"))." ".
-                                               $GLOBALS["LANG"]->sL(t3lib_BEfunc::getLabelFromItemlist($table,"list_type",$row["list_type"]))."<BR>";
-
-                               $out.=  $GLOBALS["LANG"]->sL(t3lib_BEfunc::getItemLabel($table,"select_key"))." ".$row["select_key"]."<BR>";
-
-                               $infoArr=Array();
-                               $this->getProcessedValue($table,"recursive",$row,$infoArr);
-                               $out.=  $this->infoGif($infoArr).
-                                               $GLOBALS["LANG"]->sL(t3lib_BEfunc::getLabelFromItemlist($table,"pages",$row["pages"]))."<BR>";
-                       break;
-                       case "script":
-                               $out.=  $GLOBALS["LANG"]->sL(t3lib_BEfunc::getItemLabel($table,"select_key"))." ".$row["select_key"]."<BR>";
-                               $out.=  "<BR>".$this->renderText($row["bodytext"])."<BR>";
-                               $out.=  "<BR>".$this->renderText($row["imagecaption"])."<BR>";
-                       break;
-                       default:
-                               if ($row["bodytext"])   {
-                                       $out.=$this->renderText($row["bodytext"])."<BR>";
-                               }
-                       break;
-               }
-               if ($this->isDisabled($table,$row))     {
-                       return $GLOBALS["TBE_TEMPLATE"]->dfw($out);
-               } else {
-                       return $out;
-               }
-       }
-       function getPageInfoBox($rec,$edit=0)   {
-               global $LANG;
-               
-               if ($edit)      {
-                       $params="&edit[pages][".$rec["uid"]."]=edit";
-                       $editIcon='<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$this->backPath.'gfx/edit2.gif" width=11 height=12 vspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL("edit").'" align="top"></a>';
-               } else {
-                       $editIcon=$this->noEditIcon("noEditPage");
-               }
-                                                               
-               $out = t3lib_iconWorks::getIconImage("pages",$rec,$this->backPath,"align=top ".t3lib_BEfunc::titleAttribForPages($rec)).$editIcon."&nbsp;".htmlspecialchars($rec["title"]);
-               
-
-               $lines=array();
-
-               if ($this->pI_showUser) {
-                       // User:
-                       $users= t3lib_BEfunc::getUserNames("username,usergroup,usergroup_cached_list,uid,realName");
-                       $groupArray = explode(",",$GLOBALS["BE_USER"]->user["usergroup_cached_list"]);
-                       $users=t3lib_BEfunc::blindUserNames($users,$groupArray);
-                       $lines[]=array($LANG->getLL("pI_crUser").":",htmlspecialchars($users[$rec["cruser_id"]]["username"])." (".$users[$rec["cruser_id"]]["realName"].")");
-               }
-
-                       // Created:             
-               $lines[]=array($LANG->getLL("pI_crDate").":",t3lib_BEfunc::datetime($rec["crdate"])." (".t3lib_BEfunc::calcAge(time()-$rec["crdate"],$this->agePrefixes).")");
-                       // Last change:         
-               $lines[]=array($LANG->getLL("pI_lastChange").":",t3lib_BEfunc::datetime($rec["tstamp"])." (".t3lib_BEfunc::calcAge(time()-$rec["tstamp"],$this->agePrefixes).")");
-                       // Last change of content:              
-               if ($rec["SYS_LASTCHANGED"])    {
-                       $lines[]=array($LANG->getLL("pI_lastChangeContent").":",t3lib_BEfunc::datetime($rec["SYS_LASTCHANGED"])." (".t3lib_BEfunc::calcAge(time()-$rec["SYS_LASTCHANGED"],$this->agePrefixes).")");
-               }
-       
-               $lines[]="";
-               
-                       // Fields
-               $dfields = explode(",","alias,target,hidden,starttime,endtime,fe_group,no_cache,cache_timeout,newUntil,lastUpdated,subtitle,keywords,description,abstract,author,author_email");
-               while(list(,$fV)=each($dfields))        {
-                       if ($rec[$fV])  {
-                               $lines[]=array($GLOBALS["LANG"]->sL(t3lib_BEfunc::getItemLabel("pages",$fV)),t3lib_BEfunc::getProcessedValue("pages",$fV,$rec[$fV]));
-                       }
-               }
-               
-                       // Hits:
-               if ($this->pI_showStat && t3lib_extMgm::isLoaded("sys_stat"))   {
-                       $query="SELECT count(*) FROM sys_stat WHERE page_id=".$rec["uid"];
-                       $res=mysql(TYPO3_db,$query);
-                       $rrow=mysql_fetch_row($res);
-                       if ($rrow[0])   {
-                                       // Get min/max
-                               $query="SELECT min(tstamp) AS min,max(tstamp) AS max FROM sys_stat WHERE page_id=".$rec["uid"];
-                               $res=mysql(TYPO3_db,$query);
-                               $rrow2=mysql_fetch_row($res);
-       
-                               $lines[]="";
-                               $lines[]=array($LANG->getLL("pI_hitsPeriod").":",t3lib_BEfunc::date($rrow2[0])." - ".t3lib_BEfunc::date($rrow2[1])." (".t3lib_BEfunc::calcAge($rrow2[1]-$rrow2[0],$this->agePrefixes).")");
-                               $lines[]=array($LANG->getLL("pI_hitsTotal").":",$rrow[0]);
-       
-       
-                               // Last 10 days
-                               $nextMidNight = mktime (0,0,0)+1*3600*24;
-                               $query='SELECT count(*), FLOOR(('.$nextMidNight.'-tstamp)/(24*3600)) AS day FROM sys_stat WHERE page_id='.$rec["uid"].' AND tstamp>'.($nextMidNight-10*24*3600).' GROUP BY day';
-                               $res=mysql(TYPO3_db,$query);
-                               $days=array();
-                               while($rrow=mysql_fetch_row($res))      {
-                                       $days[$rrow[1]]=$rrow[0];
-                               }
-                               
-                               $headerH=array();
-                               $contentH=array();
-                               for($a=9;$a>=0;$a--)    {
-                                       $headerH[]='<td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor5.'" nowrap>&nbsp;'.date("d",$nextMidNight-($a+1)*24*3600).'&nbsp;</td>';
-                                       $contentH[]='<td align=center>'.($days[$a]?intval($days[$a]):"-").'</td>';
-                               }
-                               $hitTable='<table border=0 cellpadding=0 cellspacing=1><tr>'.implode("",$headerH).'</tr><tr>'.implode("",$contentH).'</tr></table>';
-                               $lines[]=array($LANG->getLL("pI_hits10days").":",$hitTable,1);
-       
-       
-                               // Last 24 hours
-                               $nextHour = mktime (date("H"),0,0)+3600;
-                               $hours=16;
-                               
-                               $query='SELECT count(*), FLOOR(('.$nextHour.'-tstamp)/3600) AS hours FROM sys_stat WHERE page_id='.$rec["uid"].' AND tstamp>'.($nextHour-$hours*3600).' GROUP BY hours';
-                               $res=mysql(TYPO3_db,$query);
-                               $days=array();
-                               while($rrow=mysql_fetch_row($res))      {
-                                       $days[$rrow[1]]=$rrow[0];
-                               }
-                               
-                               $headerH=array();
-                               $contentH=array();
-                               for($a=($hours-1);$a>=0;$a--)   {
-                                       $headerH[]='<td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor5.'" nowrap>&nbsp;'.intval(date("H",$nextHour-($a+1)*3600)).'&nbsp;</td>';
-                                       $contentH[]='<td align=center>'.($days[$a]?intval($days[$a]):"-").'</td>';
-                               }
-                               $hitTable='<table border=0 cellpadding=0 cellspacing=1><tr>'.implode("",$headerH).'</tr><tr>'.implode("",$contentH).'</tr></table>';
-                               $lines[]=array($LANG->getLL("pI_hits24hours").":",$hitTable,1);
-                       }
-               }               
-               
-               // Print:
-               reset($lines);
-               $out.='<table border=0 cellpadding=0 cellspacing=1>';
-               while(list(,$fV)=each($lines))  {
-                       if (is_array($fV))      {
-                               if (!$fV[2])    $fV[1]=htmlspecialchars($fV[1]);
-                               $out.='<tr>
-                                       <td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor4.'" nowrap><strong>'.htmlspecialchars($fV[0]).'&nbsp;&nbsp;</strong></td>
-                                       <td bgColor="'.$GLOBALS["SOBE"]->doc->bgColor4.'">'.$fV[1].'</td>
-                               </tr>';
-                       } else {
-                               $out.='<tr><td colspan=2><img src=clear.gif width=1 height=3></td></tr>';
-                       }
-               }
-               $out.='</table>';
-               return $out;
-       }
-       function infoGif($infoArr)      {
-               if (count($infoArr) && $this->tt_contentConfig["showInfo"])     {
-                       $out='<img src="'.$this->backPath.'gfx/zoom2.gif" width=12 height=12 title="'.implode($infoArr,$GLOBALS["CLIENT"]["BROWSER"]=="net"?", ":chr(10)).'" align="top" border=0> ';   
-                       return $out;
-               }
-       }
-       function renderText($input)     {
-               $input = strip_tags($input);    // added 150402 - don't know it this is a good idea, but it should help better recognize the content ...
-               $input = t3lib_div::fixed_lgd($input,1500);
-//             return $this->wordWrapper(trim(nl2br(htmlspecialchars($input))));
-               return nl2br(htmlspecialchars(trim($this->wordWrapper($input))));
-       }
-       function getIcon($table,$row,$recTitle) {
-               global $TCA;
-                       // Initialization
-               $iconfile = t3lib_iconWorks::getIcon($table,$row);
-               $alttext = t3lib_BEfunc::getRecordIconAltText($row,$table);
-               $this->counter++;
-
-                       // The icon with link   
-               $theIcon = '<img src="'.$this->backPath.$iconfile.'" width=18 height=16 border=0 title="'.$alttext.'" align="top">';
-               $theIcon = $GLOBALS["SOBE"]->doc->wrapClickMenuOnIcon($theIcon,$table,$row["uid"]);
-
-               return $theIcon;
-       }
-       function getTableMenu($id)      {
-               global $TCA;
-               $theTables=explode(",","tt_content,fe_users,tt_address,tt_links,tt_board,tt_guest,tt_calender,tt_products,tt_news");
-
-               $this->activeTables=array();
-               $out = '<table border=0 cellpadding=0 cellspacing=0><tr>';
-               while(list(,$tName)=each($theTables))   {
-                       if ($GLOBALS["BE_USER"]->check("tables_select",$tName) && (t3lib_extMgm::isLoaded($tName)||t3lib_div::inList("fe_users,tt_content",$tName)))    {
-                               $query = "SELECT count(*) FROM ".$tName." WHERE pid=".$id.t3lib_BEfunc::deleteClause($tName);
-                               $result = mysql(TYPO3_db,$query);
-                               list($c)=mysql_fetch_row($result);
-                               if ($c || t3lib_div::inList("tt_content",$tName))       {
-                                       $out.='<td><a href="#'.$tName.'"><img src="'.t3lib_iconWorks::getIcon($tName,Array()).'" width=18 height=16 hspace=2 border=0 title="'.$GLOBALS["LANG"]->sL($TCA[$tName]["ctrl"]["title"]).'"></td>';
-                                       $this->activeTables[$tName]='<img src="'.t3lib_iconWorks::getIcon($tName,Array()).'" width=18 height=16 border=0 title="'.$GLOBALS["LANG"]->sL($TCA[$tName]["ctrl"]["title"]).": ".$c.' '.$GLOBALS["LANG"]->getLL("records").'" align=absmiddle>&nbsp;'.$GLOBALS["LANG"]->sL($TCA[$tName]["ctrl"]["title"]);
-                               }
-                       }
-               }
-               $out.='</tr></table>';
-               return $out;
-       }
-       function wordWrapper($content,$max=50,$char=' -')       {       // max was 20 formerly...
-//             $array = explode(" ",$content);                 // Old
-               $array = split(" |".chr(10),$content);
-               while(list(,$val)=each($array)) {
-//                     if (strlen($val)>$max && !strstr($val,chr(10))) {       // Old
-                       if (strlen($val)>$max)  {
-                               $content=str_replace($val,substr(chunk_split($val,$max,$char),0,-1),$content);
-                       }
-               }
-               return $content;
-       }
-       function getLabelFromItemlist($arr,$key)        {
-               reset($arr);
-               while(list($k,$v)=each($arr))   {
-                       if (!strcmp($v[1],$key))        return $v[0];
-               }
-       }
-       function noEditIcon($label="noEditItems")       {
-               return '<img src="'.$this->backPath.'gfx/edit2_d.gif" width=11 height=12 hspace=2 border=0 title="'.$GLOBALS["LANG"]->getLL($label).'" align="top">';
-       }
-       function cleanTableNames()      {
-               global $TCA;
-               
-               $tableNames=array_flip(array_keys($TCA));
-               unset($tableNames["pages"]);
-               unset($tableNames["static_template"]);
-               unset($tableNames["sys_filemounts"]);
-               unset($tableNames["sys_action"]);
-               unset($tableNames["sys_workflows"]);
-               unset($tableNames["be_users"]);
-               unset($tableNames["be_groups"]);
-       
-               $this->allowedTableNames=array();
-               if (is_array($tableNames))      {
-                       reset($tableNames);
-                       while(list($k,$v)=each($tableNames))    {
-                               if ($GLOBALS["BE_USER"]->check("tables_select",$k))                     $this->allowedTableNames["table_".$k]=$k;
-                       }
-               }
-       }
-       function getSpecConfForField($table,$row,$field)        {
-               $types_fieldConfig=t3lib_BEfunc::getTCAtypes($table,$row);
-               if (is_array($types_fieldConfig))       {
-                       reset($types_fieldConfig);
-                       while(list(,$vconf)=each($types_fieldConfig))   {
-                               if ($vconf["field"]==$field)    return $vconf["spec"];
-                       }
-               }
-       }
-       function isRTEforField($table,$row,$field){
-               $specConf = $this->getSpecConfForField($table,$row,$field);
-               $p=t3lib_BEfunc::getSpecConfParametersFromArray($specConf["rte_transform"]["parameters"]);
-               if (isset($specConf["richtext"]) && (!$p["flag"] || !$row[$p["flag"]])) {
-                       list($tscPID,$thePidValue)=t3lib_BEfunc::getTSCpid($table,$row["uid"],$row["pid"]);
-                       if ($thePidValue>=0)    {       // If the pid-value is not negative (that is, a pid could NOT be fetched)
-                               $RTEsetup = $GLOBALS["BE_USER"]->getTSConfig("RTE",t3lib_BEfunc::getPagesTSconfig($tscPID));
-                               $RTEtypeVal = t3lib_BEfunc::getTCAtypeValue($table,$row);
-                               $thisConfig = t3lib_BEfunc::RTEsetup($RTEsetup["properties"],$table,$field,$RTEtypeVal);
-                               if (!$thisConfig["disabled"])   {
-                                       return 1;
-                               }
-                       }
-               }
-       }
-}
-
-
-
-
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_layout.inc"])      {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/class.db_layout.inc"]);
-}
-
-?>
\ No newline at end of file
diff --git a/typo3/db_layout.php b/typo3/db_layout.php
deleted file mode 100755 (executable)
index b23a9d1..0000000
+++ /dev/null
@@ -1,870 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * Module: Web>Page
- * 
- * This module lets you view a page in a more Content Management like style than the ordinary record-list
- * This module is in fact a part of the "cms" extension found in sysext/cms/
- *
- * Notice: This module and Web>List (db_list.php) module has a special status since they
- * are NOT located in their actual module directories (fx. sysext/cms/layout/) but in the 
- * backend root directory. This has some historical and practical causes.
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-
-unset($MCONF);
-require ("sysext/cms/layout/conf.php");
-require ("init.php");
-require ("template.php");
-include (TYPO3_MOD_PATH."locallang.php");
-require_once (PATH_t3lib."class.t3lib_pagetree.php");
-require_once (PATH_t3lib."class.t3lib_page.php");
-require_once (PATH_t3lib."class.t3lib_recordlist.php");
-require_once ("class.db_list.inc");
-require_once ("class.db_layout.inc");
-require_once (PATH_t3lib."class.t3lib_positionmap.php");
-$BE_USER->modAccess($MCONF,1);
-
-// Will open up records locked by current user. It's assumed that the locking should end if this script is hit.
-t3lib_BEfunc::lockRecords();
-
-// Exits if "cms" extension is not loaded:
-t3lib_extMgm::isLoaded("cms",1);
-
-
-// ***************************
-// Script Classes
-// ***************************
-class ext_posMap extends t3lib_positionMap {
-       var $dontPrintPageInsertIcons = 1;
-       var $l_insertNewRecordHere="newContentElement";
-       
-       function wrapRecordTitle($str,$row)     {
-               return '<a href="#" onClick="jumpToUrl(\''.$GLOBALS["SOBE"]->local_linkThisScript(array("edit_record"=>"tt_content:".$row["uid"])).'\');return false;">'.$str.'</a>';
-       }
-       function wrapColumnHeader($str,$vv)     {
-               return '<a href="#" onClick="jumpToUrl(\''.$GLOBALS["SOBE"]->local_linkThisScript(array("edit_record"=>"_EDIT_COL:".$vv)).'\');return false;">'.$str.'</a>';
-       }
-       function onClickInsertRecord($row,$vv,$moveUid,$pid) {
-               $table="tt_content";
-               if (is_array($row))     {
-                       $location=$GLOBALS["SOBE"]->local_linkThisScript(array("edit_record"=>"tt_content:new/-".$row["uid"]."/".$row["colPos"]));
-               } else {
-                       $location=$GLOBALS["SOBE"]->local_linkThisScript(array("edit_record"=>"tt_content:new/".$pid."/".$vv));
-               }
-               return 'jumpToUrl(\''.$location.'\');return false;';
-       }
-       function wrapRecordHeader($str,$row)    {
-               if ($row["uid"]==$this->moveUid)        {
-//                                     return '<table border=0 cellpadding=0 cellspacing=0 width="100%"><tr bgColor="'.$GLOBALS["SOBE"]->doc->bgColor2.'"><td>'.$str.'</td></tr></table>';
-                       return '<img src="gfx/content_client.gif" width="7" height="10" vspace=2 border="0" alt="" align=top>'.$str;
-               } else return $str;
-       }
-}
-class SC_db_layout {
-       var $MCONF=array();
-       var $MOD_MENU=array();
-       var $MOD_SETTINGS=array();
-
-       var $include_once=array();
-       
-       var $content;
-       var $perms_clause;
-       var $pageinfo;
-       var $descrTable;
-       var $modTSconfig;
-       var $topFuncMenu;
-       var $editIcon;
-       var $colPosList;
-       var $EDIT_CONTENT;
-       var $CALC_PERMS;
-       var $pointer;
-       var $imagemode;
-       var $id;
-       var $doc;       
-       var $current_sys_language;
-
-       function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               $this->MCONF = $GLOBALS["MCONF"];
-
-                       // Init:
-               $this->imagemode = t3lib_div::GPvar("imagemode");
-               $this->pointer = t3lib_div::GPvar("pointer");
-               $this->id = intval(t3lib_div::GPvar("id"));
-
-               $this->perms_clause = $BE_USER->getPagePermsClause(1);
-               $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
-
-                       // Menu Configuration
-               $this->menuConfig();
-
-               $this->current_sys_language=intval($this->MOD_SETTINGS["language"]);
-               
-                       // Include scripts:
-               if ($this->MOD_SETTINGS["function"]==0) {               // QuickEdit
-                       $this->include_once[]=PATH_t3lib."class.t3lib_tceforms.php";
-                       $this->include_once[]=PATH_t3lib."class.t3lib_loaddbgroup.php";
-                       $this->include_once[]=PATH_t3lib."class.t3lib_transferdata.php";
-               }               
-               if (t3lib_div::GPvar("clear_cache"))    {
-                       $this->include_once[]=PATH_t3lib."class.t3lib_tcemain.php";
-               }
-
-                       // Descriptions:
-               $this->descrTable = "_MOD_".$this->MCONF["name"];
-               if ($BE_USER->uc["edit_showFieldHelp"]) {
-                       $LANG->loadSingleTableDescription($this->descrTable);
-               }
-       }
-       function menuConfig()   {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-                       // MENU-ITEMS:
-                       // If array, then it's a selector box menu
-                       // If empty string it's just a variable, that'll be saved. 
-                       // Values NOT in this array will not be saved in the settings-array for the module.
-               $this->MOD_MENU = array(
-                       "tt_board" => array(
-                               0 => $LANG->getLL("m_tt_board_0"),
-                               "expand" => $LANG->getLL("m_tt_board_expand")
-                       ),
-                       "tt_address" => array(
-                               0 => $LANG->getLL("m_tt_address_0"),
-                               1 => $LANG->getLL("m_tt_address_1"),
-                               2 => $LANG->getLL("m_tt_address_2")
-                       ),
-                       "tt_links" => array(
-                               0 => $LANG->getLL("m_default"),
-                               1 => $LANG->getLL("m_tt_links_1"),
-                               2 => $LANG->getLL("m_tt_links_2")
-                       ),
-                       "tt_calender" => array (
-                               0 => $LANG->getLL("m_default"),
-                               "date" => $LANG->getLL("m_tt_calender_date"),
-                               "date_ext" => $LANG->getLL("m_tt_calender_date_ext"),
-                               "todo" => $LANG->getLL("m_tt_calender_todo"),
-                               "todo_ext" => $LANG->getLL("m_tt_calender_todo_ext")
-                       ),
-                       "tt_products" => array (
-                               0 => $LANG->getLL("m_default"),
-                               "ext" => $LANG->getLL("m_tt_products_ext")
-                       ),
-                       "tt_content_showHidden" => "",
-                       "showPalettes" => "",
-                       "showDescriptions" => "",
-                       "disableRTE" => "",
-                       "function" => array(
-                               1 => $LANG->getLL("m_function_1"),
-                               0 => $LANG->getLL("m_function_0"),
-                               2 => $LANG->getLL("m_function_2"),
-                               3 => $LANG->getLL("pageInformation")
-                       ),
-                       "language" => array(
-                               0 => $LANG->getLL("m_default")
-                       )
-               );
-               
-               
-                // First, select all pages_language_overlay records on the current page. Each represents a possibility for a language on the page.
-               $query = $this->languageQuery($this->id);
-               $res = mysql(TYPO3_db,$query);
-               echo mysql_error();
-               while($lrow=mysql_fetch_assoc($res))    {
-                       $this->MOD_MENU["language"][$lrow["uid"]]=($lrow["hidden"]?"(".$lrow["title"].")":$lrow["title"]);
-               }
-               
-               // Find if there are ANY languages at all.
-               $query = "SELECT uid FROM sys_language".($BE_USER->isAdmin()?"":" WHERE hidden=0");
-               $res = mysql(TYPO3_db,$query);
-               if (!mysql_num_rows($res))      {
-                       unset($this->MOD_MENU["function"]["2"]);
-               }
-               
-                       // page/be_user TSconfig settings and blinding of menu-items
-               $this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id,"mod.".$this->MCONF["name"]);
-               if ($this->modTSconfig["properties"]["QEisDefault"])    ksort($this->MOD_MENU["function"]);
-               $this->MOD_MENU["function"] = t3lib_BEfunc::unsetMenuItems($this->modTSconfig["properties"],$this->MOD_MENU["function"],"menu.function");
-               
-                       // Remove QuickEdit as option if page type is not...
-               if (!t3lib_div::inList($GLOBALS["TYPO3_CONF_VARS"]["FE"]["content_doktypes"].",6",$this->pageinfo["doktype"]))  {
-                       unset($this->MOD_MENU["function"][0]);
-               }
-               
-                       // CLEANSE SETTINGS
-               $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::GPvar("SET"), $this->MCONF["name"]);
-       }
-       function clearCache()   {
-               if (t3lib_div::GPvar("clear_cache"))    {
-                       $tce = t3lib_div::makeInstance("t3lib_TCEmain");
-                       $tce->start(Array(),Array());
-                       $tce->clear_cacheCmd($this->id);
-               }
-       }
-       function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               // Access check...
-               // The page will show only if there is a valid page and if this page may be viewed by the user
-               $access = is_array($this->pageinfo) ? 1 : 0;
-               if ($this->id && $access)       {
-                       $this->CALC_PERMS = $BE_USER->calcPerms($this->pageinfo);
-                       $this->EDIT_CONTENT = ($this->CALC_PERMS&16) ? 1 : 0;
-               
-                       
-                       $this->doc = t3lib_div::makeInstance("mediumDoc");
-                       $this->doc->backPath = $BACK_PATH;
-               
-                                       // JavaScript
-                       $this->doc->JScode = '
-                       <script language="javascript" type="text/javascript" src="'.$BACK_PATH.'t3lib/jsfunc.updateform.js"></script>
-                       <script language="javascript" type="text/javascript">
-                               if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
-                               function jumpToUrl(URL,formEl)  {
-                                       if (document.editform && document.TBE_EDITOR_isFormChanged)     {       // Check if the function exists... (works in all browsers?)
-                                               if (!TBE_EDITOR_isFormChanged())        {
-                                                       document.location = URL;
-                                               } else if (formEl) {
-                                                       if (formEl.type=="checkbox") formEl.checked = formEl.checked ? 0 : 1;
-                                               }
-                                       } else document.location = URL;
-                               }
-                       '.(t3lib_div::GPVar("popView") ? t3lib_BEfunc::viewOnClick($this->id,"",t3lib_BEfunc::BEgetRootLine($this->id)) : '').'
-                       
-                               function deleteRecord(table,id,url)     {
-                                       if (confirm('.$GLOBALS['LANG']->JScharCode($LANG->getLL("deleteWarning")).'))   {       
-                                               document.location = "'.$BACK_PATH.'tce_db.php?cmd["+table+"]["+id+"][delete]=1&redirect="+escape(url)+"&vC='.$BE_USER->veriCode().'&prErr=1&uPT=1";
-                                       }
-                                       return false;
-                               }
-                       </script>
-                       ';
-               
-                               // Setting doc-header
-                       $this->doc->form='<form action="db_layout.php?id='.$this->id.'&imagemode='.$this->imagemode.'" method="POST">';
-               
-                       $this->topFuncMenu = t3lib_BEfunc::getFuncMenu($this->id,"SET[function]",$this->MOD_SETTINGS["function"],$this->MOD_MENU["function"],"db_layout.php","").
-                                               (count($this->MOD_MENU["language"])>1 ? "<BR>".t3lib_BEfunc::getFuncMenu($this->id,"SET[language]",$this->current_sys_language,$this->MOD_MENU["language"],"db_layout.php","") : "");   
-                       
-                       
-                       
-                       
-                       
-                       
-                       if ($this->CALC_PERMS&2)        {
-                               $params="&edit[pages][".$this->id."]=edit";
-                               $this->editIcon='<A HREF="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="'.$BACK_PATH.'gfx/edit2.gif" width=11 height=12 vspace=2 border=0'.t3lib_BEfunc::titleAttrib($GLOBALS["LANG"]->getLL("edit"),1).' align="top"></a>';
-                       } else {
-               //              $this->editIcon=$dblist->noEditIcon("noEditPage");
-                               $this->editIcon="";
-                       }
-                       
-                       
-                               // Find columns
-                       $modTSconfig_SHARED = t3lib_BEfunc::getModTSconfig($this->id,"mod.SHARED");             // SHARED page-TSconfig settings.
-                       $this->colPosList = strcmp(trim($this->modTSconfig["properties"]["tt_content."]["colPos_list"]),"") ? trim($this->modTSconfig["properties"]["tt_content."]["colPos_list"]) : $modTSconfig_SHARED["properties"]["colPos_list"];
-                       $this->colPosList = strcmp($this->colPosList,"")?$this->colPosList:"1,0,2,3";
-                       
-                       if ($this->MOD_SETTINGS["function"]==0) {               // QuickEdit
-                               $this->content.=$this->quickEdit();
-                       } else {
-                               // *******************
-                               // Make DB list
-                               // *******************
-               //              $this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id,"mod.".$this->MCONF["name"]);               // page-TSconfig setting for this module.
-                       
-                               $dblist = t3lib_div::makeInstance("recordList_layout");
-                               $dblist->backPath = $BACK_PATH;
-                               $dblist->thumbs = $this->imagemode;
-                               $dblist->no_noWrap=1;
-                               
-                               $this->pointer = t3lib_div::intInRange($this->pointer,0,100000);
-                               $dblist->headLineCol = $this->doc->bgColor2;
-                               $dblist->script = "db_layout.php";
-                               $dblist->showIcon = 0;
-                               $dblist->setLMargin=0;
-                               $dblist->doEdit = $this->CALC_PERMS&16 ? 1 : 0;
-                               $dblist->agePrefixes=$GLOBALS["LANG"]->sL("LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears");
-                               $dblist->id=$this->id;
-                               $dblist->nextThree = t3lib_div::intInRange($this->modTSconfig["properties"]["editFieldsAtATime"],0,10);
-                               $dblist->option_showBigButtons = $this->modTSconfig["properties"]["disableBigButtons"] ? 0 : 1;
-                               $dblist->option_newWizard = $this->modTSconfig["properties"]["disableNewContentElementWizard"] ? 0 : 1;
-                               if (!$dblist->nextThree)        $dblist->nextThree= 1;
-                               
-
-                                       // Preparing
-                               $h_menu=$dblist->getTableMenu($this->id);
-                               $h_func="";
-                               $optionArr=array();
-               
-                               $tableOutput=array();
-                               $tableJSOutput=array();
-                               $CMcounter = 0;
-                               reset($dblist->activeTables);
-                               while(list($table)=each($dblist->activeTables)) {
-                                       t3lib_div::loadTCA($table);
-                                               // Creating special conditions for each table:  
-                                       switch($table)  {
-                                               case "tt_board":
-                                                       $h_func = t3lib_BEfunc::getFuncMenu($this->id,"SET[tt_board]",$this->MOD_SETTINGS["tt_board"],$this->MOD_MENU["tt_board"],"db_layout.php","");
-                                               break;
-                                               case "tt_address":
-                                                       $h_func = t3lib_BEfunc::getFuncMenu($this->id,"SET[tt_address]",$this->MOD_SETTINGS["tt_address"],$this->MOD_MENU["tt_address"],"db_layout.php","");
-                                               break;
-                                               case "tt_links":
-                                                       $h_func = t3lib_BEfunc::getFuncMenu($this->id,"SET[tt_links]",$this->MOD_SETTINGS["tt_links"],$this->MOD_MENU["tt_links"],"db_layout.php","");
-                                               break;
-                                               case "tt_calender":
-                                                       $h_func = t3lib_BEfunc::getFuncMenu($this->id,"SET[tt_calender]",$this->MOD_SETTINGS["tt_calender"],$this->MOD_MENU["tt_calender"],"db_layout.php","");
-                                               break;
-                                               case "tt_products":
-                                                       $h_func = t3lib_BEfunc::getFuncMenu($this->id,"SET[tt_products]",$this->MOD_SETTINGS["tt_products"],$this->MOD_MENU["tt_products"],"db_layout.php","");
-                                               break;
-                                               case "tt_guest":
-                                               case "tt_news":
-                                               case "fe_users":
-                                                       // Nothing
-                                               break;
-                                               case "tt_content":
-                                                       $q_count = $this->getNumberOfHiddenElements();
-                                                       $h_func_b= t3lib_BEfunc::getFuncCheck($this->id,"SET[tt_content_showHidden]",$this->MOD_SETTINGS["tt_content_showHidden"],"db_layout.php","").(!$q_count?$GLOBALS["TBE_TEMPLATE"]->dfw($LANG->getLL("hiddenCE")):$LANG->getLL("hiddenCE")." (".$q_count.")");
-                       
-                                                       $dblist->tt_contentConfig["showCommands"] = 1;  // Boolean: Display up/down arrows and edit icons for tt_content records 
-                                                       $dblist->tt_contentConfig["showInfo"] = 1;              // Boolean: Display info-marks or not
-                                                       $dblist->tt_contentConfig["single"] =0;                 // Boolean: If set, the content of column(s) $this->tt_contentConfig["showSingleCol"] is shown in the total width of the page
-                       
-                                                       if (is_array($TCA["tt_content"]["columns"]["colPos"]["config"]["items"]))       {
-                                                               $colList=array();
-                                                               reset($TCA["tt_content"]["columns"]["colPos"]["config"]["items"]);
-                                                               while(list(,$temp)=each($TCA["tt_content"]["columns"]["colPos"]["config"]["items"]))    {
-                                                                       $colList[]=$temp[1];
-                                                               }
-                                                       } else {        // ... should be impossible that colPos has no array. But this is the fallback should it make any sense:
-                                                               $colList=array("1","0","2","3");
-                                                       }
-                                                       if (strcmp($this->colPosList,""))       {
-                                                               $colList=array_intersect(t3lib_div::intExplode(",",$this->colPosList),$colList);
-                                                       }
-                                                               // If only one column found, display the single-column view.
-                                                       if (count($colList)==1) {
-                                                               $dblist->tt_contentConfig["single"] =1; // Boolean: If set, the content of column(s) $this->tt_contentConfig["showSingleCol"] is shown in the total width of the page
-                                                               $dblist->tt_contentConfig["showSingleCol"]=current($colList);   // The column(s) to show if single mode (under each other)
-                                                       }
-                                                       $dblist->tt_contentConfig["cols"]= implode(",",$colList);               // The order of the rows: Default is left(1), Normal(0), right(2), margin(3)
-                                                       $dblist->tt_contentConfig["showHidden"]=$this->MOD_SETTINGS["tt_content_showHidden"];
-                                                       $dblist->tt_contentConfig["sys_language_uid"] = intval($this->current_sys_language);
-                                                       
-                                                       if ($this->MOD_SETTINGS["function"]==2) {       // LANGUAGE 
-                                                               $dblist->tt_contentConfig["single"]=0;
-                                                               $dblist->tt_contentConfig["languageMode"]=1;
-                                                               $dblist->tt_contentConfig["languageCols"] = $this->MOD_MENU["language"];
-                                                               $dblist->tt_contentConfig["languageColsPointer"] = $this->current_sys_language;
-                                                       }
-                                               break;
-                                       }
-                       
-                                       $dblist->start($this->id,$table,$this->pointer,t3lib_div::GPvar("search_field"),t3lib_div::GPvar("search_levels"),t3lib_div::GPvar("showLimit"));
-                                       $dblist->counter=$CMcounter;
-                                       $dblist->ext_function = $this->MOD_SETTINGS["function"];
-                                       $dblist->generateList();
-                       
-                                       $tableOutput[$table]=($h_func?$h_func."<BR><img src=clear.gif width=1 height=4><BR>":"").$dblist->HTMLcode.($h_func_b?"<img src=clear.gif width=1 height=10><BR>".$h_func_b:"");                //."<HR>".
-                                       $tableJSOutput[$table]=$dblist->JScode;
-                                       $CMcounter+=$dblist->counter;
-                                                                                                       
-                                       $dblist->HTMLcode="";
-                                       $dblist->JScode="";
-                                       $h_func="";
-                                       $h_func_b="";
-                               }
-               
-               
-               
-                               $CMparts=$this->doc->getContextMenuCode();
-                               $this->doc->bodyTagAdditions = $CMparts[1];
-                               $this->doc->JScode.=$CMparts[0];
-                               $this->doc->postCode.= $CMparts[2];
-                       
-                               // ******************
-                               // Draw the header.
-                               // ******************
-                               $headerSection = $this->doc->getHeader("pages",$this->pageinfo,$this->pageinfo["_thePath"]).'<br>'.$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.path").': '.t3lib_div::fixed_lgd_pre($this->pageinfo["_thePath"],50);
-               
-                                       $toolBar='';            
-                                       $toolBar.='<a href="#" onClick="jumpToUrl(\'show_rechis.php?element='.rawurlencode('pages:'.$this->id).'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'#latest\');return false;"><img src="gfx/history2.gif" width="13" height="12" vspace=2 hspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("recordHistory"),1).' align=top></a>';
-                                       $toolBar.='<A HREF="db_new_content_el.php?id='.$this->id.'&sys_language_uid='.$this->current_sys_language.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/new_record.gif" vspace=2 hspace=1 width=16 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("newContentElement")).'></a>';
-                                       $toolBar.='<A HREF="move_el.php?table=pages&uid='.$this->id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/move_page.gif" vspace=2 hspace=2 width=11 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("move_page")).'></a>';
-                                       $toolBar.='<a href="#" onClick="jumpToUrl(\'db_new.php?id='.$this->id.'&pagesOnly=1&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'\');return false;"><img src="gfx/new_page.gif" width="13" height="12" hspace=0 vspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("newPage"),1).' align=top></a>';
-               
-                                       $params="&edit[pages][".$this->id."]=edit";
-                                       $toolBar.='<a href="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="gfx/edit2.gif" width="11" height="12" hspace=2 vspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("editPageHeader"),1).' align=top></a>';
-               
-                                       $hT = trim(t3lib_BEfunc::helpText($this->descrTable,"columns",$GLOBALS["BACK_PATH"]));
-                                       $toolBar.=$hT?$hT."<BR>":t3lib_BEfunc::helpTextIcon($this->descrTable,"columns",$GLOBALS["BACK_PATH"]);
-                               $headerSection.='<table border=0 cellpadding=0 cellspacing=0 bgColor="'.$this->doc->bgColor4.'"><tr><td>'.$toolBar.'</TD></tr></table>';
-                       
-                               // ******************
-                               // Link menu, if more than one table.
-                               // ******************
-                               if ($this->MOD_SETTINGS["function"]!=3 && count($tableOutput)>1)        {
-                                       $goToTable_menu = '<td valign=top width=1% nowrap>'.$h_menu.'</td>';
-                               } else {
-                                       $goToTable_menu = '';
-                               }
-                               $hS2='<table border=0 cellpadding=0 cellspacing=0 width=100%>
-                                       <tr>
-                                               <td valign=top width=99%>'.$headerSection.'</td>
-                                               '.$goToTable_menu.'
-                                               <td valign=top width=1% valign=top>'.$this->topFuncMenu.'</td>
-                                               <td valign=top align=right width=1%><img src=clear.gif width=1 height=3><BR>'.$this->editIcon.'</td>
-                                       </tr>
-                               </table>';
-                       
-                               $this->content.=$this->doc->startPage($LANG->getLL("title"));
-                               $this->content.=$this->doc->section('',$hS2);
-                               
-                               
-                               if ($this->MOD_SETTINGS["function"]==3) {
-                                       
-                                               // ********************
-                                               // Making page info:
-                                               // ********************
-                                               $this->content.=$this->doc->spacer(10);
-                                               $this->content.=$this->doc->section($GLOBALS["LANG"]->getLL("pageInformation"),$dblist->getPageInfoBox($this->pageinfo,$this->CALC_PERMS&2),0,1);
-                               } else {
-                               
-                                       // ******************
-                                       // Draw Content
-                                       // ******************
-                                       reset($tableOutput);
-                                       while(list($table,$output)=each($tableOutput))  {       
-                                               $this->content.=$this->doc->section('<a name="'.$table.'"></a>'.$dblist->activeTables[$table],$output,1,1);
-                                               $this->content.=$this->doc->spacer(15);
-                                               $this->content.=$this->doc->sectionEnd();
-                                       }
-                               
-                                       // ********************
-                                       // Making search form:
-                                       // ********************
-                                       if (!$this->modTSconfig["properties"]["disableSearchBox"] && count($tableOutput))       {       
-                                       //      debug(array($dblist->getSearchBox(0)));
-                                               $this->content.=$this->doc->section($GLOBALS["LANG"]->sL("LLL:EXT:lang/locallang_core.php:labels.search"),$dblist->getSearchBox(),0,1);
-                                       }
-                                       
-                                       // ********************
-                                       // Sys notes:
-                                       // ********************
-                                       $dblist->id=$this->id;
-                                       $sysNotes = $dblist->showSysNotesForPage();
-                                       if ($sysNotes)  {
-                                               $this->content.=$this->doc->spacer(10);
-                                               $this->content.=$this->doc->section($LANG->getLL("internalNotes"),$sysNotes,0,1);
-                                       }
-               
-               
-                                       // Advanced.
-                                       if (!$this->modTSconfig["properties"]["disableAdvanced"])       {
-                                               $af_content = $this->doc->clearCacheMenu($this->id);
-                       
-                                               if (!$this->modTSconfig["properties"]["noCreateRecordsLink"]) {
-                                                       $af_content.='<BR><BR><a href="db_new.php?id='.$this->id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="gfx/new_el.gif" width="11" height="12" hspace=4 border="0" align=top><strong>'.$LANG->getLL("newRecordGeneral").'</strong></a><BR><BR>';
-                                               }
-                       
-                                               $this->content.=$this->doc->spacer(10);
-                                               $this->content.=$this->doc->section($LANG->getLL("advancedFunctions"),$af_content,0,1);
-                                       }
-                                       $this->content.=$this->doc->spacer(10);
-                               }
-                       }
-               
-               
-                       // ShortCut
-                       if ($BE_USER->mayMakeShortcut())        {
-                               $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon("id,edit_record,pointer,new_unique_uid,search_field,search_levels,showLimit",implode(",",array_keys($this->MOD_MENU)),$this->MCONF["name"]));
-                       }
-               
-                       $this->content.=$this->doc->spacer(10);
-                       $this->content.=$this->doc->endPage();
-               } else {
-                       $this->doc = t3lib_div::makeInstance("mediumDoc");
-                       $this->doc->backPath = $BACK_PATH;
-                       $this->doc->JScode = '
-                       <script language="javascript" type="text/javascript">
-                               if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
-                       </script>
-                       ';
-                       $this->content=$this->doc->startPage($LANG->getLL("title"));
-                       $this->content.=$this->doc->section($LANG->getLL("clickAPage_header"),$LANG->getLL("clickAPage_content"),0,1);
-                       $this->content.=$this->doc->endPage();
-               }
-       }
-       function printContent() {
-               echo $this->content;
-       }
-
-
-       function getNumberOfHiddenElements()    {
-               $q_hidden = "SELECT count(*) FROM tt_content WHERE pid=".intval($this->id)." AND sys_language_uid=".intval($this->current_sys_language).t3lib_BEfunc::BEenableFields("tt_content",1).t3lib_BEfunc::deleteClause("tt_content");
-               $q_res = mysql(TYPO3_db,$q_hidden);
-               list($q_count) = mysql_fetch_row($q_res);
-               return $q_count;
-       }
-       function local_linkThisScript ($params) {
-               $params["popView"]="";
-               $params["new_unique_uid"]="";
-               return t3lib_div::linkThisScript($params);
-       }
-       function languageQuery($id)     {
-               $exQ = $GLOBALS["BE_USER"]->isAdmin() ? '' : 'AND sys_language.hidden=0';
-               if ($id)        {
-                       $query = "SELECT sys_language.* FROM pages_language_overlay,sys_language 
-                                               WHERE pages_language_overlay.sys_language_uid=sys_language.uid 
-                                               AND pages_language_overlay.pid=".intval($id)."
-                                               ".$exQ."
-                                               GROUP BY pages_language_overlay.sys_language_uid
-                                               ORDER BY sys_language.title";
-               } else {
-                       $query = "SELECT sys_language.* FROM sys_language 
-                                               WHERE sys_language.hidden=0
-                                               ORDER BY sys_language.title";
-               }
-               return $query;
-       }
-       function quickEdit()    {
-               global $SOBE,$LANG,$BE_USER;
-               
-               $this->doc->form='<form action="tce_db.php?&prErr=1&uPT=1" method="POST" enctype="'.$GLOBALS["TYPO3_CONF_VARS"]["SYS"]["form_enctype"].'" name="editform" onSubmit="return TBE_EDITOR_checkSubmit(1);">';
-               $edit_record = t3lib_div::GPvar("edit_record");
-               
-               if (substr($edit_record,0,9)=="_EDIT_COL")      {
-                       $query = "SELECT * FROM tt_content WHERE pid=".intval($this->id).
-                               " AND colPos=".intval(substr($edit_record,10)).
-                               " AND sys_language_uid=".intval($this->current_sys_language).
-                               ($this->MOD_SETTINGS["tt_content_showHidden"] ? "" : t3lib_BEfunc::BEenableFields("tt_content")).
-                               t3lib_Befunc::deleteClause("tt_content").
-                               " ORDER BY sorting";
-                       $res = mysql(TYPO3_db,$query);
-                       $idListA=array();
-                       while($cRow=mysql_fetch_assoc($res))    {
-                               $idListA[]=$cRow["uid"];
-                       }
-       //              debug($idListA);
-                       $jumpUrl = 'alt_doc.php?edit[tt_content]['.implode(",",$idListA).']=edit&returnUrl='.rawurlencode($this->local_linkThisScript(array("edit_record"=>"")));
-                       header("Location: ".t3lib_div::locationHeaderUrl($jumpUrl));
-                       exit;
-               }
-               
-               if (t3lib_div::GPvar("new_unique_uid")) {
-                       $query = "SELECT * FROM sys_log WHERE userid='".$BE_USER->user["uid"]."' AND NEWid='".t3lib_div::GPvar("new_unique_uid")."'";
-                       $res = mysql(TYPO3_db,$query);
-                       $sys_log_row = mysql_fetch_assoc($res);
-                       if (is_array($sys_log_row))     {
-                               $edit_record=$sys_log_row["tablename"].":".$sys_log_row["recuid"];
-                       }
-                       unset($HTTP_GET_VARS["new_unique_uid"]);        // removing this for certain so 
-               }
-               
-                       // Creating tool bar
-               $opt=array();
-               $is_selected=0;
-               $languageOverlayRecord="";
-               if ($this->current_sys_language)        {
-                       list($languageOverlayRecord) = t3lib_BEfunc::getRecordsByField("pages_language_overlay","pid",$this->id,"AND sys_language_uid=".intval($this->current_sys_language));
-               }
-               if (is_array($languageOverlayRecord))   {
-                       $inValue = 'pages_language_overlay:'.$languageOverlayRecord["uid"];
-                       $is_selected+=intval($edit_record==$inValue);
-                       $opt[]='<option value="'.$inValue.'"'.($edit_record==$inValue?" selected":"").'>[ '.$LANG->getLL("editLanguageHeader").' ]</option>';
-               } else {
-                       $inValue = 'pages:'.$this->id;
-                       $is_selected+=intval($edit_record==$inValue);
-                       $opt[]='<option value="'.$inValue.'"'.($edit_record==$inValue?" selected":"").'>[ '.$LANG->getLL("editPageHeader").' ]</option>';
-               }
-       
-       //      $andH=" AND hidden=0";
-               $andH="";
-               $query = "SELECT * FROM tt_content WHERE pid=".intval($this->id).
-                       $andH.
-                       " AND sys_language_uid=".intval($this->current_sys_language).
-                       ($this->MOD_SETTINGS["tt_content_showHidden"] ? "" : t3lib_BEfunc::BEenableFields("tt_content")).
-                       t3lib_Befunc::deleteClause("tt_content").
-                       " ORDER BY colPos,sorting";
-               $res = mysql(TYPO3_db,$query);
-               $colPos="";
-               $first=1;
-               $prev=$this->id;        // Page is the pid if no record to put this after.
-               while($cRow=mysql_fetch_assoc($res))    {
-                       if ($first)     {
-                               if (!$edit_record)      {
-                                       $edit_record="tt_content:".$cRow["uid"];
-                               }
-                               $first = 0;
-                       }
-                       if (strcmp($cRow["colPos"],$colPos))    {
-                               if (strcmp($colPos,"")) {
-       //                              $inValue = 'tt_content:new/'.$prev."/".$colPos;
-       //              $is_selected+=intval($edit_record==$inValue);
-       //                              $opt[]='<option value="'.$inValue.'"'.($edit_record==$inValue?" selected":"").'>[ '.$LANG->getLL("newLabel").' ]</option>';
-                               }
-                               $colPos=$cRow["colPos"];
-                               $opt[]='<option value=""></option>';
-                               $opt[]='<option value="_EDIT_COL:'.$colPos.'">__'.$LANG->sL(t3lib_BEfunc::getLabelFromItemlist("tt_content","colPos",$colPos)).':__</option>';
-                       }
-                       $inValue = 'tt_content:'.$cRow["uid"];
-                       $is_selected+=intval($edit_record==$inValue);
-                       $opt[]='<option value="'.$inValue.'"'.($edit_record==$inValue?" selected":"").'>'.htmlspecialchars(t3lib_div::fixed_lgd($cRow["header"]?$cRow["header"]:"[".$GLOBALS["LANG"]->sL("LLL:EXT:lang/locallang_core.php:labels.no_title")."] ".strip_tags($cRow["bodytext"]),$GLOBALS["BE_USER"]->uc["titleLen"])).'</option>';
-                       $prev=-$cRow["uid"];
-               }
-       
-               if (!$edit_record)      {
-                       $edit_record="tt_content:new/".$prev."/".$colPos;
-       
-                               // Formerly outside this condition...
-                       $inValue = 'tt_content:new/'.$prev."/".$colPos;
-                       $is_selected+=intval($edit_record==$inValue);
-                       $opt[]='<option value="'.$inValue.'"'.($edit_record==$inValue?" selected":"").'>[ '.$LANG->getLL("newLabel").' ]</option>';
-               }
-       
-               if (!$is_selected)      {       // If none is yet selected...
-                       $opt[]='<option value=""></option>';
-                       $opt[]='<option value="'.$edit_record.'" SELECTED>[ '.$LANG->getLL("newLabel").' ]</option>';
-               }
-               
-               
-               $eRParts = explode(":",$edit_record);
-       //      debug($eRParts);
-               $deleteButton = (t3lib_div::testInt($eRParts[1]) && $edit_record && (($eRParts[0]!="pages"&&$this->EDIT_CONTENT) || ($eRParts[0]=="pages"&&($this->CALC_PERMS&4))));
-       
-               $undoButton=0;
-               $undoQuery="SELECT tstamp FROM sys_history WHERE tablename='".$eRParts[0]."' AND recuid='".$eRParts[1]."' ORDER BY tstamp DESC LIMIT 1";
-               $undoRes = mysql(TYPO3_db,$undoQuery);
-               if ($undoButtonR = mysql_fetch_assoc($undoRes)) {
-                       $undoButton=1;
-               }
-       
-               $elementName="edit_record";
-               $addparams="";
-       
-       
-               $R_URL_parts = parse_url(t3lib_div::getIndpEnv("REQUEST_URI"));
-               $R_URL_getvars = $GLOBALS["HTTP_GET_VARS"];
-       
-               unset($R_URL_getvars["popView"]);
-               unset($R_URL_getvars["new_unique_uid"]);
-               $R_URL_getvars["edit_record"]=$edit_record;
-               $R_URI = $R_URL_parts["path"]."?".t3lib_div::implodeArrayForUrl("",$R_URL_getvars);
-
-       
-               $closeUrl = $this->local_linkThisScript(array("SET"=>array("function"=>1)));    // Goes to "Columns" view if close is pressed (default)
-               
-               if ($BE_USER->uc["condensedMode"])      {
-                       $uParts = parse_url(t3lib_div::getIndpEnv("REQUEST_URI"));
-                       $closeUrl="alt_db_navframe.php";
-               }
-               if (t3lib_div::GPvar("returnUrl"))      {
-                       $closeUrl = t3lib_div::GPvar("returnUrl");
-               }
-       
-               $retUrlStr = t3lib_div::GPvar("returnUrl")?"+'&returnUrl='+'".rawurlencode(t3lib_div::GPvar("returnUrl"))."'":"";
-               $toolBar='<select name="edit_record" onChange="jumpToUrl(\'db_layout.php?id='.$this->id.$addparams.'&'.$elementName.'=\'+escape(this.options[this.selectedIndex].value,this)'.$retUrlStr.');">'.implode("",$opt).'</select>'.
-                       '<input type="image" border=0 name="savedok" src="gfx/savedok.gif" hspace=2 width="21" height="16"'.t3lib_BEfunc::titleAttrib($LANG->sL("LLL:EXT:lang/locallang_core.php:rm.saveDoc"),1).' align=top>'.
-                       '<a href="#" onClick="document.editform.redirect.value+=\'&popView=1\'; TBE_EDITOR_checkAndDoSubmit(1); return false;"><img border=0 src="gfx/savedokshow.gif" hspace=2 width="21" height="16"'.t3lib_BEfunc::titleAttrib($LANG->sL("LLL:EXT:lang/locallang_core.php:rm.saveDocShow"),1).' align=top></a>'.
-                       '<a href="#" onClick="jumpToUrl(unescape(\''.rawurlencode($closeUrl).'\')); return false;"><img border=0 src="gfx/closedok.gif" hspace=2 width="21" height="16"'.t3lib_BEfunc::titleAttrib($LANG->sL("LLL:EXT:lang/locallang_core.php:rm.closeDoc"),1).' align=top></a>'.
-                       ($deleteButton ? '<a href="#" onClick="return deleteRecord(\''.$eRParts[0].'\',\''.$eRParts[1].'\',\'db_layout.php?id='.$this->id.'\');"><img border=0 src="gfx/deletedok.gif" hspace=2 width="21" height="16"'.t3lib_BEfunc::titleAttrib($LANG->getLL("deleteItem"),1).' align=top></a>' : '').
-                       ($undoButton ? '<a href="#" onClick="document.location=\'show_rechis.php?element='.rawurlencode($eRParts[0].':'.$eRParts[1]).'&revert=ALL_FIELDS&sumUp=-1&returnUrl='.rawurlencode($R_URI).'\'; return false;"><img border=0 src="gfx/undo.gif" hspace=2 width="21" height="16"'.t3lib_BEfunc::titleAttrib(sprintf($LANG->getLL("undoLastChange"),t3lib_BEfunc::calcAge(time()-$undoButtonR["tstamp"],$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.minutesHoursDaysYears"))),1).'" align=top></a>' : '').
-                       '';
-               $toolBar.='<img src=clear.gif width=15 height=1 align=top>';
-               $toolBar.=$undoButton?'<a href="#" onClick="jumpToUrl(\'show_rechis.php?element='.rawurlencode($eRParts[0].':'.$eRParts[1]).'&returnUrl='.rawurlencode($R_URI).'#latest\');return false;"><img src="gfx/history2.gif" width="13" height="12" vspace=2 hspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("recordHistory"),1).' align=top></a>':'';
-               $toolBar.='<A HREF="db_new_content_el.php?id='.$this->id.'&sys_language_uid='.$this->current_sys_language.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/new_record.gif" vspace=2 hspace=1 width=16 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("newContentElement")).'></a>';
-               if (t3lib_div::testInt($eRParts[1])) $toolBar.='<A HREF="move_el.php?table='.$eRParts[0].'&uid='.$eRParts[1].'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/move_'.($eRParts[0]=="tt_content"?"record":"page").'.gif" vspace=2 hspace=2 width=11 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("move_".($eRParts[0]=="tt_content"?"record":"page"))).'></a>';
-               $toolBar.='<a href="#" onClick="jumpToUrl(\'db_new.php?id='.$this->id.'&pagesOnly=1&returnUrl='.rawurlencode($R_URI).'\');return false;"><img src="gfx/new_page.gif" width="13" height="12" hspace=0 vspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("newPage"),1).' align=top></a>';
-       
-       //      $params="&edit[pages][".$this->id."]=edit";
-       //      $toolBar.='<a href="#" onClick="'.t3lib_BEfunc::editOnClick($params).'"><img src="gfx/edit_page.gif" width="12" height="12" hspace=2 vspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("editPageHeader"),1).' align=top></a>';
-               $toolBar.='<a href="'.$this->local_linkThisScript(array("edit_record"=>"pages:".$this->id)).'"><img src="gfx/edit2.gif" width="11" height="12" hspace=2 vspace=2 border="0"'.t3lib_BEfunc::titleAttrib($LANG->getLL("editPageHeader"),1).' align=top></a>';
-               $toolBar.='<img src=clear.gif width=15 height=1 align=top>';
-               $toolBar.=t3lib_BEfunc::helpTextIcon($this->descrTable,"quickEdit",$GLOBALS["BACK_PATH"]);
-               
-                       // Setting page header
-               $hS2='<table border=0 cellpadding=0 cellspacing=0 width=460>
-                       <tr>
-                               <td valign=top width=99%>'.$this->doc->getHeader("pages",$this->pageinfo,$this->pageinfo["_thePath"],0,explode("|",'<a href="'.$this->local_linkThisScript(array("edit_record"=>"pages:".$this->id)).'">|</a>')).'</td>
-                               <td valign=top width=1% valign=top>'.$this->topFuncMenu.'</td>
-                               <td valign=top width=1%><img src=clear.gif width=1 height=3><BR>'.$this->editIcon.'</td>
-                       </tr>
-                       <tr>
-                               <td><img src=clear.gif width=300 height=1></td>
-                               <td></td>
-                               <td></td>
-                       </tr>
-                       <tr>
-                               <td colspan=3 bgColor="'.$this->doc->bgColor4.'">'.t3lib_BEfunc::helpText($this->descrTable,"quickEdit",$GLOBALS["BACK_PATH"]).$toolBar.'</td>
-                       </tr>
-               </table>';
-       
-               $content.=$this->doc->startPage($LANG->getLL("title"));
-               $content.=$this->doc->section('',$hS2);
-               $content.=$this->doc->spacer(7);
-       
-       
-               // EDIT FORM:
-               if ($GLOBALS["BE_USER"]->check("tables_modify",$eRParts[0]) && $edit_record && (($eRParts[0]!="pages"&&$this->EDIT_CONTENT) || ($eRParts[0]=="pages"&&($this->CALC_PERMS&1))))  {
-               
-                       list($uidVal,$ex_pid,$ex_colPos) = explode("/",$eRParts[1]);
-                       
-                       $trData = t3lib_div::makeInstance("t3lib_transferData");
-                       $trData->defVals[$eRParts[0]] = array(
-                               'colPos' => intval($ex_colPos),
-                               'sys_language_uid' => intval($this->current_sys_language)
-                       );
-                       $trData->disableRTE = $this->MOD_SETTINGS["disableRTE"];
-                       $trData->lockRecords=1;
-                       $trData->fetchRecord($eRParts[0],($uidVal=="new"?$this->id:$uidVal),$uidVal);   // "new"
-       //                      $rec = $trData->regTableItems_data[$eRParts[0]."_".$uidVal];
-                       reset($trData->regTableItems_data);
-                       $rec = current($trData->regTableItems_data);
-                       if ($uidVal=="new")     {
-                               $new_unique_uid = uniqid("NEW");
-                               $rec["uid"] = $new_unique_uid;
-                               $rec["pid"] = intval($ex_pid)?intval($ex_pid):$this->id;
-                       } else {
-                               $rec["uid"] = $uidVal;
-                       }
-                       
-                       if (is_array($rec))     {
-                               $tceforms = t3lib_div::makeInstance("t3lib_TCEforms");
-                               $tceforms->initDefaultBEMode();
-                               $tceforms->fieldOrder = $this->modTSconfig["properties"]["tt_content."]["fieldOrder"];
-                               $tceforms->palettesCollapsed = !$this->MOD_SETTINGS["showPalettes"];
-                               $tceforms->disableRTE = $this->MOD_SETTINGS["disableRTE"];
-                               if ($BE_USER->uc["edit_showFieldHelp"]!="text" && $this->MOD_SETTINGS["showDescriptions"])      $tceforms->edit_showFieldHelp="text";
-       
-                               $theCode="";
-                               $panel="";
-                               $panel.=$tceforms->getMainFields($eRParts[0],$rec);
-                               $panel=$tceforms->wrapTotal($panel,$rec,$eRParts[0]);
-       
-                               $theCode.=$panel;
-                               if ($uidVal=="new")     {
-                                       $theCode.='<input type="hidden" name="data['.$eRParts[0].']['.$rec["uid"].'][pid]" value="'.$rec["pid"].'">';
-                               }
-                               $theCode.='
-                                       <input type="hidden" name="_serialNumber" value="'.md5(microtime()).'">
-                                       <input type="hidden" name="_disableRTE" value="'.$tceforms->disableRTE.'">
-                                       <input type="hidden" name="edit_record" value="'.$edit_record.'">
-                                       <input type="hidden" name="redirect" value="'.htmlspecialchars($uidVal=="new" ? "db_layout.php?id=".$this->id."&new_unique_uid=".$new_unique_uid."&returnUrl=".rawurlencode(t3lib_div::GPvar("returnUrl")) : $R_URI ).'">
-                                       ';
-                               $theCode=$tceforms->printNeededJSFunctions_top().$theCode.$tceforms->printNeededJSFunctions();
-                               
-                               if ($lockInfo=t3lib_BEfunc::isRecordLocked($eRParts[0],$rec["uid"]))    {
-                                       $lockIcon='<BR><table align="center" border=0 cellpadding=4 cellspacing=0 bgcolor="yellow" style="border:solid 2px black;"><tr><td>
-                                               <img src="gfx/recordlock_warning3.gif" width="17" height="12" vspace=2 hspace=10 border="0" align=top></td><td><strong>'.htmlspecialchars($lockInfo["msg"]).'</strong>
-                                       </td></tr></table><BR><BR>
-                                               ';
-                               } else $lockIcon="";
-                               
-                               $content.=$this->doc->section('',$lockIcon.$theCode);
-                       }
-               } else {
-                       $content.=$this->doc->section($LANG->getLL("noAccess"),$LANG->getLL("noAccess_msg")."<BR><BR>",0,1);
-               }
-               
-       
-                       // Bottom controls:
-               $q_count = $this->getNumberOfHiddenElements();
-               $h_func_b= t3lib_BEfunc::getFuncCheck($this->id,"SET[tt_content_showHidden]",$this->MOD_SETTINGS["tt_content_showHidden"],"db_layout.php","").(!$q_count?$GLOBALS["TBE_TEMPLATE"]->dfw($LANG->getLL("hiddenCE")):$LANG->getLL("hiddenCE")." (".$q_count.")");
-               $h_func_b.= "<BR>".t3lib_BEfunc::getFuncCheck($this->id,"SET[showPalettes]",$this->MOD_SETTINGS["showPalettes"],"db_layout.php","").$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.showPalettes");
-               if (t3lib_extMgm::isLoaded("context_help") && $BE_USER->uc["edit_showFieldHelp"]!="text") $h_func_b.= "<BR>".t3lib_BEfunc::getFuncCheck($this->id,"SET[showDescriptions]",$this->MOD_SETTINGS["showDescriptions"],"db_layout.php","").$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.showDescriptions");
-               if ($BE_USER->isRTE())  $h_func_b.= "<BR>".t3lib_BEfunc::getFuncCheck($this->id,"SET[disableRTE]",$this->MOD_SETTINGS["disableRTE"],"db_layout.php","").$LANG->sL("LLL:EXT:lang/locallang_core.php:labels.disableRTE");
-               $content.=$this->doc->section("",$h_func_b,0,0);
-       
-               $content.=$this->doc->spacer(10);
-       
-                       // Select element:
-               if ($eRParts[0]=="tt_content" && t3lib_div::testInt($eRParts[1]))       {
-                       $posMap = t3lib_div::makeInstance("ext_posMap");
-                       $posMap->cur_sys_language=$this->current_sys_language;
-                       $HTMLcode="";
-                       $HTMLcode.=t3lib_BEfunc::helpTextIcon($this->descrTable,"quickEdit_selElement",$GLOBALS["BACK_PATH"]).
-                                                       t3lib_BEfunc::helpText($this->descrTable,"quickEdit_selElement",$GLOBALS["BACK_PATH"]).
-                                                       "<BR>";
-               
-                       $HTMLcode.=$posMap->printContentElementColumns($this->id,$eRParts[1],$this->colPosList,$this->MOD_SETTINGS["tt_content_showHidden"],$R_URI);
-                       $HTMLcode.='<BR><BR><A HREF="move_el.php?table=tt_content&uid='.$eRParts[1].'&sys_language_uid='.$this->current_sys_language.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/move_record.gif" vspace=0 hspace=5 width=11 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("move_record")).'>'.htmlspecialchars($LANG->getLL("move_record")).'</a>';
-                       $HTMLcode.='<BR><img src=clear.gif width=1 height=5>';
-                       $HTMLcode.='<BR><A HREF="db_new_content_el.php?id='.$this->id.'&sys_language_uid='.$this->current_sys_language.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv("REQUEST_URI")).'"><img src="'.$BACK_PATH.'gfx/new_record.gif" vspace=0 hspace=2 width=16 height=12 border=0 align=top align="top"'.t3lib_BEfunc::titleAttrib($LANG->getLL("newContentElement")).'>'.htmlspecialchars($LANG->getLL("newContentElement")).'</a>';
-       
-                       $content.=$this->doc->spacer(20);
-                       $content.=$this->doc->section($LANG->getLL("CEonThisPage"),$HTMLcode,0,1);
-                       $content.=$this->doc->spacer(20);
-               }
-       
-       //debug($tceforms->commentMessages);
-               if (count($tceforms->commentMessages))  {
-                       $content.='
-       <!-- TCEFORM messages
-       '.implode(chr(10),$tceforms->commentMessages).'
-       -->
-       ';
-               }
-               
-               return $content;
-       }
-}
-
-// Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_layout.php"])    {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_layout.php"]);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance("SC_db_layout");
-$SOBE->init();
-
-// Include files?
-reset($SOBE->include_once);    
-while(list(,$INC_FILE)=each($SOBE->include_once))      {include_once($INC_FILE);}
-
-$SOBE->clearCache();
-$SOBE->main();
-$SOBE->printContent();
-?>
\ No newline at end of file
diff --git a/typo3/db_new_content_el.php b/typo3/db_new_content_el.php
deleted file mode 100755 (executable)
index 9b7ec36..0000000
+++ /dev/null
@@ -1,395 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * New content elements wizard
- * (Part of the "cms" extension)
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-$BACK_PATH="";
-require ("init.php");
-require ("template.php");
-include ("sysext/lang/locallang_misc.php");
-$LOCAL_LANG_orig = $LOCAL_LANG;
-include ("sysext/lang/locallang_db_new_content_el.php");
-$LOCAL_LANG = t3lib_div::array_merge_recursive_overrule($LOCAL_LANG_orig,$LOCAL_LANG);
-
-// Exits if "cms" extension is not loaded:
-t3lib_extMgm::isLoaded("cms",1);
-
-
-// ***************************
-// Functions
-// ***************************
-require_once (PATH_t3lib."class.t3lib_page.php");
-require_once (PATH_t3lib."class.t3lib_positionmap.php");
-require_once (PATH_t3lib."class.t3lib_pagetree.php");
-
-
-
-// ***************************
-// Script Classes
-// ***************************
-class localPageTree extends t3lib_pageTree {
-       function wrapIcon($icon,$row)   {
-               return substr($icon,0,-1).' title="id='.htmlspecialchars($row["uid"]).'">';
-       }
-}
-class ext_posMap extends t3lib_positionMap {
-       var $dontPrintPageInsertIcons = 1;
-       
-       function wrapRecordTitle($str,$row)     {
-               return $str;
-       }
-       function wrapColumnHeader($str,$vv)     {
-               return $str;
-       }
-       function wrapRecordHeader($str,$row)    {
-               return $str;
-       }
-       function onClickInsertRecord($row,$vv,$moveUid,$pid,$sys_lang=0) {
-               $table="tt_content";
-               
-               $location="alt_doc.php?edit[tt_content][".(is_array($row)?-$row["uid"]:$pid)."]=new&defVals[tt_content][colPos]=".$vv."&defVals[tt_content][sys_language_uid]=".$sys_lang."&returnUrl=".rawurlencode($GLOBALS["R_URI"]);
-
-               return 'document.location=\''.$location.'\'+document.editForm.defValues.value; return false;';
-       }
-}
-class SC_db_new_content_el {
-       var $modTSconfig=array();
-       var $access;
-       var $content;
-       var $id;
-       var $doc;       
-       var $sys_language=0;
-       
-       var $include_once = array();
-
-               // Constructor:
-       function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               global $R_URI,$TBE_MODULES_EXT;
-               
-               if (is_array($TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]))       {
-                       $this->include_once = array_merge($this->include_once,$TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]);
-               }
-               
-//debug($HTTP_GET_VARS);
-               
-               $this->id = intval(t3lib_div::GPvar("id"));
-               $this->sys_language = intval(t3lib_div::GPvar("sys_language_uid"));
-//debug($this->sys_language);
-               $perms_clause = $BE_USER->getPagePermsClause(1);
-               
-               $this->MCONF["name"] = "xMOD_db_new_content_el";
-               $this->modTSconfig = t3lib_BEfunc::getModTSconfig($this->id,"mod.".$this->MCONF["name"]);
-               
-               $this->doc = t3lib_div::makeInstance("mediumDoc");
-               $this->doc->backPath = $BACK_PATH;
-               $this->doc->JScode='';
-               $this->doc->form='<form action="" name="editForm"><input type="hidden" name="defValues" value="">';
-               
-               $R_URI=t3lib_div::GPvar("returnUrl");
-               $pageinfo = t3lib_BEfunc::readPageAccess($this->id,$perms_clause);
-               $this->access = is_array($pageinfo) ? 1 : 0;
-       }
-       function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               global $R_URI;
-
-               if ($this->id && $this->access) {
-               // ***************************
-               // Setting template object
-               // ***************************
-                       
-                       $posMap = t3lib_div::makeInstance("ext_posMap");
-                       $posMap->cur_sys_language = $this->sys_language;
-               
-                       if (isset($HTTP_GET_VARS["colPos"]))    {
-                               $colPos = t3lib_div::GPvar("colPos");
-                               $sys_lang = $this->sys_language;
-                               $uid_pid = intval(t3lib_div::GPvar("uid_pid"));
-                               if ($uid_pid<0) {
-                                       $row=array();
-                                       $row["uid"]=abs($uid_pid);
-                               } else {
-                                       $row="";
-                               }
-                               $onClickEvent = $posMap->onClickInsertRecord($row,$colPos,"",$uid_pid,$sys_lang);
-                       } else {
-                               $onClickEvent="";
-                       }
-               
-                               $this->doc->JScode='
-               <script language="javascript" type="text/javascript">
-                       function goToalt_doc()  {
-                               '.$onClickEvent.'
-                       }       
-               </script>
-                               ';
-               //      debug($onClickEvent);
-               
-               
-                       // ***************************
-                       // Creating content
-                       // ***************************
-                       $this->content="";
-                       $this->content.=$this->doc->startPage($LANG->getLL("newContentElement"));
-                       $this->content.=$this->doc->header($LANG->getLL("newContentElement"));
-                       $this->content.=$this->doc->spacer(5);
-               
-                       $elRow = t3lib_BEfunc::getRecord("pages",$this->id);
-                       $hline = t3lib_iconWorks::getIconImage("pages",$elRow,$BACK_PATH,t3lib_BEfunc::titleAttrib(t3lib_BEfunc::getRecordIconAltText($elRow,"pages"),1).' align=top');
-                       $hline.= t3lib_BEfunc::getRecordTitle("pages",$elRow,1);
-                       $this->content.=$this->doc->section("",$hline,0,1);
-                       $this->content.=$this->doc->spacer(10);
-               
-               
-                               // Wizard
-                       $code="";
-                       $lines=array();
-                       $wizardItems = $this->getWizardItems();
-                       reset($wizardItems);
-                       $cc=0;
-                       while(list($k,$wInfo)=each($wizardItems))       {
-                               if ($wInfo["header"])   {
-                                       if ($cc>0) $lines[]='<tr><td colspan=3><BR></td></tr>';
-                                       $lines[]='<tr bgcolor="'.$this->doc->bgColor5.'"><td colspan=3><strong>'.htmlspecialchars($wInfo["header"]).'</strong></td></tr>';
-                               } else {
-                                       $tL=array();
-                                       
-                                       $oC = "document.editForm.defValues.value=unescape('".rawurlencode($wInfo["params"])."');goToalt_doc();".(!$onClickEvent?"document.location='#sel2';":"");
-                                       
-                                       $tL[]='<input type="radio" name="tempB" value="'.$k.'" onClick="'.$this->doc->thisBlur().$oC.'">';
-                       
-                                       $iInfo = @getimagesize($wInfo["icon"]);
-                       //              debug($iInfo);
-                                       $tL[]='<a href="#" onClick="document.editForm.tempB['.$cc.'].checked=1;'.$this->doc->thisBlur().$oC.'return false;"><img border=0 src="'.$wInfo["icon"].'" '.$iInfo[3].'></a>';
-                       
-                                       $tL[]='<a href="#" onClick="document.editForm.tempB['.$cc.'].checked=1;'.$this->doc->thisBlur().$oC.'return false;"><strong>'.htmlspecialchars($wInfo["title"]).'</strong><BR>'.nl2br(htmlspecialchars($wInfo["description"])).'</a>';
-                       
-                                       $bgC=' bgcolor="'.$this->doc->bgColor4.'"';
-                                       $bgC='';
-                                       $lines[]='<tr'.$bgC.'><td valign=top>'.implode('</td><td valign=top>',$tL).'</td></tr>';
-                                       $cc++;
-                               }
-                       }
-                       $code.=$LANG->getLL("sel1").'<BR><BR><table border=0 cellpadding=1 cellspacing=2>'.implode("",$lines).'</table>';
-                       $this->content.=$this->doc->section(!$onClickEvent?$LANG->getLL("1_selectType"):"",$code,0,1);
-               
-                       if (!$onClickEvent)     {
-                               $this->content.=$this->doc->section("",'<a name="sel2"></a>');
-                               $this->content.=$this->doc->spacer(20);
-                                       // Select position
-                               $code=$LANG->getLL("sel2")."<BR><BR>";
-                       
-                               $modTSconfig_SHARED = t3lib_BEfunc::getModTSconfig($this->id,"mod.SHARED");             // SHARED page-TSconfig settings.
-                               $colPosList = strcmp(trim($modTSconfig_SHARED["properties"]["colPos_list"]),"") ? trim($modTSconfig_SHARED["properties"]["colPos_list"]) : "1,0,2,3";
-                       
-                               $code.=$posMap->printContentElementColumns($this->id,0,$colPosList,1,$R_URI);
-                               $this->content.=$this->doc->section($LANG->getLL("2_selectPosition"),$code,0,1);
-                       }
-               
-                       if ($R_URI)     {
-                               $code='<BR><BR><a href="'.$R_URI.'" class="typo3-goBack"><img src="gfx/goback.gif" width="14" height="14" hspace="2" border="0" align="top"><strong>'.$LANG->getLL("goBack").'</strong></a>';
-                               $this->content.=$this->doc->section("",$code,0,1);
-                       }
-               
-                       $this->content.=$this->doc->section("",'<img src=clear.gif width=1 height=700>',0,1);
-               
-                       // ***************************
-                       // Ending / Outputting
-                       // ***************************
-               
-               } else {
-                       $this->content="";
-                       $this->content.=$this->doc->startPage($LANG->getLL("newContentElement"));
-                       $this->content.=$this->doc->header($LANG->getLL("newContentElement"));
-                       $this->content.=$this->doc->spacer(5);
-               }
-       }
-       function printContent() {
-               global $SOBE;
-
-               $this->content.= $this->doc->middle();
-               $this->content.= $this->doc->endPage();
-               echo $this->content;
-       }
-       
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
-
-       function wizardArray()  {
-               global $LANG,$TBE_MODULES_EXT;
-               
-               $wizardItems = array(
-                       "common" => array("header"=>$LANG->getLL("common")),
-                       "common_1" => array(
-                               "icon"=>"gfx/c_wiz/regular_text.gif",
-                               "title"=>$LANG->getLL("common_1_title"),
-                               "description"=>$LANG->getLL("common_1_description"),
-                               "params"=>"&defVals[tt_content][CType]=text"
-                       ),
-                       "common_2" => array(
-                               "icon"=>"gfx/c_wiz/text_image_below.gif",
-                               "title"=>$LANG->getLL("common_2_title"),
-                               "description"=>$LANG->getLL("common_2_description"),
-                               "params"=>"&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=8"
-                       ),
-                       "common_3" => array(
-                               "icon"=>"gfx/c_wiz/text_image_right.gif",
-                               "title"=>$LANG->getLL("common_3_title"),
-                               "description"=>$LANG->getLL("common_3_description"),
-                               "params"=>"&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=17"
-                       ),
-                       "common_4" => array(
-                               "icon"=>"gfx/c_wiz/images_only.gif",
-                               "title"=>$LANG->getLL("common_4_title"),
-                               "description"=>$LANG->getLL("common_4_description"),
-                               "params"=>"&defVals[tt_content][CType]=image&defVals[tt_content][imagecols]=2"
-                       ),
-                       "common_5" => array(
-                               "icon"=>"gfx/c_wiz/bullet_list.gif",
-                               "title"=>$LANG->getLL("common_5_title"),
-                               "description"=>$LANG->getLL("common_5_description"),
-                               "params"=>"&defVals[tt_content][CType]=bullets"
-                       ),
-                       "common_6" => array(
-                               "icon"=>"gfx/c_wiz/table.gif",
-                               "title"=>$LANG->getLL("common_6_title"),
-                               "description"=>$LANG->getLL("common_6_description"),
-                               "params"=>"&defVals[tt_content][CType]=table"
-                       ),
-                       "special" => array("header"=>$LANG->getLL("special")),
-                       "special_1" => array(
-                               "icon"=>"gfx/c_wiz/filelinks.gif",
-                               "title"=>$LANG->getLL("special_1_title"),
-                               "description"=>$LANG->getLL("special_1_description"),
-                               "params"=>"&defVals[tt_content][CType]=uploads"
-                       ),
-                       "special_2" => array(
-                               "icon"=>"gfx/c_wiz/multimedia.gif",
-                               "title"=>$LANG->getLL("special_2_title"),
-                               "description"=>$LANG->getLL("special_2_description"),
-                               "params"=>"&defVals[tt_content][CType]=multimedia"
-                       ),
-                       "special_3" => array(
-                               "icon"=>"gfx/c_wiz/sitemap2.gif",
-                               "title"=>$LANG->getLL("special_3_title"),
-                               "description"=>$LANG->getLL("special_3_description"),
-                               "params"=>"&defVals[tt_content][CType]=menu&defVals[tt_content][menu_type]=2"
-                       ),
-                       "special_4" => array(
-                               "icon"=>"gfx/c_wiz/html.gif",
-                               "title"=>$LANG->getLL("special_4_title"),
-                               "description"=>$LANG->getLL("special_4_description"),
-                               "params"=>"&defVals[tt_content][CType]=html"
-                       ),
-               
-               
-                       "forms" => array("header"=>$LANG->getLL("forms")),
-                       "forms_1" => array(
-                               "icon"=>"gfx/c_wiz/mailform.gif",
-                               "title"=>$LANG->getLL("forms_1_title"),
-                               "description"=>$LANG->getLL("forms_1_description"),
-                               "params"=>"&defVals[tt_content][CType]=mailform&defVals[tt_content][bodytext]=".rawurlencode(trim('
-# Example content:
-Name: | *name = input,40 | Enter your name here
-Email: | *email=input,40 |
-Address: | address=textarea,40,5 |
-Contact me: | tv=check | 1
-
-|formtype_mail = submit | Send form!
-|html_enabled=hidden | 1
-|subject=hidden| This is the subject
-                               '))
-                       ),
-                       "forms_2" => array(
-                               "icon"=>"gfx/c_wiz/searchform.gif",
-                               "title"=>$LANG->getLL("forms_2_title"),
-                               "description"=>$LANG->getLL("forms_2_description"),
-                               "params"=>"&defVals[tt_content][CType]=search"
-                       ),
-                       "forms_3" => array(
-                               "icon"=>"gfx/c_wiz/login_form.gif",
-                               "title"=>$LANG->getLL("forms_3_title"),
-                               "description"=>$LANG->getLL("forms_3_description"),
-                               "params"=>"&defVals[tt_content][CType]=login"
-                       ),
-                       "plugins" => array("header"=>$LANG->getLL("plugins")),
-               );
-
-
-                       // PLUG-INS:
-               if (is_array($TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]))       {
-                       reset($TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]);
-                       while(list($class,$path)=each($TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]))      {
-                               $modObj = t3lib_div::makeInstance($class);
-                               $wizardItems = $modObj->proc($wizardItems);
-                       }
-               }
-
-               return $wizardItems;
-       }
-       function getWizardItems()       {
-               return $this->wizardArray();
-       }
-}
-
-// Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_new_content_el.php"])    {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/db_new_content_el.php"]);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance("SC_db_new_content_el");
-$SOBE->init();
-
-// Include files?
-reset($SOBE->include_once);    
-while(list(,$INC_FILE)=each($SOBE->include_once))      {include_once($INC_FILE);}
-
-$SOBE->main();
-$SOBE->printContent();
-?>
\ No newline at end of file
diff --git a/typo3/icons/icon_00f8e0220e.gif b/typo3/icons/icon_00f8e0220e.gif
deleted file mode 100644 (file)
index d776532..0000000
Binary files a/typo3/icons/icon_00f8e0220e.gif and /dev/null differ
diff --git a/typo3/icons/icon_0245c46507.gif b/typo3/icons/icon_0245c46507.gif
deleted file mode 100644 (file)
index bfeaab2..0000000
Binary files a/typo3/icons/icon_0245c46507.gif and /dev/null differ
diff --git a/typo3/icons/icon_04dc0210a1.gif b/typo3/icons/icon_04dc0210a1.gif
deleted file mode 100644 (file)
index 1200405..0000000
Binary files a/typo3/icons/icon_04dc0210a1.gif and /dev/null differ
diff --git a/typo3/icons/icon_07eff13a15.gif b/typo3/icons/icon_07eff13a15.gif
deleted file mode 100755 (executable)
index 4d327ca..0000000
Binary files a/typo3/icons/icon_07eff13a15.gif and /dev/null differ
diff --git a/typo3/icons/icon_0a7d5ada1a.gif b/typo3/icons/icon_0a7d5ada1a.gif
deleted file mode 100755 (executable)
index 6c6873a..0000000
Binary files a/typo3/icons/icon_0a7d5ada1a.gif and /dev/null differ
diff --git a/typo3/icons/icon_127199e3f6.gif b/typo3/icons/icon_127199e3f6.gif
deleted file mode 100644 (file)
index 30eb23f..0000000
Binary files a/typo3/icons/icon_127199e3f6.gif and /dev/null differ
diff --git a/typo3/icons/icon_13d4655e90.gif b/typo3/icons/icon_13d4655e90.gif
deleted file mode 100644 (file)
index 4e91a8b..0000000
Binary files a/typo3/icons/icon_13d4655e90.gif and /dev/null differ
diff --git a/typo3/icons/icon_16f038ead8.gif b/typo3/icons/icon_16f038ead8.gif
deleted file mode 100755 (executable)
index 65a9b86..0000000
Binary files a/typo3/icons/icon_16f038ead8.gif and /dev/null differ
diff --git a/typo3/icons/icon_1cc7ca5c9a.gif b/typo3/icons/icon_1cc7ca5c9a.gif
deleted file mode 100755 (executable)
index a9b6e3a..0000000
Binary files a/typo3/icons/icon_1cc7ca5c9a.gif and /dev/null differ
diff --git a/typo3/icons/icon_260a676af9.gif b/typo3/icons/icon_260a676af9.gif
deleted file mode 100755 (executable)
index 242fce9..0000000
Binary files a/typo3/icons/icon_260a676af9.gif and /dev/null differ
diff --git a/typo3/icons/icon_26b59c6813.gif b/typo3/icons/icon_26b59c6813.gif
deleted file mode 100755 (executable)
index 18113f5..0000000
Binary files a/typo3/icons/icon_26b59c6813.gif and /dev/null differ
diff --git a/typo3/icons/icon_29c5185e41.gif b/typo3/icons/icon_29c5185e41.gif
deleted file mode 100644 (file)
index d048a7d..0000000
Binary files a/typo3/icons/icon_29c5185e41.gif and /dev/null differ
diff --git a/typo3/icons/icon_30b5fb3b75.gif b/typo3/icons/icon_30b5fb3b75.gif
deleted file mode 100644 (file)
index 35a10a0..0000000
Binary files a/typo3/icons/icon_30b5fb3b75.gif and /dev/null differ
diff --git a/typo3/icons/icon_3c085f9ae6.gif b/typo3/icons/icon_3c085f9ae6.gif
deleted file mode 100644 (file)
index 27a8afb..0000000
Binary files a/typo3/icons/icon_3c085f9ae6.gif and /dev/null differ
diff --git a/typo3/icons/icon_3e891f9158.gif b/typo3/icons/icon_3e891f9158.gif
deleted file mode 100644 (file)
index dacbbef..0000000
Binary files a/typo3/icons/icon_3e891f9158.gif and /dev/null differ
diff --git a/typo3/icons/icon_4316b35f1d.gif b/typo3/icons/icon_4316b35f1d.gif
deleted file mode 100644 (file)
index 3ccd05b..0000000
Binary files a/typo3/icons/icon_4316b35f1d.gif and /dev/null differ
diff --git a/typo3/icons/icon_4734dba256.gif b/typo3/icons/icon_4734dba256.gif
deleted file mode 100644 (file)
index ef6b956..0000000
Binary files a/typo3/icons/icon_4734dba256.gif and /dev/null differ
diff --git a/typo3/icons/icon_4a67de7e15.gif b/typo3/icons/icon_4a67de7e15.gif
deleted file mode 100644 (file)
index 8eb2780..0000000
Binary files a/typo3/icons/icon_4a67de7e15.gif and /dev/null differ
diff --git a/typo3/icons/icon_50d6da96d8.gif b/typo3/icons/icon_50d6da96d8.gif
deleted file mode 100755 (executable)
index 27a9f5e..0000000
Binary files a/typo3/icons/icon_50d6da96d8.gif and /dev/null differ
diff --git a/typo3/icons/icon_50e1a0ffb4.gif b/typo3/icons/icon_50e1a0ffb4.gif
deleted file mode 100644 (file)
index 660c113..0000000
Binary files a/typo3/icons/icon_50e1a0ffb4.gif and /dev/null differ
diff --git a/typo3/icons/icon_518ce78fa3.gif b/typo3/icons/icon_518ce78fa3.gif
deleted file mode 100755 (executable)
index 35e017a..0000000
Binary files a/typo3/icons/icon_518ce78fa3.gif and /dev/null differ
diff --git a/typo3/icons/icon_530a10f836.gif b/typo3/icons/icon_530a10f836.gif
deleted file mode 100644 (file)
index ecc3244..0000000
Binary files a/typo3/icons/icon_530a10f836.gif and /dev/null differ
diff --git a/typo3/icons/icon_56b8094482.gif b/typo3/icons/icon_56b8094482.gif
deleted file mode 100644 (file)
index 1bf0edd..0000000
Binary files a/typo3/icons/icon_56b8094482.gif and /dev/null differ
diff --git a/typo3/icons/icon_5a4ab240d4.gif b/typo3/icons/icon_5a4ab240d4.gif
deleted file mode 100644 (file)
index b53c6c3..0000000
Binary files a/typo3/icons/icon_5a4ab240d4.gif and /dev/null differ
diff --git a/typo3/icons/icon_5b879dc41e.gif b/typo3/icons/icon_5b879dc41e.gif
deleted file mode 100644 (file)
index 43d493f..0000000
Binary files a/typo3/icons/icon_5b879dc41e.gif and /dev/null differ
diff --git a/typo3/icons/icon_5f6da6391c.gif b/typo3/icons/icon_5f6da6391c.gif
deleted file mode 100644 (file)
index e5d6477..0000000
Binary files a/typo3/icons/icon_5f6da6391c.gif and /dev/null differ
diff --git a/typo3/icons/icon_6154f071e0.gif b/typo3/icons/icon_6154f071e0.gif
deleted file mode 100644 (file)
index cfd6024..0000000
Binary files a/typo3/icons/icon_6154f071e0.gif and /dev/null differ
diff --git a/typo3/icons/icon_63cb79d14d.gif b/typo3/icons/icon_63cb79d14d.gif
deleted file mode 100644 (file)
index a111e03..0000000
Binary files a/typo3/icons/icon_63cb79d14d.gif and /dev/null differ
diff --git a/typo3/icons/icon_64070a40db.gif b/typo3/icons/icon_64070a40db.gif
deleted file mode 100644 (file)
index c5402ec..0000000
Binary files a/typo3/icons/icon_64070a40db.gif and /dev/null differ
diff --git a/typo3/icons/icon_67df7e3935.gif b/typo3/icons/icon_67df7e3935.gif
deleted file mode 100644 (file)
index b791e0b..0000000
Binary files a/typo3/icons/icon_67df7e3935.gif and /dev/null differ
diff --git a/typo3/icons/icon_69907e62dd.gif b/typo3/icons/icon_69907e62dd.gif
deleted file mode 100755 (executable)
index 113b815..0000000
Binary files a/typo3/icons/icon_69907e62dd.gif and /dev/null differ
diff --git a/typo3/icons/icon_6a16f30d0e.gif b/typo3/icons/icon_6a16f30d0e.gif
deleted file mode 100644 (file)
index 804c263..0000000
Binary files a/typo3/icons/icon_6a16f30d0e.gif and /dev/null differ
diff --git a/typo3/icons/icon_6b3c2e00c1.gif b/typo3/icons/icon_6b3c2e00c1.gif
deleted file mode 100644 (file)
index 73807a6..0000000
Binary files a/typo3/icons/icon_6b3c2e00c1.gif and /dev/null differ
diff --git a/typo3/icons/icon_700589ec0f.gif b/typo3/icons/icon_700589ec0f.gif
deleted file mode 100755 (executable)
index 366c42f..0000000
Binary files a/typo3/icons/icon_700589ec0f.gif and /dev/null differ
diff --git a/typo3/icons/icon_739ec5f077.gif b/typo3/icons/icon_739ec5f077.gif
deleted file mode 100644 (file)
index d801dda..0000000
Binary files a/typo3/icons/icon_739ec5f077.gif and /dev/null differ
diff --git a/typo3/icons/icon_74182517a9.gif b/typo3/icons/icon_74182517a9.gif
deleted file mode 100644 (file)
index bb35297..0000000
Binary files a/typo3/icons/icon_74182517a9.gif and /dev/null differ
diff --git a/typo3/icons/icon_7d6dfd461b.gif b/typo3/icons/icon_7d6dfd461b.gif
deleted file mode 100644 (file)
index c5f909d..0000000
Binary files a/typo3/icons/icon_7d6dfd461b.gif and /dev/null differ
diff --git a/typo3/icons/icon_830746c89e.gif b/typo3/icons/icon_830746c89e.gif
deleted file mode 100644 (file)
index 163522e..0000000
Binary files a/typo3/icons/icon_830746c89e.gif and /dev/null differ
diff --git a/typo3/icons/icon_8b972a62a6.gif b/typo3/icons/icon_8b972a62a6.gif
deleted file mode 100755 (executable)
index 0838a8b..0000000
Binary files a/typo3/icons/icon_8b972a62a6.gif and /dev/null differ
diff --git a/typo3/icons/icon_8cbf4a449d.gif b/typo3/icons/icon_8cbf4a449d.gif
deleted file mode 100644 (file)
index 3a2e07b..0000000
Binary files a/typo3/icons/icon_8cbf4a449d.gif and /dev/null differ
diff --git a/typo3/icons/icon_8d74b6967a.gif b/typo3/icons/icon_8d74b6967a.gif
deleted file mode 100755 (executable)
index 0c87f7d..0000000
Binary files a/typo3/icons/icon_8d74b6967a.gif and /dev/null differ
diff --git a/typo3/icons/icon_8da21ac0fa.gif b/typo3/icons/icon_8da21ac0fa.gif
deleted file mode 100644 (file)
index 44e32cd..0000000
Binary files a/typo3/icons/icon_8da21ac0fa.gif and /dev/null differ
diff --git a/typo3/icons/icon_8e353fff01.gif b/typo3/icons/icon_8e353fff01.gif
deleted file mode 100644 (file)
index 6679c25..0000000
Binary files a/typo3/icons/icon_8e353fff01.gif and /dev/null differ
diff --git a/typo3/icons/icon_958043c184.gif b/typo3/icons/icon_958043c184.gif
deleted file mode 100755 (executable)
index 525ac15..0000000
Binary files a/typo3/icons/icon_958043c184.gif and /dev/null differ
diff --git a/typo3/icons/icon_97c063a92e.gif b/typo3/icons/icon_97c063a92e.gif
deleted file mode 100644 (file)
index cea0006..0000000
Binary files a/typo3/icons/icon_97c063a92e.gif and /dev/null differ
diff --git a/typo3/icons/icon_99d46d095f.gif b/typo3/icons/icon_99d46d095f.gif
deleted file mode 100644 (file)
index 475eea3..0000000
Binary files a/typo3/icons/icon_99d46d095f.gif and /dev/null differ
diff --git a/typo3/icons/icon_9b42b72742.gif b/typo3/icons/icon_9b42b72742.gif
deleted file mode 100644 (file)
index a40556c..0000000
Binary files a/typo3/icons/icon_9b42b72742.gif and /dev/null differ
diff --git a/typo3/icons/icon_9d43c58ced.gif b/typo3/icons/icon_9d43c58ced.gif
deleted file mode 100644 (file)
index 35a10a0..0000000
Binary files a/typo3/icons/icon_9d43c58ced.gif and /dev/null differ
diff --git a/typo3/icons/icon_a0aaa70402.gif b/typo3/icons/icon_a0aaa70402.gif
deleted file mode 100755 (executable)
index 9c8731a..0000000
Binary files a/typo3/icons/icon_a0aaa70402.gif and /dev/null differ
diff --git a/typo3/icons/icon_a1e1b10b1f.gif b/typo3/icons/icon_a1e1b10b1f.gif
deleted file mode 100755 (executable)
index e8557d7..0000000
Binary files a/typo3/icons/icon_a1e1b10b1f.gif and /dev/null differ
diff --git a/typo3/icons/icon_a43271d346.gif b/typo3/icons/icon_a43271d346.gif
deleted file mode 100755 (executable)
index 68853d7..0000000
Binary files a/typo3/icons/icon_a43271d346.gif and /dev/null differ
diff --git a/typo3/icons/icon_a6a2089da0.gif b/typo3/icons/icon_a6a2089da0.gif
deleted file mode 100644 (file)
index 30eb23f..0000000
Binary files a/typo3/icons/icon_a6a2089da0.gif and /dev/null differ
diff --git a/typo3/icons/icon_a76c6c1322.gif b/typo3/icons/icon_a76c6c1322.gif
deleted file mode 100755 (executable)
index 5013e63..0000000
Binary files a/typo3/icons/icon_a76c6c1322.gif and /dev/null differ
diff --git a/typo3/icons/icon_a947fedc6a.gif b/typo3/icons/icon_a947fedc6a.gif
deleted file mode 100644 (file)
index 84c42c1..0000000
Binary files a/typo3/icons/icon_a947fedc6a.gif and /dev/null differ
diff --git a/typo3/icons/icon_aa721fed1e.gif b/typo3/icons/icon_aa721fed1e.gif
deleted file mode 100755 (executable)
index 94925b5..0000000
Binary files a/typo3/icons/icon_aa721fed1e.gif and /dev/null differ
diff --git a/typo3/icons/icon_ab336769b4.gif b/typo3/icons/icon_ab336769b4.gif
deleted file mode 100755 (executable)
index 4a1cde3..0000000
Binary files a/typo3/icons/icon_ab336769b4.gif and /dev/null differ
diff --git a/typo3/icons/icon_b3556f0b1a.gif b/typo3/icons/icon_b3556f0b1a.gif
deleted file mode 100644 (file)
index 91680c5..0000000
Binary files a/typo3/icons/icon_b3556f0b1a.gif and /dev/null differ
diff --git a/typo3/icons/icon_b3f9f36168.gif b/typo3/icons/icon_b3f9f36168.gif
deleted file mode 100644 (file)
index 93c1cbe..0000000
Binary files a/typo3/icons/icon_b3f9f36168.gif and /dev/null differ
diff --git a/typo3/icons/icon_b602733078.gif b/typo3/icons/icon_b602733078.gif
deleted file mode 100644 (file)
index dcf3c3b..0000000
Binary files a/typo3/icons/icon_b602733078.gif and /dev/null differ
diff --git a/typo3/icons/icon_b860c23353.gif b/typo3/icons/icon_b860c23353.gif
deleted file mode 100755 (executable)
index bc304f1..0000000
Binary files a/typo3/icons/icon_b860c23353.gif and /dev/null differ
diff --git a/typo3/icons/icon_ba2af37bbf.gif b/typo3/icons/icon_ba2af37bbf.gif
deleted file mode 100644 (file)
index 43d493f..0000000
Binary files a/typo3/icons/icon_ba2af37bbf.gif and /dev/null differ
diff --git a/typo3/icons/icon_bf9e00b5d2.gif b/typo3/icons/icon_bf9e00b5d2.gif
deleted file mode 100644 (file)
index ed5d265..0000000
Binary files a/typo3/icons/icon_bf9e00b5d2.gif and /dev/null differ
diff --git a/typo3/icons/icon_c049aba16f.gif b/typo3/icons/icon_c049aba16f.gif
deleted file mode 100644 (file)
index 5bfd26b..0000000
Binary files a/typo3/icons/icon_c049aba16f.gif and /dev/null differ
diff --git a/typo3/icons/icon_c1d4b999b7.gif b/typo3/icons/icon_c1d4b999b7.gif
deleted file mode 100644 (file)
index 102db43..0000000
Binary files a/typo3/icons/icon_c1d4b999b7.gif and /dev/null differ
diff --git a/typo3/icons/icon_c33b0a6c13.gif b/typo3/icons/icon_c33b0a6c13.gif
deleted file mode 100644 (file)
index c56d224..0000000
Binary files a/typo3/icons/icon_c33b0a6c13.gif and /dev/null differ
diff --git a/typo3/icons/icon_c82f0aeb4f.gif b/typo3/icons/icon_c82f0aeb4f.gif
deleted file mode 100644 (file)
index bc06c79..0000000
Binary files a/typo3/icons/icon_c82f0aeb4f.gif and /dev/null differ
diff --git a/typo3/icons/icon_cb5b0bd837.gif b/typo3/icons/icon_cb5b0bd837.gif
deleted file mode 100644 (file)
index 7f520cd..0000000
Binary files a/typo3/icons/icon_cb5b0bd837.gif and /dev/null differ
diff --git a/typo3/icons/icon_cfe024394f.gif b/typo3/icons/icon_cfe024394f.gif
deleted file mode 100755 (executable)
index 4fecfbd..0000000
Binary files a/typo3/icons/icon_cfe024394f.gif and /dev/null differ
diff --git a/typo3/icons/icon_cfe308933c.gif b/typo3/icons/icon_cfe308933c.gif
deleted file mode 100755 (executable)
index 578175d..0000000
Binary files a/typo3/icons/icon_cfe308933c.gif and /dev/null differ
diff --git a/typo3/icons/icon_d1eca7846f.gif b/typo3/icons/icon_d1eca7846f.gif
deleted file mode 100644 (file)
index 4efeb31..0000000
Binary files a/typo3/icons/icon_d1eca7846f.gif and /dev/null differ
diff --git a/typo3/icons/icon_d5017d767b.gif b/typo3/icons/icon_d5017d767b.gif
deleted file mode 100755 (executable)
index 19ba105..0000000
Binary files a/typo3/icons/icon_d5017d767b.gif and /dev/null differ
diff --git a/typo3/icons/icon_d5927ef6ff.gif b/typo3/icons/icon_d5927ef6ff.gif
deleted file mode 100644 (file)
index 1b29dfb..0000000
Binary files a/typo3/icons/icon_d5927ef6ff.gif and /dev/null differ
diff --git a/typo3/icons/icon_d5fccc038d.gif b/typo3/icons/icon_d5fccc038d.gif
deleted file mode 100755 (executable)
index 0f1c75e..0000000
Binary files a/typo3/icons/icon_d5fccc038d.gif and /dev/null differ
diff --git a/typo3/icons/icon_d7a4e09dfd.gif b/typo3/icons/icon_d7a4e09dfd.gif
deleted file mode 100644 (file)
index eac6843..0000000
Binary files a/typo3/icons/icon_d7a4e09dfd.gif and /dev/null differ
diff --git a/typo3/icons/icon_d8c67850bb.gif b/typo3/icons/icon_d8c67850bb.gif
deleted file mode 100644 (file)
index 38917f5..0000000
Binary files a/typo3/icons/icon_d8c67850bb.gif and /dev/null differ
diff --git a/typo3/icons/icon_dd4182dd57.gif b/typo3/icons/icon_dd4182dd57.gif
deleted file mode 100644 (file)
index 41e8d53..0000000
Binary files a/typo3/icons/icon_dd4182dd57.gif and /dev/null differ
diff --git a/typo3/icons/icon_e00e15f594.gif b/typo3/icons/icon_e00e15f594.gif
deleted file mode 100644 (file)
index 3b234c5..0000000
Binary files a/typo3/icons/icon_e00e15f594.gif and /dev/null differ
diff --git a/typo3/icons/icon_e18829a00a.gif b/typo3/icons/icon_e18829a00a.gif
deleted file mode 100755 (executable)
index 6e88dc1..0000000
Binary files a/typo3/icons/icon_e18829a00a.gif and /dev/null differ
diff --git a/typo3/icons/icon_e359adb2d1.gif b/typo3/icons/icon_e359adb2d1.gif
deleted file mode 100644 (file)
index cc4b2a9..0000000
Binary files a/typo3/icons/icon_e359adb2d1.gif and /dev/null differ
diff --git a/typo3/icons/icon_e465305d37.gif b/typo3/icons/icon_e465305d37.gif
deleted file mode 100644 (file)
index eef0fd7..0000000
Binary files a/typo3/icons/icon_e465305d37.gif and /dev/null differ
diff --git a/typo3/icons/icon_e4d98f3869.gif b/typo3/icons/icon_e4d98f3869.gif
deleted file mode 100644 (file)
index 8ea4d35..0000000
Binary files a/typo3/icons/icon_e4d98f3869.gif and /dev/null differ
diff --git a/typo3/icons/icon_e576aac06a.gif b/typo3/icons/icon_e576aac06a.gif
deleted file mode 100644 (file)
index 84c42c1..0000000
Binary files a/typo3/icons/icon_e576aac06a.gif and /dev/null differ
diff --git a/typo3/icons/icon_e5fddbe851.gif b/typo3/icons/icon_e5fddbe851.gif
deleted file mode 100644 (file)
index f90a836..0000000
Binary files a/typo3/icons/icon_e5fddbe851.gif and /dev/null differ
diff --git a/typo3/icons/icon_efb54f6c90.gif b/typo3/icons/icon_efb54f6c90.gif
deleted file mode 100644 (file)
index 0febd74..0000000
Binary files a/typo3/icons/icon_efb54f6c90.gif and /dev/null differ
diff --git a/typo3/icons/icon_f111090b94.gif b/typo3/icons/icon_f111090b94.gif
deleted file mode 100644 (file)
index 4848972..0000000
Binary files a/typo3/icons/icon_f111090b94.gif and /dev/null differ
diff --git a/typo3/icons/icon_f1e2cfe815.gif b/typo3/icons/icon_f1e2cfe815.gif
deleted file mode 100755 (executable)
index 113b815..0000000
Binary files a/typo3/icons/icon_f1e2cfe815.gif and /dev/null differ
diff --git a/typo3/icons/icon_f535e98248.gif b/typo3/icons/icon_f535e98248.gif
deleted file mode 100755 (executable)
index fc914a8..0000000
Binary files a/typo3/icons/icon_f535e98248.gif and /dev/null differ
diff --git a/typo3/icons/icon_f5e741a136.gif b/typo3/icons/icon_f5e741a136.gif
deleted file mode 100644 (file)
index acb64c9..0000000
Binary files a/typo3/icons/icon_f5e741a136.gif and /dev/null differ
diff --git a/typo3/icons/icon_f6cf4262ba.gif b/typo3/icons/icon_f6cf4262ba.gif
deleted file mode 100755 (executable)
index 05e548b..0000000
Binary files a/typo3/icons/icon_f6cf4262ba.gif and /dev/null differ
diff --git a/typo3/icons/icon_f8ceb88480.gif b/typo3/icons/icon_f8ceb88480.gif
deleted file mode 100644 (file)
index 464aead..0000000
Binary files a/typo3/icons/icon_f8ceb88480.gif and /dev/null differ
diff --git a/typo3/icons/icon_f9e38cab80.gif b/typo3/icons/icon_f9e38cab80.gif
deleted file mode 100644 (file)
index 4814f9a..0000000
Binary files a/typo3/icons/icon_f9e38cab80.gif and /dev/null differ
diff --git a/typo3/icons/icon_f9fe320fc3.gif b/typo3/icons/icon_f9fe320fc3.gif
deleted file mode 100644 (file)
index 38917f5..0000000
Binary files a/typo3/icons/icon_f9fe320fc3.gif and /dev/null differ
diff --git a/typo3/icons/icon_fa972c9af0.gif b/typo3/icons/icon_fa972c9af0.gif
deleted file mode 100755 (executable)
index 95802b4..0000000
Binary files a/typo3/icons/icon_fa972c9af0.gif and /dev/null differ
diff --git a/typo3/icons/icon_fbc2d25714.gif b/typo3/icons/icon_fbc2d25714.gif
deleted file mode 100755 (executable)
index d24e876..0000000
Binary files a/typo3/icons/icon_fbc2d25714.gif and /dev/null differ
index 55e603f..ece97eb 100755 (executable)
@@ -2540,6 +2540,8 @@ EXTENSION KEYS:
         * @return      [type]          ...
         */
        function tsStyleConfigForm($eKey,$info,$output=0,$script="",$addFields="")      {
+               global $TYPO3_CONF_VARS;
+               
                $absPath = $this->getExtPath($eKey,$info);
                $relPath = $this->typeRelPaths[$info["type"]].$eKey."/";
 
@@ -2557,11 +2559,21 @@ EXTENSION KEYS:
                        $arr = unserialize($GLOBALS["TYPO3_CONF_VARS"]["EXT"]["extConf"][$eKey]);
                        $arr = is_array($arr) ? $arr : array();
                        
+                               // Call processing function for constants config and data before write and form rendering:
+                       if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/mod/tools/em/index.php']['tsStyleConfigForm']))      {
+                               $_params = array('fields' => &$theConstants, 'data' => &$arr, 'extKey' => $eKey);
+                               foreach($TYPO3_CONF_VARS['SC_OPTIONS']['typo3/mod/tools/em/index.php']['tsStyleConfigForm'] as $_funcRef)       {
+                                       t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                               }
+                               unset($_params);
+                       }                               
+
                        if ($GLOBALS["HTTP_POST_VARS"]["submit"])       {
                                $tsStyleConfig->ext_procesInput($GLOBALS["HTTP_POST_VARS"],array(),$theConstants,array());
                                $arr = $tsStyleConfig->ext_mergeIncomingWithExisting($arr);
                                $this->writeTsStyleConfig($eKey,$arr);
                        }
+
                        $tsStyleConfig->ext_setValueArray($theConstants,$arr);
                        
                        $MOD_MENU=array();
index f3b95f3..e5459c3 100755 (executable)
@@ -231,7 +231,7 @@ class SC_mod_web_perm_index {
                
                                // If $this->edit then these functions are called in the end of the page...
                        if ($this->edit)        {
-                               $this->doc->postCode= $this->doc->wrapScriptTags('
+                               $this->doc->postCode.= $this->doc->wrapScriptTags('
                                        setCheck("check[perms_user]","data[pages]['.$this->id.'][perms_user]");
                                        setCheck("check[perms_group]","data[pages]['.$this->id.'][perms_group]");
                                        setCheck("check[perms_everybody]","data[pages]['.$this->id.'][perms_everybody]");
@@ -240,7 +240,7 @@ class SC_mod_web_perm_index {
                
                                // Draw the HTML page header.
                        $this->content.=$this->doc->startPage($LANG->getLL('permissions'));
-                       $this->content.=$this->doc->header($LANG->getLL('permissions').($this->edit?': &nbsp;&nbsp;&nbsp;'.$LANG->getLL('Edit'):''));
+                       $this->content.=$this->doc->header($LANG->getLL('permissions').($this->edit?': '.$LANG->getLL('Edit'):''));
                        $this->content.=$this->doc->spacer(5);
                        $this->content.=$this->doc->section('',
                                $this->doc->funcMenu(
@@ -262,15 +262,10 @@ class SC_mod_web_perm_index {
                                        $this->doc->spacer(20).
                                        $this->doc->section('',$this->doc->makeShortcutIcon('id,edit,return_id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']));
                        }
-               
-                               // Add spacer in bottom:
-                       $this->content.=$this->doc->spacer(10);
                } else {
                                // If no access or if ID == zero
                        $this->content.=$this->doc->startPage($LANG->getLL('permissions'));
                        $this->content.=$this->doc->header($LANG->getLL('permissions'));
-                       $this->content.=$this->doc->spacer(5);
-                       $this->content.=$this->doc->spacer(10);
                }
 
                        // Ending page:
diff --git a/typo3/rte_cleaner.php b/typo3/rte_cleaner.php
deleted file mode 100755 (executable)
index bf0d9e2..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * EXAMPLE SCRIPT! Simply strips HTML of content from RTE
- * Belongs to the "rte" extension
- * 
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-
-$BACK_PATH="";
-require ("init.php");
-require ("template.php");
-//include("sysext/lang/locallang_rte_user.php");
-
-
-// ***************************
-// Script Classes
-// ***************************
-class SC_rte_cleaner {
-       var $content;
-       var $siteURL;
-       var $doc;       
-       
-       function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               $this->siteURL = substr(t3lib_div::getIndpEnv("TYPO3_SITE_URL"),0,-1);
-
-               $this->doc = t3lib_div::makeInstance("template");
-               $this->doc->backPath = $BACK_PATH;
-               $this->doc->form = '';
-               $this->doc->JScode='
-               <script language="javascript" type="text/javascript">
-                       var RTEobj = self.parent.parent;
-               
-                       function setSelectedTextContent(content)        {
-                               var oSel = RTEobj.GLOBAL_SEL;
-                               var sType = oSel.type;
-                               if (sType=="Text")      {
-                                       oSel.pasteHTML(content);
-                               }
-                       }
-               </script>
-               ';
-       }
-       function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               $this->content="";
-               $this->content.=$this->doc->startPage("RTE cleaner");
-
-               $this->content.='
-               <script language="javascript" type="text/javascript">
-//                     alert('.$GLOBALS['LANG']->JScharCode(t3lib_div::GPvar("processContent")).');
-                       setSelectedTextContent(unescape("'.rawurlencode(strip_tags(t3lib_div::GPvar("processContent"))).'"));
-                       RTEobj.edHidePopup();
-               </script>
-               ';
-       }
-       function printContent() {
-               global $SOBE;
-               $this->content.= $this->doc->endPage();
-               echo $this->content;
-       }
-       
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
-}
-
-// Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/rte_cleaner.php"])  {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/rte_cleaner.php"]);
-}
-
-
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance("SC_rte_cleaner");
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
-?>
\ No newline at end of file
diff --git a/typo3/rte_select_image.php b/typo3/rte_select_image.php
deleted file mode 100755 (executable)
index 76187eb..0000000
+++ /dev/null
@@ -1,590 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * Displays image selector for the RTE
- * Belongs to the "rte" extension
- * 
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-
-$BACK_PATH="";
-require ("init.php");
-require ("template.php");
-require_once (PATH_t3lib."class.t3lib_browsetree.php");
-require_once (PATH_t3lib."class.t3lib_foldertree.php");
-require_once (PATH_t3lib."class.t3lib_stdgraphic.php");
-require_once (PATH_t3lib."class.t3lib_basicfilefunc.php");
-include ("sysext/lang/locallang_rte_select_image.php");
-
-
-
-// ***************************
-// Script Classes
-// ***************************
-class localFolderTree extends t3lib_folderTree {
-       function wrapTitle($title,$v)   {
-               if ($this->ext_isLinkable($v))  {
-                       return '<a href="#" onClick="return jumpToUrl(\'?expandFolder='.rawurlencode($v["path"]).'\');">'.$title.'</a>';
-               } else {
-                       return '<font color="#666666">'.$title.'</font>';
-               }
-       }
-       function printTree($treeArr="") {
-               $titleLen=intval($GLOBALS["BE_USER"]->uc["titleLen"]);  
-               if (!is_array($treeArr))        $treeArr=$this->tree;
-               reset($treeArr);
-               $out="";
-               $c=0;
-               $xCol = t3lib_div::modifyHTMLColor($GLOBALS["SOBE"]->doc->bgColor,-10,-10,-10);
-               while(list($k,$v)=each($treeArr))       {
-                       $c++;
-                       $bgColor=' bgColor="'.(($c+1)%2 ? $GLOBALS["SOBE"]->doc->bgColor : $xCol).'"';
-                       $out.='<tr'.$bgColor.'><td nowrap>'.$v["HTML"].$this->wrapTitle(t3lib_div::fixed_lgd($v["row"]["title"],$titleLen),$v["row"]).'</td></tr>';
-               }
-               $out='<table border=0 cellpadding=0 cellspacing=0>'.$out.'</table>';
-               return $out;
-       }
-       function PM_ATagWrap($icon,$cmd,$bMark="")      {
-               if ($bMark)     {
-                       $anchor = "#".$bMark;
-                       $name=' name="'.$bMark.'"';
-               }
-               return '<a href="#"'.$name.' onClick="return jumpToUrl(\'?PM='.$cmd.'\',\''.$anchor.'\');">'.$icon.'</a>';
-       }
-       function ext_getRelFolder($path)        {
-               return substr($path,strlen(PATH_site));
-       }
-       function ext_isLinkable($v)     {
-               $webpath=t3lib_BEfunc::getPathType_web_nonweb($v["path"]);
-               if ($GLOBALS["SOBE"]->act=="magic") return 1;//$webpath="web";  // The web/non-web path does not matter if the mode is "magic"
-
-               if (strstr($v["path"],"_recycler_") || strstr($v["path"],"_temp_") || $webpath!="web")  {
-                       return 0;
-               } 
-               return 1;
-       }
-}
-class SC_rte_select_image {
-       var $content;
-       var $siteUrl;
-       
-       var $act;
-       var $modData;
-       var $thisConfig;
-       var $allowedItems;
-       var $doc;       
-       var $imgPath;
-
-       function preinit()      {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               // Current site url:
-               $this->siteUrl = t3lib_div::getIndpEnv("TYPO3_SITE_URL");
-               
-               // Determine nature of current url:
-               $this->act=t3lib_div::GPvar("act");
-               
-               $this->modData = $BE_USER->getModuleData("rte_select_image.php","ses");
-               if ($this->act!="image")        {
-                       if (isset($this->act))  {
-                               $this->modData["act"]=$this->act;
-                               $BE_USER->pushModuleData("rte_select_image.php",$this->modData);
-                       } else {
-                               $this->act=$this->modData["act"];
-                       }
-               }
-               $expandPage = t3lib_div::GPvar("expandFolder");
-               if (isset($expandPage)) {
-                       $this->modData["expandFolder"]=$expandPage;
-                       $BE_USER->pushModuleData("rte_select_image.php",$this->modData);
-               } else {
-                       $HTTP_GET_VARS["expandFolder"]=$this->modData["expandFolder"];
-               }
-               
-               if (!$this->act)        {
-                       $this->act="magic";
-               }
-               
-               
-               
-               $RTEtsConfigParts = explode(":",t3lib_div::GPvar("RTEtsConfigParams"));
-               if (count($RTEtsConfigParts)<2) die("Error: The GET parameter 'RTEtsConfigParams' was missing. Close the window.");
-               $RTEsetup = $GLOBALS["BE_USER"]->getTSConfig("RTE",t3lib_BEfunc::getPagesTSconfig($RTEtsConfigParts[5])); 
-               $this->thisConfig = t3lib_BEfunc::RTEsetup($RTEsetup["properties"],$RTEtsConfigParts[0],$RTEtsConfigParts[2],$RTEtsConfigParts[4]);
-               $this->imgPath = $RTEtsConfigParts[6];
-
-               $this->allowedItems = array_diff(explode(",","magic,plain,dragdrop,image"),t3lib_div::trimExplode(",",$this->thisConfig["blindImageOptions"],1));
-               reset($this->allowedItems);
-               if (!in_array($this->act,$this->allowedItems))  $this->act = current($this->allowedItems);
-       }
-       function rteImageStorageDir()   {
-#              debug($this->thisConfig);
-#              exit;
-               $dir = $this->imgPath ? $this->imgPath : $GLOBALS["TYPO3_CONF_VARS"]["BE"]["RTE_imageStorageDir"];;
-#debug($dir);
-               return $dir;
-#              return $this->thisConfig["proc."]["RTE_imageStorageDir"]?$this->thisConfig["proc."]["RTE_imageStorageDir"]:$GLOBALS["TYPO3_CONF_VARS"]["BE"]["RTE_imageStorageDir"];
-       }
-       function magicProcess() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               if ($this->act=="magic" && t3lib_div::GPvar("insertMagicImage"))        {
-                       $filepath = t3lib_div::GPvar("insertMagicImage");
-                       
-                       $imgObj = t3lib_div::makeInstance("t3lib_stdGraphic");
-                       $imgObj->init();
-                       $imgObj->mayScaleUp=0;
-                       $imgObj->tempPath=PATH_site.$imgObj->tempPath;
-               
-                       $imgInfo = $imgObj->getImageDimensions($filepath);
-                       
-                       if (is_array($imgInfo) && count($imgInfo)==4 && $this->rteImageStorageDir())    {
-                               $fI=pathinfo($imgInfo[3]);
-                               $fileFunc = t3lib_div::makeInstance("t3lib_basicFileFunctions");
-                               $basename = $fileFunc->cleanFileName("RTEmagicP_".$fI["basename"]);
-                               $destPath =PATH_site.$this->rteImageStorageDir();
-                               if (@is_dir($destPath)) {
-                                       $destName = $fileFunc->getUniqueName($basename,$destPath);
-                                       @copy($imgInfo[3],$destName);
-               
-                                       $cHeight=t3lib_div::intInRange(t3lib_div::GPvar("cHeight"),0,500);
-                                       $cWidth=t3lib_div::intInRange(t3lib_div::GPvar("cWidth"),0,500);
-                                       if (!$cHeight)  $cHeight=200;
-                                       if (!$cWidth)   $cWidth=300;
-                                               // This thing allows images to be based on their width - to a certain degree - by setting a high height. Then we're almost certain the image will be based on the width 
-                                                       $cHeight=1000;
-               //                      debug(array($cHeight,$cWidth));
-               //exit;                 
-                                       $imgI = $imgObj->imageMagickConvert($filepath,"WEB",$cWidth."m",$cHeight."m");  // ($imagefile,$newExt,$w,$h,$params,$frame,$options,$mustCreate=0)
-                       //              debug($imgI);
-                                       if ($imgI[3])   {
-                                               $fI=pathinfo($imgI[3]);
-                                               $mainBase="RTEmagicC_".substr(basename($destName),10).".".$fI["extension"];
-                                               $destName = $fileFunc->getUniqueName($mainBase,$destPath);
-                                               @copy($imgI[3],$destName);
-               
-                                               $iurl = $this->siteUrl.substr($destName,strlen(PATH_site));
-                                               echo'
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-       <title>Untitled</title>
-</head>
-<script language="javascript" type="text/javascript">
-       function insertImage(file,width,height) {
-               self.parent.parent.renderPopup_insertImage(\'<img src="\'+file+\'" width="\'+width+\'" height="\'+height+\'" border=0>\');
-       }
-</script>
-<body>
-<script language="javascript" type="text/javascript">
-       insertImage(\''.$iurl.'\','.$imgI[0].','.$imgI[1].');
-</script>
-</body>
-</html>';
-                                       }
-                                       
-                               }
-                       }
-                       exit;
-               }
-       }
-       function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               $this->doc = t3lib_div::makeInstance("template");
-               $this->doc->backPath = $BACK_PATH;
-               $this->doc->JScode='
-               <script language="javascript" type="text/javascript">
-                       function jumpToUrl(URL,anchor)  {
-                               var add_act = URL.indexOf("act=")==-1 ? "&act='.$this->act.'" : "";
-                               var RTEtsConfigParams = "&RTEtsConfigParams='.rawurlencode(t3lib_div::GPvar("RTEtsConfigParams")).'";
-               
-                               var cur_width = selectedImageRef ? "&cWidth="+selectedImageRef.width : "";
-                               var cur_height = selectedImageRef ? "&cHeight="+selectedImageRef.height : "";
-               
-                               var theLocation = URL+add_act+RTEtsConfigParams+cur_width+cur_height+(anchor?anchor:"");
-                               document.location = theLocation;
-                               return false;
-                       }
-                       function insertImage(file,width,height) {
-                               self.parent.parent.renderPopup_insertImage(\'<img src="\'+file+\'" width="\'+width+\'" height="\'+height+\'" border=0>\');
-                       }
-                       function launchView(url)        {
-                               var thePreviewWindow="";
-                               thePreviewWindow = window.open("'.$this->siteUrl.TYPO3_mainDir.'show_item.php?table="+url,"ShowItem","height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");    
-                               if (thePreviewWindow && thePreviewWindow.focus) {
-                                       thePreviewWindow.focus();
-                               }
-                       }
-                       function getCurrentImageRef()   {
-                               if (self.parent.parent 
-                               && self.parent.parent.document.idPopup 
-                               && self.parent.parent.document.idPopup.document 
-                               && self.parent.parent.document.idPopup.document._selectedImage) {
-               //                      self.parent.parent.debugObj(self.parent.parent.document.idPopup.document._selectedImage);
-                                       return self.parent.parent.document.idPopup.document._selectedImage;
-                               }
-                               return "";
-                       }
-                       function printCurrentImageOptions()     {
-               //              alert(selectedImageRef.href);
-                               var styleSelector=\'<select name="iClass" style="width:140px;"><option value=""></option><option value="TestClass">TestClass</option></select>\';
-                               var alignSelector=\'<select name="iAlign" style="width:60px;"><option value=""></option><option value="left">Left</option><option value="right">Right</option></select>\';
-                               var bgColor=\' bgColor="'.$this->doc->bgColor4.'"\';
-                               var sz="";
-                               sz+=\'<table border=0 cellpadding=1 cellspacing=1><form action="" name="imageData">\';
-                               sz+=\'<tr><td\'+bgColor+\'>'.$LANG->getLL("width").': <input type="text" name="iWidth" value=""'.$GLOBALS["TBE_TEMPLATE"]->formWidth(4).'>&nbsp;&nbsp;'.$LANG->getLL("height").': <input type="text" name="iHeight" value=""'.$GLOBALS["TBE_TEMPLATE"]->formWidth(4).'>&nbsp;&nbsp;'.$LANG->getLL("border").': <input type="checkbox" name="iBorder" value="1"></td></tr>\';
-                               sz+=\'<tr><td\'+bgColor+\'>'.$LANG->getLL("margin_lr").': <input type="text" name="iHspace" value=""'.$GLOBALS["TBE_TEMPLATE"]->formWidth(4).'>&nbsp;&nbsp;'.$LANG->getLL("margin_tb").': <input type="text" name="iVspace" value=""'.$GLOBALS["TBE_TEMPLATE"]->formWidth(4).'></td></tr>\';
-               //              sz+=\'<tr><td\'+bgColor+\'>Textwrapping: \'+alignSelector+\'&nbsp;&nbsp;Style: \'+styleSelector+\'</td></tr>\';
-                               sz+=\'<tr><td\'+bgColor+\'>'.$LANG->getLL("title").': <input type="text" name="iTitle"'.$GLOBALS["TBE_TEMPLATE"]->formWidth(20).'></td></tr>\';
-                               sz+=\'<tr><td><input type="submit" value="'.$LANG->getLL("update").'" onClick="return setImageProperties();"></td></tr>\';
-                               sz+=\'</form></table>\';
-                               return sz;
-                       }
-                       function setImageProperties()   {
-                               if (selectedImageRef)   {
-                                       selectedImageRef.width=document.imageData.iWidth.value;
-                                       selectedImageRef.height=document.imageData.iHeight.value;
-                                       selectedImageRef.vspace=document.imageData.iVspace.value;
-                                       selectedImageRef.hspace=document.imageData.iHspace.value;
-                                       selectedImageRef.title=document.imageData.iTitle.value;
-                                       selectedImageRef.alt=document.imageData.iTitle.value;
-               
-                                       selectedImageRef.border= (document.imageData.iBorder.checked ? 1 : 0);
-               
-               /*                      
-                                       var iAlign = document.imageData.iAlign.options[document.imageData.iAlign.selectedIndex].value;
-                                       if (iAlign || selectedImageRef.align)   {
-                                               selectedImageRef.align=iAlign;
-                                       }
-               
-                                       selectedImageRef.style.cssText="";
-               
-                                       var iClass = document.imageData.iClass.options[document.imageData.iClass.selectedIndex].value;
-                                       if (iClass || (selectedImageRef.attributes["class"] && selectedImageRef.attributes["class"].value))     {
-                                               selectedImageRef["class"]=iClass;
-                                               selectedImageRef.attributes["class"].value=iClass;
-                                       }
-               */
-               //                      selectedImageRef.style="";
-                                       self.parent.parent.edHidePopup();
-                               }
-                               return false;
-                       }
-                       function insertImagePropertiesInForm()  {
-                               if (selectedImageRef)   {
-                                       document.imageData.iWidth.value = selectedImageRef.width;
-                                       document.imageData.iHeight.value = selectedImageRef.height;
-                                       document.imageData.iVspace.value = selectedImageRef.vspace;
-                                       document.imageData.iHspace.value = selectedImageRef.hspace;
-                                       document.imageData.iTitle.value = selectedImageRef.title;
-                                       if (parseInt(selectedImageRef.border))  {
-                                               document.imageData.iBorder.checked = 1;
-                                       }
-               /*
-                                               // Update align
-                                       var fObj=document.imageData.iAlign;
-                                       var value=selectedImageRef.align;
-                                       var l=fObj.length;
-                                       for (a=0;a<l;a++)       {
-                                               if (fObj.options[a].value == value)     {
-                                                       fObj.selectedIndex = a;
-                                               }
-                                       }
-                                               // Update class
-                                                       // selectedImageRef.className ??
-                                       var fObj=document.imageData.iClass;
-                                       var value=selectedImageRef.attributes["class"].value;
-                                       var l=fObj.length;
-                                       for (a=0;a<l;a++)       {
-                                               if (fObj.options[a].value == value)     {
-                                                       fObj.selectedIndex = a;
-                                               }
-                                       }
-                                       */
-                                       
-                               }
-                       //      alert(document.imageData);
-                               return false;
-                       }
-                       
-                       function openDragDrop() {
-                               var url = "browse_links.php?mode=filedrag&bparams=|||"+escape("gif,jpg,jpeg,png");
-                               browserWin = window.open(url,"Typo3WinBrowser","height=350,width=600,status=0,menubar=0,resizable=1,scrollbars=1");
-                               browserWin.focus();
-                               self.parent.parent.edHidePopup(1);
-                       }
-               
-                       var selectedImageRef = getCurrentImageRef();    // Setting this to a reference to the image object.
-               
-                       '.($this->act=="dragdrop"?"openDragDrop();":"").'
-                       
-               //      alert(selectedImageRef.href);
-               </script>
-               ';
-               
-                       // Starting content:
-               $this->content="";
-               $this->content.=$this->doc->startPage("RTE image insert");
-       
-       }
-       function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-               global $FILEMOUNTS;
-               
-               $menu='<table border=0 cellpadding=2 cellspacing=1><tr>';
-               $bgcolor=' bgcolor="'.$this->doc->bgColor4.'"';
-               $bgcolorA=' bgcolor="'.$this->doc->bgColor5.'"';
-               if ($this->act=="image" || t3lib_div::GPvar("cWidth"))  {       // If $this->act is specifically set to "image" or if cWidth is passed around...
-                       $menu.='<td align=center nowrap width="25%"'.($this->act=="image"?$bgcolorA:$bgcolor).'><a href="#" onClick="jumpToUrl(\'?act=image\');return false;"><strong>'.$LANG->getLL("currentImage").'</strong></a></td>';
-               }
-                       if (in_array("magic",$this->allowedItems))      $menu.='<td align=center nowrap width="25%"'.($this->act=="magic"?$bgcolorA:$bgcolor).'><a href="#" onClick="jumpToUrl(\'?act=magic\');return false;"><strong>'.$LANG->getLL("magicImage").'</strong></a></td>';
-                       if (in_array("plain",$this->allowedItems))      $menu.='<td align=center nowrap width="25%"'.($this->act=="plain"?$bgcolorA:$bgcolor).'><a href="#" onClick="jumpToUrl(\'?act=plain\');return false;"><strong>'.$LANG->getLL("plainImage").'</strong></a></td>';
-                       if (in_array("dragdrop",$this->allowedItems))   $menu.='<td align=center nowrap width="25%"'.$bgcolor.'><a href="#" onClick="openDragDrop();return false;"><strong>'.$LANG->getLL("dragDropImage").'</strong></a></td>';
-               $menu.='</tr></table>';
-               
-               $this->content.='<img src=clear.gif width=1 height=2>';
-               $this->content.=$menu;
-               $this->content.='<img src=clear.gif width=1 height=10>';
-               
-               if ($this->act!="image")        {
-                               // File-folders:        
-                       $foldertree = t3lib_div::makeInstance("localFolderTree");
-                       $tree=$foldertree->getBrowsableTree();
-                       list(,,$specUid) = explode("_",t3lib_div::GPvar("PM"));
-                       $files = $this->expandFolder($foldertree->specUIDmap[$specUid],$this->act=="plain");
-                       
-                       $this->content.= '<table border=0 cellpadding=0 cellspacing=0>
-                       <tr>
-                               <td valign=top><font face=verdana size=1 color=black>'.$this->barheader($LANG->getLL("folderTree").':').$tree.'</font></td>
-                               <td>&nbsp;</td>
-                               <td valign=top><font face=verdana size=1 color=black>'.$files.'</font></td>
-                       </tr>
-                       </table>
-                       <BR>';
-                       
-                       /*
-                               // Target:
-                       if ($this->act!="mail") {
-                               $ltarget='<table border=0 cellpadding=2 cellspacing=1><form name="ltargetform" id="ltargetform"><tr>';
-                               $ltarget.='<td width=90>Target:</td>';
-                               $ltarget.='<td><input type="text" name="ltarget" onChange="setTarget(this.value);" value="'.htmlspecialchars($curUrlArray["target"]).'"></td>';
-                               $ltarget.='<td><select name="ltarget_type" onChange="setTarget(this.options[this.selectedIndex].value);document.ltargetform.ltarget.value=this.options[this.selectedIndex].value;this.selectedIndex=0;">
-                               <option></option>
-                               <option value="_top">Top</option>
-                               <option value="_blank">New window</option>
-                               </select></td>';
-                               if (($curUrlInfo["act"]=="page" || $curUrlInfo["act"]=="file") && $curUrlArray["href"]) {
-                                       $ltarget.='<td><input type="submit" value="Update" onClick="return link_current();"></td>';
-                               }
-                               $ltarget.='</tr></form></table>';
-                               
-                               $this->content.=$ltarget;
-                       }
-                       */
-                       
-                       
-                       
-                       
-                       // ***************************
-                       // Upload
-                       // ***************************
-                       $fileProcessor = t3lib_div::makeInstance("t3lib_basicFileFunctions");
-                       $fileProcessor->init($FILEMOUNTS, $TYPO3_CONF_VARS["BE"]["fileExtensions"]);
-                       $path=t3lib_div::GPvar("expandFolder");
-                       if (!$path || $path=="/" || !@is_dir($path))    {
-                               $path = $fileProcessor->findTempFolder();       // The closest TEMP-path is found
-                               if ($path)      $path.="/";
-                       }
-                       if ($path && @is_dir($path))    {
-                               $this->content.=$this->uploadForm($path)."<BR>";
-                       }
-               
-                       // ***************************
-                       // Help
-                       // ***************************
-                       
-                       if ($this->act=="magic")        {
-                               $this->content.='<img src="gfx/icon_note.gif" width="18" height="16" align=top>'.$LANG->getLL("magicImage_msg").'<BR>';
-                       }
-                       if ($this->act=="plain")        {
-                               $this->content.='<img src="gfx/icon_note.gif" width="18" height="16" align=top>'.$LANG->getLL("plainImage_msg").'<BR>';
-                       }
-               } else {
-                       $this->content.='
-                       <script language="javascript" type="text/javascript">
-               document.write(printCurrentImageOptions());
-               insertImagePropertiesInForm();
-                       </script>
-                       ';
-               }
-
-       }
-       function printContent() {
-               global $SOBE;
-
-               $this->content.= $this->doc->endPage();
-               echo $this->content;
-       }
-       
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
-
-       function expandFolder($expandFolder=0,$plainFlag=0)     {
-               global $LANG;
-
-               $expandFolder = $expandFolder ? $expandFolder :t3lib_div::GPvar("expandFolder");
-               $out="";
-               
-               $resolutionLimit_x=640;
-               $resolutionLimit_y=680;
-               
-               if ($expandFolder)      {
-                       $files = t3lib_div::getFilesInDir($expandFolder,($plainFlag?"jpg,jpeg,gif,png":$GLOBALS["TYPO3_CONF_VARS"]["GFX"]["imagefile_ext"]),1,1);       // $extensionList="",$prependPath=0,$order="")
-                       if (is_array($files))   {
-                               reset($files);
-               
-                               $out.=$this->barheader(sprintf($LANG->getLL("images").' (%s):',count($files)));
-                       
-                               $titleLen=intval($GLOBALS["BE_USER"]->uc["titleLen"]);  
-                               $picon='<img src="gfx/i/_icon_webfolders.gif" width="18" height="16" align=top>';
-                               $picon.=htmlspecialchars(t3lib_div::fixed_lgd(basename($expandFolder),$titleLen));
-                               $out.='<nobr>'.$picon.'</nobr><BR>';
-                               
-                               $imgObj = t3lib_div::makeInstance("t3lib_stdGraphic");
-                               $imgObj->init();
-                               $imgObj->mayScaleUp=0;
-                               $imgObj->tempPath=PATH_site.$imgObj->tempPath;
-
-                               $noThumbs = $GLOBALS["BE_USER"]->getTSConfigVal("options.noThumbsInRTEimageSelect");
-               
-                               $lines=array();
-                               while(list(,$filepath)=each($files))    {
-                                       $fI=pathinfo($filepath);
-                                       
-                                       $iurl = $this->siteUrl.substr($filepath,strlen(PATH_site));
-//debug($iurl);
-                                       $imgInfo = $imgObj->getImageDimensions($filepath);
-                                       
-                                       
-               //                      debug($imgInfo);
-                                       
-               //                      debug($fI);
-                                       $icon = t3lib_BEfunc::getFileIcon(strtolower($fI["extension"]));
-                                       $pDim = $imgInfo[0]."x".$imgInfo[1]." pixels";
-                                       $size=" (".t3lib_div::formatSize(filesize($filepath))."bytes, ".$pDim.")";
-                                       $icon = '<img src="gfx/fileicons/'.$icon.'" width=18 height=16 border=0 title="'.$fI["basename"].$size.'" align=absmiddle>';
-                                       if (!$plainFlag)        {
-                                               $ATag = '<a href="#" onClick="return jumpToUrl(\'?insertMagicImage='.rawurlencode($filepath).'\');">';
-                                       } else {
-                                               $ATag = '<a href="#" onClick="return insertImage(\''.$iurl.'\','.$imgInfo[0].','.$imgInfo[1].');">';
-                                       }
-                                       $ATag_e="</a>";
-                                       if ($plainFlag && ($imgInfo[0]>$resolutionLimit_x || $imgInfo[1]>$resolutionLimit_y))   {
-                                               $ATag="";
-                                               $ATag_e="";
-                                               $ATag2="";
-                                               $ATag2_e="";
-                                       } else {
-                                               $ATag2='<a href="#" onClick="launchView(\''.rawurlencode($filepath).'\'); return false;">';
-                                               $ATag2_e="</a>";
-                                       }
-                                       
-                                       $filenameAndIcon=$ATag.$icon.htmlspecialchars(t3lib_div::fixed_lgd(basename($filepath),$titleLen)).$ATag_e;
-                                       
-                                       $lines[]='<tr bgcolor="'.$this->doc->bgColor4.'"><td nowrap>'.$filenameAndIcon.'&nbsp;</td><td nowrap>'.$pDim.'&nbsp;</td></tr>';
-                                       $lines[]='<tr><td colspan=2>'.(
-                                               $noThumbs ? 
-                                               "" :
-                                               $ATag2.t3lib_BEfunc::getThumbNail("thumbs.php",$filepath,"hspace=5 vspace=5 border=1").$ATag2_e).
-                                               '</td></tr>';
-                                       $lines[]='<tr><td colspan=2><img src=clear.gif width=1 height=3></td></tr>';
-                               }
-                               $out.='<table border=0 cellpadding=0 cellspacing=1>'.implode("",$lines).'</table>';
-                       }
-               }
-               return $out;
-       }
-       function uploadForm($path)      {
-               global $LANG,$SOBE;
-
-       //      debug($path);
-               $count=1;
-               $header = t3lib_div::isFirstPartOfStr($path,PATH_site)?substr($path,strlen(PATH_site)):$path;
-               $code=$this->barheader($LANG->getLL("uploadImage").":");
-               $code.='<table border=0 cellpadding=0 cellspacing=3><FORM action="tce_file.php" method="POST" name="editform" enctype="'.$GLOBALS["TYPO3_CONF_VARS"]["SYS"]["form_enctype"].'"><tr><td>';
-               $code.="<strong>".$LANG->getLL("path").":</strong> ".$header."</td></tr><tr><td>";
-               for ($a=1;$a<=$count;$a++)      {
-                       $code.='<input type="File" name="upload_'.$a.'"'.$this->doc->formWidth(30).'>
-                               <input type="Hidden" name="file[upload]['.$a.'][target]" value="'.$path.'">
-                               <input type="Hidden" name="file[upload]['.$a.'][data]" value="'.$a.'"><BR>';
-               }
-               $code.='<input type="Hidden" name="redirect" value="rte_select_image.php?act='.$this->act.'&expandFolder='.rawurlencode($path).'&RTEtsConfigParams='.rawurlencode(t3lib_div::GPvar("RTEtsConfigParams")).'"><input type="Submit" name="submit" value="'.$LANG->sL("LLL:EXT:lang/locallang_core.php:file_upload.php.submit").'"></td></tr></FORM></table>';
-               return $code;
-       }
-       function barheader($str)        {
-               global $LANG,$SOBE;
-
-               return '<table border=0 cellpadding=2 cellspacing=0 width=100% bgcolor="'.$this->doc->bgColor5.'"><tr><td><strong>'.$str.'</strong></td></tr></table>';
-       }
-       function printCurrentUrl($str)  {
-               global $LANG,$SOBE;
-
-               return '<table border=0 cellpadding=0 cellspacing=0 width=100% bgcolor="'.$this->doc->bgColor5.'"><tr><td><strong>Current Link:</strong> '.$str.'</td></tr></table>';
-       }
-}
-
-// Include extension?
-if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/rte_select_image.php"])     {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["typo3/rte_select_image.php"]);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-// Make instance:
-$SOBE = t3lib_div::makeInstance("SC_rte_select_image");
-$SOBE->preinit();
-$SOBE->magicProcess();
-$SOBE->init();
-$SOBE->main();
-$SOBE->printContent();
-?>
\ No newline at end of file
diff --git a/typo3/rte_user.php b/typo3/rte_user.php
deleted file mode 100755 (executable)
index 03d9ea8..0000000
+++ /dev/null
@@ -1,322 +0,0 @@
-<?php
-/***************************************************************
-*  Copyright notice
-*  
-*  (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
-*  All rights reserved
-*
-*  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
-*  (at your option) any later version.
-* 
-*  The GNU General Public License can be found at
-*  http://www.gnu.org/copyleft/gpl.html.
-*  A copy is found in the textfile GPL.txt and important notices to the license 
-*  from the author is found in LICENSE.txt distributed with these scripts.
-*
-* 
-*  This script is distributed in the hope that it will be useful,
-*  but WITHOUT ANY WARRANTY; without even the implied warranty of
-*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-*  GNU General Public License for more details.
-*
-*  This copyright notice MUST APPEAR in all copies of the script!
-***************************************************************/
-/** 
- * User defined content for the RTE
- *
- * Belongs to the "rte" extension
- *
- * @author     Kasper Skårhøj <kasper@typo3.com>
- * @package TYPO3
- * @subpackage core
- *
- */
-
-
-$BACK_PATH="";
-require ("init.php");
-require ("template.php");
-include ("sysext/lang/locallang_rte_user.php");
-
-
-// ***************************
-// Script Classes
-// ***************************
-class SC_rte_user {
-       var $content;
-       var $modData;
-       var $siteUrl;
-       var $doc;       
-       
-       function init() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-/*             $PRE_CODED["clear_gifs"] = Array (
-                       "100" => "Clear-gif, 100x20",
-                       "100." => Array (
-                               "content" => '<img src=clear.gif width=100 height=20><BR>'
-                       ),
-                       "110" => "Clear-gif, 200x50",
-                       "110." => Array (
-                               "content" => '<img src=clear.gif width=200 height=50><BR>'
-                       )
-               );
-       */      
-               
-               
-               // Current site url:
-               $this->siteUrl = t3lib_div::getIndpEnv("TYPO3_SITE_URL");
-               
-               $this->doc = t3lib_div::makeInstance("template");
-               $this->doc->backPath = $BACK_PATH;
-               $this->doc->form = '<form action="" name="process" method="POST">
-               <input type="hidden" name="processContent" value="">
-               <input type="hidden" name="returnUrl" value="'.htmlspecialchars(t3lib_div::getIndpEnv("REQUEST_URI")).'">
-               ';
-               $this->doc->JScode='
-               <script language="javascript" type="text/javascript">
-                       var RTEobj = self.parent.parent;
-               
-                       function getSelectedTextContent()       {
-                               var oSel = RTEobj.GLOBAL_SEL;
-                               var sType = oSel.type;
-               //              alert(sType);
-               //              RTEobj.debugObj(oSel);
-                               if (sType=="Text")      {
-                                       return oSel.htmlText;
-                               }
-                               return "";
-                       }
-                       function insertHTML(content,noHide)     {
-               //              alert(content);
-                               RTEobj.insertHTML(content);
-                               if (!noHide)    RTEobj.edHidePopup();
-                       }
-                       function wrapHTML(wrap1,wrap2,noHide)   {
-                               var contentToWrap = getSelectedTextContent();
-                               if (contentToWrap)      {
-                                       contentToWrap = ""+wrap1+contentToWrap+wrap2;
-                                       setSelectedTextContent(contentToWrap);
-                               } else {
-                                       alert('.$GLOBALS['LANG']->JScharCode($LANG->getLL("noTextSelection")).');
-                               }
-                               if (!noHide)    RTEobj.edHidePopup();
-                       }
-                       function processSelection(script)       {
-                               document.process.action = script;
-                               document.process.processContent.value = getSelectedTextContent();
-                               document.process.submit();
-                       }
-                       function setSelectedTextContent(content)        {
-                               var oSel = RTEobj.GLOBAL_SEL;
-                               var sType = oSel.type;
-                               if (sType=="Text")      {
-                                       oSel.pasteHTML(content);
-                               }
-                       }
-               //      alert(RTEobj.getHTML());
-               //      RTEobj.setHTML("Hej <b>Kasper</b>-dreng!",1);
-               </script>
-               ';
-               
-               
-               $this->modData = $BE_USER->getModuleData("rte_user.php","ses");
-               if (t3lib_div::GPvar("OC_key")) {
-                       $parts = explode("|",t3lib_div::GPvar("OC_key"));
-                       $this->modData["openKeys"][$parts[1]] = $parts[0]=="O" ? 1 : 0;
-                       $BE_USER->pushModuleData("rte_user.php",$this->modData);
-               }
-       }
-       function main() {
-               global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$HTTP_GET_VARS,$HTTP_POST_VARS,$CLIENT,$TYPO3_CONF_VARS;
-
-               $this->content="";
-               $this->content.=$this->main_user($this->modData["openKeys"]);
-       }
-       function printContent() {
-               echo $this->content;
-       }
-       
-       // ***************************
-       // OTHER FUNCTIONS:     
-       // ***************************
-       function calcWH($imgInfo,$maxW=380,$maxH=500)   {
-               $IW = $imgInfo[0];
-               $IH = $imgInfo[1];
-               if ($IW>$maxW)  {
-                       $IH=ceil($IH/$IW*$maxW);
-                       $IW=$maxW;
-               }
-               if ($IH>$maxH)  {
-                       $IW=ceil($IW/$IH*$maxH);
-                       $IH=$maxH;
-               }
-               
-               $imgInfo[3]='width="'.$IW.'" height="'.$IH.'"';
-               return $imgInfo;
-       }
-       
-       // ******************************************************************
-       // Rich Text Editor (RTE) link selector (MAIN function)
-       // ******************************************************************
-       function main_user($openKeys)   {
-               global $SOBE,$LANG;
-                       // Starting content:
-               $content.=$this->doc->startPage("RTE user");
-               
-               $RTEtsConfigParts = explode(":",t3lib_div::GPvar("RTEtsConfigParams"));
-               $RTEsetup = $GLOBALS["BE_USER"]->getTSConfig("RTE",t3lib_BEfunc::getPagesTSconfig($RTEtsConfigParts[5])); 
-               $thisConfig = t3lib_BEfunc::RTEsetup($RTEsetup["properties"],$RTEtsConfigParts[0],$RTEtsConfigParts[2],$RTEtsConfigParts[4]);
-               
-       //debug($RTEtsConfigParts);
-       //debug($thisConfig);
-               if (is_array($thisConfig["userElements."]))     {
-       
-                       $categories=array();
-                       reset($thisConfig["userElements."]);
-                       while(list($k)=each($thisConfig["userElements."]))      {
-                               $ki=intval($k);
-                               $v = $thisConfig["userElements."][$ki."."];
-                               if (substr($k,-1)=="." && is_array($v)) {
-                                       $subcats=array();
-                                       $openK = $ki;
-                                       if ($openKeys[$openK])  {
-                                               
-                                               $mArray = "";
-                                               switch ((string)$v["load"])     {
-                                                       case "images_from_folder":
-                                                               $mArray=array();
-                                                               if ($v["path"] && @is_dir(PATH_site.$v["path"]))        {
-                                                                       $files = t3lib_div::getFilesInDir(PATH_site.$v["path"],"gif,jpg,jpeg,png",0,"");
-                                                                       if (is_array($files))   {
-                                                                               reset($files);
-                                                                               $c=0;
-                                                                               while(list(,$filename)=each($files))    {
-                                                                                       $iInfo = @getimagesize(PATH_site.$v["path"].$filename);
-                                                                                       $iInfo = $this->calcWH($iInfo,50,100);
-                                                                               
-                                                                                       $ks=(string)(100+$c);
-                                                                                       $mArray[$ks]=$filename;
-                                                                                       $mArray[$ks."."]=array(
-                                                                                               "content" => '<img src="'.$this->siteUrl.$v["path"].$filename.'">',
-                                                                                               "_icon" => '<img src="'.$this->siteUrl.$v["path"].$filename.'" '.$iInfo[3].' border=0>',
-                                                                                               "description" => $LANG->getLL("filesize").': '.str_replace("&nbsp;"," ",t3lib_div::formatSize(@filesize(PATH_site.$v["path"].$filename))).', '.$LANG->getLL("pixels").': '.$iInfo[0].'x'.$iInfo[1]
-                                                                                       );
-                                                                                       $c++;
-                                                                               }
-                                                                       }                                               
-                                                               }
-                                                       break;
-               /*                                      case "clear_gifs":
-                                                               $mArray=$GLOBALS["PRE_CODED"]["clear_gifs"];
-                                                       break;*/
-                                               }
-                                               if (is_array($mArray))  {
-                                                       if ($v["merge"])        {
-                                                               $v=t3lib_div::array_merge_recursive_overrule($mArray,$v);
-                                                       } else {
-                                                               $v=$mArray;
-                                                       }
-                                               }
-               
-               //                              debug($v);
-                                               reset($v);
-                                               while(list($k2)=each($v))       {
-                                                       $k2i = intval($k2);
-                                                       if (substr($k2,-1)=="." && is_array($v[$k2i."."]))      {
-                                                               $title = trim($v[$k2i]);
-                                                               if (!$title)    {
-                                                                       $title="[".$LANG->getLL("noTitle")."]";
-                                                               } else {
-                                                                       $title=$LANG->sL($title,1);
-                                                               }
-                                                               $description=$LANG->sL($v[$k2i."."]["description"],1)."<BR>";
-                                                               if (!$v[$k2i."."]["dontInsertSiteUrl"]) $v[$k2i."."]["content"] = str_replace("###_URL###",$this->siteUrl,$v[$k2i."."]["content"]);
-               
-                                                               $logo = $v[$k2i."."]["_icon"] ? $v[$k2i."."]["_icon"] : '';
-                                                               
-                                                               $onClickEvent='';
-                                                               switch((string)$v[$k2i."."]["mode"])    {
-                                                                       case "wrap":
-                                                                               $wrap = explode("|",$v[$k2i."."]["content"]);
-                                                                               $onClickEvent="wrapHTML(unescape('".str_replace("%20"," ",rawurlencode($wrap[0]))."'),unescape('".str_replace("%20"," ",rawurlencode($wrap[1]))."'));";
-                                                                       break;
-                                                                       case "processor":
-                                                                               $script = trim($v[$k2i."."]["submitToScript"]);
-                                                                               if (substr($script,0,4)!="http")                $script = $this->siteUrl.$script;
-                                                       //debug($script);
-     &