* Modified typo3/sysext/cms/tslib/class.tslib_content.php:
[Packages/TYPO3.CMS.git] / typo3 / tce_db.php
index 81297b3..696bdda 100644 (file)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *  
-*  (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
+*  (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is 
@@ -41,9 +41,9 @@
  *
  *   80: class SC_tce_db 
  *  107:     function init()   
- *  160:     function initClipboard()  
- *  180:     function main()   
- *  216:     function finish() 
+ *  161:     function initClipboard()  
+ *  181:     function main()   
+ *  217:     function finish() 
  *
  * TOTAL FUNCTIONS: 4
  * (This index is automatically created/updated by the extension "extdeveval")
@@ -72,7 +72,7 @@ require_once (PATH_t3lib.'class.t3lib_tcemain.php');
  * Used by many smaller forms/links in TYPO3, including the QuickEdit module.
  * Is not used by alt_doc.php though (main form rendering script) - that uses the same class (TCEmain) but makes its own initialization (to save the redirect request).
  * For all other cases than alt_doc.php it is recommended to use this script for submitting your editing forms - but the best solution in any case would probably be to link your application to alt_doc.php, that will give you easy form-rendering as well.
- * 
+ *
  * @author     Kasper Skaarhoj <kasper@typo3.com>
  * @package TYPO3
  * @subpackage core
@@ -101,27 +101,28 @@ class SC_tce_db {
 
        /**
         * Initialization of the class
-        * 
-        * @return      void            
+        *
+        * @return      void
         */
        function init() {
                global $BE_USER;
 
                        // GPvars:
-               $this->flags = t3lib_div::GPvar('flags');
-               $this->data = t3lib_div::GPvar('data');
-               $this->cmd = t3lib_div::GPvar('cmd');
-               $this->mirror = t3lib_div::GPvar('mirror');
-               $this->cacheCmd = t3lib_div::GPvar('cacheCmd');
-               $this->redirect = t3lib_div::GPvar('redirect');
-               $this->prErr = t3lib_div::GPvar('prErr');
-               $this->_disableRTE = t3lib_div::GPvar('_disableRTE');
-               $this->CB = t3lib_div::GPvar('CB');
-               $this->vC = t3lib_div::GPvar('vC');
-               $this->uPT = t3lib_div::GPvar('uPT');
-               
+               $this->flags = t3lib_div::_GP('flags');
+               $this->data = t3lib_div::_GP('data');
+               $this->cmd = t3lib_div::_GP('cmd');
+               $this->mirror = t3lib_div::_GP('mirror');
+               $this->cacheCmd = t3lib_div::_GP('cacheCmd');
+               $this->redirect = t3lib_div::_GP('redirect');
+               $this->prErr = t3lib_div::_GP('prErr');
+               $this->_disableRTE = t3lib_div::_GP('_disableRTE');
+               $this->CB = t3lib_div::_GP('CB');
+               $this->vC = t3lib_div::_GP('vC');
+               $this->uPT = t3lib_div::_GP('uPT');
+
                        // Creating TCEmain object
                $this->tce = t3lib_div::makeInstance('t3lib_TCEmain');
+               $this->tce->stripslashes_values=0;
                
                        // Configuring based on user prefs.
                if ($BE_USER->uc['recursiveDelete'])    {
@@ -154,8 +155,8 @@ class SC_tce_db {
 
        /**
         * Clipboard pasting and deleting.
-        * 
-        * @return      void            
+        *
+        * @return      void
         */
        function initClipboard()        {
                if (is_array($this->CB))        {
@@ -174,8 +175,8 @@ class SC_tce_db {
 
        /**
         * Executing the posted actions ...
-        * 
-        * @return      void            
+        *
+        * @return      void
         */
        function main() {
                global $BE_USER,$TYPO3_CONF_VARS;
@@ -196,7 +197,7 @@ class SC_tce_db {
                                // Execute actions:
                        $this->tce->process_datamap();
                        $this->tce->process_cmdmap();
-                       
+
                                // Clearing cache:
                        $this->tce->clear_cacheCmd($this->cacheCmd);
                        
@@ -210,15 +211,15 @@ class SC_tce_db {
        /**
         * Redirecting the user after the processing has been done.
         * Might also display error messages directly, if any.
-        * 
-        * @return      void            
+        *
+        * @return      void
         */
        function finish()       {
                        // Prints errors, if...
                if ($this->prErr)       {
                        $this->tce->printLogErrorMessages($this->redirect);
                }
-               
+
                if ($this->redirect && !$this->tce->debug) {
                        Header('Location: '.t3lib_div::locationHeaderUrl($this->redirect));
                }