Fixed bug #14243: some notices, undefined index in tslib_fe.php (Thanks to Martin...
[Packages/TYPO3.CMS.git] / typo3 / db_list.php
old mode 100755 (executable)
new mode 100644 (file)
index 142c6ed..1967ed4
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -62,11 +62,6 @@ require ('mod/web/list/conf.php');
 require ('init.php');
 require ('template.php');
 $LANG->includeLLFile('EXT:lang/locallang_mod_web_list.xml');
-require_once (PATH_t3lib.'class.t3lib_page.php');
-require_once (PATH_t3lib.'class.t3lib_pagetree.php');
-require_once (PATH_t3lib.'class.t3lib_recordlist.php');
-require_once (PATH_t3lib.'class.t3lib_clipboard.php');
-require_once (PATH_t3lib.'class.t3lib_parsehtml.php');
 require_once ($BACK_PATH.'class.db_list.inc');
 require_once ($BACK_PATH.'class.db_list_extra.inc');
 $BE_USER->modAccess($MCONF,1);
@@ -205,8 +200,7 @@ class SC_db_list {
                        // Start document template object:
                $this->doc = t3lib_div::makeInstance('template');
                $this->doc->backPath = $BACK_PATH;
-               $this->doc->setModuleTemplate('templates/db_list.html');        
-               $this->doc->docType='xhtml_trans';
+               $this->doc->setModuleTemplate('templates/db_list.html');
 
                        // Loading current page record and checking access:
                $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
@@ -227,11 +221,13 @@ class SC_db_list {
                $dblist->tableTSconfigOverTCA = $this->modTSconfig['properties']['table.'];
                $dblist->clickTitleMode = $this->modTSconfig['properties']['clickTitleMode'];
                $dblist->alternateBgColors=$this->modTSconfig['properties']['alternateBgColors']?1:0;
-               $dblist->allowedNewTables = t3lib_div::trimExplode(',',$this->modTSconfig['properties']['allowedNewTables'],1);
+               $dblist->allowedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['allowedNewTables'], 1);
+               $dblist->deniedNewTables = t3lib_div::trimExplode(',', $this->modTSconfig['properties']['deniedNewTables'], 1);
                $dblist->newWizards=$this->modTSconfig['properties']['newWizards']?1:0;
                $dblist->pageRow = $this->pageinfo;
                $dblist->counter++;
                $dblist->MOD_MENU = array('bigControlPanel' => '', 'clipBoard' => '', 'localization' => '');
+               $dblist->modTSconfig = $this->modTSconfig;
 
                        // Clipboard is initialized:
                $dblist->clipObj = t3lib_div::makeInstance('t3lib_clipboard');          // Start clipboard
@@ -275,7 +271,7 @@ class SC_db_list {
                                        $tce->process_cmdmap();
 
                                        if (isset($cmd['pages']))       {
-                                               t3lib_BEfunc::getSetUpdateSignal('updatePageTree');
+                                               t3lib_BEfunc::setUpdateSignal('updatePageTree');
                                        }
 
                                        $tce->printLogErrorMessages(t3lib_div::getIndpEnv('REQUEST_URI'));
@@ -288,7 +284,9 @@ class SC_db_list {
                        $dblist->setDispFields();
 
                                // Render versioning selector:
-                       $dblist->HTMLcode.= $this->doc->getVersionSelector($this->id);
+                       if (t3lib_extMgm::isLoaded('version')) {
+                               $dblist->HTMLcode .= $this->doc->getVersionSelector($this->id);
+                       }
 
                                // Render the list of tables:
                        $dblist->generateList();
@@ -352,7 +350,7 @@ class SC_db_list {
                                // Setting up the context sensitive menu:
                        $this->doc->getContextMenuCode();
                } // access
-               
+
                        // Begin to compile the whole page, starting out with page header:
                $this->body='';
                $this->body.= '<form action="'.htmlspecialchars($dblist->listURL()).'" method="post" name="dblistForm">';
@@ -405,7 +403,7 @@ class SC_db_list {
                        'CSH' => $docHeaderButtons['csh'],
                        'CONTENT' => $this->body
                );
-               
+
                        // Build the <body> for the module
                $this->content = $this->doc->startPage('DB list');
                $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers);
@@ -423,22 +421,13 @@ class SC_db_list {
        }
 }
 
-// Include extension?
+
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/db_list.php'])      {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/db_list.php']);
 }
 
 
 
-
-
-
-
-
-
-
-
-
 // Make instance:
 $SOBE = t3lib_div::makeInstance('SC_db_list');
 $SOBE->init();
@@ -449,4 +438,5 @@ foreach($SOBE->include_once as $INC_FILE)   include_once($INC_FILE);
 $SOBE->clearCache();
 $SOBE->main();
 $SOBE->printContent();
-?>
+
+?>
\ No newline at end of file