Follow-up to #14195: removed file typo3/sysext/t3skin/stylesheets/.htaccess which...
[Packages/TYPO3.CMS.git] / typo3 / class.file_list.inc
index 93bf4ed..2f56814 100644 (file)
@@ -180,7 +180,7 @@ class fileList extends t3lib_recordList {
                                if ($this->clickMenus) $otherMarkers['PAGE_ICON'] = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($otherMarkers['PAGE_ICON'],$path);
 
                                $buttons['level_up'] .= $this->linkWrapDir('<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/i/folder_up.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.upOneLevel',1).'" alt="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.upOneLevel',1).'" />',$theFile['path']);
-                               $otherMarkers['TITLE'] .= t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20));  // No HTML specialchars here - HTML like <b> </b> is allowed
+                               $otherMarkers['TITLE'] .= t3lib_div::removeXSS(t3lib_div::fixed_lgd_cs($title,-($this->fixedL+20)));    // No HTML specialchars here - HTML like <b> </b> is allowed
 
                                // this is the root page
                        } else {
@@ -266,8 +266,8 @@ class fileList extends t3lib_recordList {
                                if ($this->clipObj->current!='normal' && $iOut) {
                                        $cells[]=$this->linkClipboardHeaderIcon('<img'.t3lib_iconWorks::skinImg('','gfx/clip_copy.gif','width="12" height="12"').' title="'.$GLOBALS['LANG']->getLL('clip_selectMarked',1).'" alt="'.$GLOBALS['LANG']->getLL('clip_selectMarked',1).'" />',$table,'setCB');
                                        $cells[]=$this->linkClipboardHeaderIcon('<img'.t3lib_iconWorks::skinImg('','gfx/garbage.gif','width="11" height="12"').' title="'.$GLOBALS['LANG']->getLL('clip_deleteMarked',1).'" alt="'.$GLOBALS['LANG']->getLL('clip_deleteMarked',1).'" />',$table,'delete',$GLOBALS['LANG']->getLL('clip_deleteMarkedWarning'));
-                                       $onClick = 'checkOffCB(\''.implode(',',$this->CBnames).'\'); return false;';
-                                       $cells[]='<a href="#" onclick="'.htmlspecialchars($onClick).'">'.
+                                       $onClick = 'checkOffCB(\'' . implode(',', $this->CBnames) . '\', this); return false;';
+                                       $cells[] = '<a class="cbcCheckAll" rel="" href="#" onclick="' . htmlspecialchars($onClick) . '">'.
                                                        '<img'.t3lib_iconWorks::skinImg('','gfx/clip_select.gif','width="12" height="12"').' title="'.$GLOBALS['LANG']->getLL('clip_markRecords',1).'" alt="'.$GLOBALS['LANG']->getLL('clip_markRecords',1).'" />'.
                                                        '</a>';
                                }
@@ -509,6 +509,20 @@ class fileList extends t3lib_recordList {
                                                        break;
                                                        case 'file':
                                                                $theData[$field] = $this->linkWrapFile($theFile[$field],$theFile['path'].$theFile['file']);
+                                                                       // Thumbsnails?
+                                                               if ($this->thumbs && $this->isImage($theFile['fileext']))       {
+                                                                       $thumbData = array();
+                                                                       $theFile_R = rawurlencode($theFile['path'].$theFile['file']);
+                                                                       $titleCol = $this->fieldArray[0];
+                       
+                                                                       $theFile_abs = $theFile['path'].$theFile['file'];
+                                                                       $check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
+                                                                       $params = '&file='.$theFile_R;
+                                                                       $params.= '&md5sum='.t3lib_div::shortMD5($check);
+                                                                       $href = $this->backPath.$this->thumbScript.'?&dummy='.$GLOBALS['EXEC_TIME'].$params;
+                       
+                                                                       $theData[$field] .= '<br /><img src="'.htmlspecialchars($href).'" hspace="2" title="'.htmlspecialchars(trim($theFile['file'])).'" alt="'.htmlspecialchars(trim($theFile['file'])).'" />';
+                                                               }
                                                        break;
                                                        default:
                                                                $theData[$field]=t3lib_div::fixed_lgd_cs($theFile[$field],$this->fixedL);
@@ -522,22 +536,6 @@ class fileList extends t3lib_recordList {
                                        }
 
                                        $out .= $this->addelement(1, $theIcon, $theData, $altRows);
-
-                                               // Thumbsnails?
-                                       if ($this->thumbs && $this->isImage($theFile['fileext']))       {
-                                               $thumbData = array();
-                                               $theFile_R = rawurlencode($theFile['path'].$theFile['file']);
-                                               $titleCol = $this->fieldArray[0];
-
-                                               $theFile_abs = $theFile['path'].$theFile['file'];
-                                               $check = basename($theFile_abs).':'.filemtime($theFile_abs).':'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'];
-                                               $params = '&file='.$theFile_R;
-                                               $params.= '&md5sum='.t3lib_div::shortMD5($check);
-                                               $href = $this->backPath.$this->thumbScript.'?&dummy='.$GLOBALS['EXEC_TIME'].$params;
-
-                                               $thumbData[$titleCol]='<img src="'.htmlspecialchars($href).'" hspace="2" title="'.htmlspecialchars(trim($theFile['file'])).'" alt="'.htmlspecialchars(trim($theFile['file'])).'" />';
-                                               $out.= $this->addelement(4,'',$thumbData);
-                                       }
                                }
                                $this->eCounter++;
                        }