Bug #23169 » 15104-TS-analyzer-cleanup.patch

Administrator Admin, 2010-07-13 23:47

View differences:

t3lib/class.t3lib_tsparser_ext.php (Arbeitskopie)
604 604
						: t3lib_iconWorks::getSpriteIcon('mimetypes-x-content-template-static', array('title' => $alttext))
605 605
					);
606 606
			if (in_array($row['templateID'], $this->clearList_const) || in_array($row['templateID'], $this->clearList_setup)) {
607
				$A_B = '<a href="index.php?id=' . $GLOBALS['SOBE']->id . '&template=' . $row['templateID'] . '">';
607
				$A_B = '<a href="index.php?id=' . htmlspecialchars($GLOBALS['SOBE']->id . '&template=' . $row['templateID']) . '">';
608 608
				$A_E = '</a>';
609 609
				if (t3lib_div::_GP('template') == $row['templateID']) {
610 610
					$A_B = '<strong>' . $A_B;
......
614 614
				$A_B = '';
615 615
				$A_E = '';
616 616
			}
617
			$HTML .= ($first ? '' : '<img src="' . $GLOBALS['BACK_PATH'] . 'gfx/ol/' . $PM . $BTM . '.gif" width="18" height="16" align="top" border="0" />') .
617
			$HTML .= ($first ? '' : '<img src="' . $GLOBALS['BACK_PATH'] . 'gfx/ol/' . $PM . $BTM . '.gif" width="18" height="16" align="top" border="0" alt="" />') .
618 618
				 $icon .
619 619
				$A_B . t3lib_div::fixed_lgd_cs($row['title'], $GLOBALS['BE_USER']->uc['titleLen']) . $A_E . '&nbsp;&nbsp;';
620 620
			$RL = $this->ext_getRootlineNumber($row['pid']);
621 621
			$keyArray[] = '<tr class="' . ($i++ % 2 == 0 ? 'bgColor4' : 'bgColor6') . '">
622
							<td nowrap>' . $HTML . '</td>
622
							<td nowrap="nowrap">' . $HTML . '</td>
623 623
							<td align="center">' . ($row['root'] ? t3lib_iconWorks::getSpriteIcon('status-status-checked') : '') . '&nbsp;&nbsp;</td>
624 624
							<td align="center">' . ($row['clConf'] ? t3lib_iconWorks::getSpriteIcon('status-status-checked') :'') . '&nbsp;&nbsp;' . '</td>
625 625
							<td align="center">' . ($row['clConst'] ? t3lib_iconWorks::getSpriteIcon('status-status-checked') : '') . '&nbsp;&nbsp;' . '</td>
typo3/sysext/tstemplate/ts/index.php (Arbeitskopie)
356 356

  
357 357
	function linkWrapTemplateTitle($title, $onlyKey = '') {
358 358
		if ($onlyKey) {
359
			$title = '<a href="index.php?id=' . $GLOBALS['SOBE']->id . '&e[' . $onlyKey . ']=1&SET[function]=tx_tstemplateinfo">' . htmlspecialchars($title) . '</a>';
359
			$title = '<a href="index.php?id=' . htmlspecialchars($GLOBALS['SOBE']->id . '&e[' . $onlyKey . ']=1&SET[function]=tx_tstemplateinfo') . '">' . htmlspecialchars($title) . '</a>';
360 360
		} else {
361
			$title = '<a href="index.php?id=' . $GLOBALS['SOBE']->id . '&e[constants]=1&e[config]=1&SET[function]=tx_tstemplateinfo">' . htmlspecialchars($title) . '</a>';
361
			$title = '<a href="index.php?id=' . htmlspecialchars($GLOBALS['SOBE']->id . '&e[constants]=1&e[config]=1&SET[function]=tx_tstemplateinfo') . '">' . htmlspecialchars($title) . '</a>';
362 362
		}
363 363
		return $title;
364 364
	}
typo3/sysext/tstemplate_analyzer/class.tx_tstemplateanalyzer.php (Arbeitskopie)
157 157
				$theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('constants', true), "", 0, 1);
158 158
				$theOutput .= $this->pObj->doc->sectionEnd();
159 159
				$theOutput .= '
160
					<table border=0 cellpadding=1 cellspacing=0>
160
					<table border="0" cellpadding="1" cellspacing="0">
161 161
				';
162 162
				$tmpl->ext_lineNumberOffset = -2;	// Don't know why -2 and not 0... :-) But works.
163 163
				$tmpl->ext_lineNumberOffset_mode = "const";
......
169 169
					if ($cVal == t3lib_div::_GET('template') || t3lib_div::_GET('template') == "all")	{
170 170
						$theOutput .= '
171 171
							<tr>
172
								<td><img src="clear.gif" width="3" height="1" /></td><td class="bgColor2"><strong>' . $tmpl->templateTitles[$cVal] . '</strong></td></tr>
172
								<td><img src="clear.gif" width="3" height="1" alt="" /></td><td class="bgColor2"><strong>' . $tmpl->templateTitles[$cVal] . '</strong></td></tr>
173 173
							<tr>
174
								<td><img src="clear.gif" width="3" height="1" /></td>
175
								<td class="bgColor2"><table border=0 cellpadding=0 cellspacing=0 class="bgColor0" width="100%"><tr><td nowrap>' .
174
								<td><img src="clear.gif" width="3" height="1" alt="" /></td>
175
								<td class="bgColor2"><table border="0" cellpadding="0" cellspacing="0" class="bgColor0" width="100%"><tr><td nowrap="nowrap">' .
176 176
								$tmpl->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS["ts_analyzer_checkLinenum"], $this->pObj->MOD_SETTINGS["ts_analyzer_checkComments"], $this->pObj->MOD_SETTINGS["ts_analyzer_checkCrop"], $this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntax"], $this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntaxBlockmode"]) .
177 177
								'</td></tr></table>
178 178
								</td>
......
196 196
				$theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('setup', true), "", 0, 1);
197 197
				$theOutput .= $this->pObj->doc->sectionEnd();
198 198
				$theOutput .= '
199
					<table border=0 cellpadding=1 cellspacing=0>
199
					<table border="0" cellpadding="1" cellspacing="0">
200 200
				';
201 201
				$tmpl->ext_lineNumberOffset = 0;
202 202
				$tmpl->ext_lineNumberOffset_mode = "setup";
......
207 207
					if (current($tmpl->clearList_setup) == t3lib_div::_GET('template') || t3lib_div::_GET('template') == "all")	{
208 208
						$theOutput .= '
209 209
							<tr>
210
								<td><img src="clear.gif" width="3" height="1" /></td><td class="bgColor2"><strong>' . $tmpl->templateTitles[current($tmpl->clearList_setup)] . '</strong></td></tr>
210
								<td><img src="clear.gif" width="3" height="1" alt="" /></td><td class="bgColor2"><strong>' . $tmpl->templateTitles[current($tmpl->clearList_setup)] . '</strong></td></tr>
211 211
							<tr>
212
								<td><img src="clear.gif" width="3" height="1" /></td>
213
								<td class="bgColor2"><table border=0 cellpadding=0 cellspacing=0 class="bgColor0" width="100%"><tr><td nowrap>'.$tmpl->ext_outputTS(array($val),$this->pObj->MOD_SETTINGS["ts_analyzer_checkLinenum"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkComments"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkCrop"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntax"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntaxBlockmode"]).'</td></tr></table>
212
								<td><img src="clear.gif" width="3" height="1" alt="" /></td>
213
								<td class="bgColor2"><table border="0" cellpadding="0" cellspacing="0" class="bgColor0" width="100%"><tr><td nowrap="nowrap">'.$tmpl->ext_outputTS(array($val),$this->pObj->MOD_SETTINGS["ts_analyzer_checkLinenum"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkComments"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkCrop"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntax"],$this->pObj->MOD_SETTINGS["ts_analyzer_checkSyntaxBlockmode"]).'</td></tr></table>
214 214
								</td>
215 215
							</tr>
216 216
						';
typo3/sysext/tstemplate_info/class.tx_tstemplateinfo.php (Arbeitskopie)
85 85
			$path = PATH_site.$GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'].'/'.$v;
86 86
			$functions = '';
87 87
			if ($func)	{
88
				$functions = '<td bgcolor=red nowrap>' . $GLOBALS['LANG']->getLL('delete') . ' <input type="Checkbox" name="data[remove_resource]['.$k.']" value="'.htmlspecialchars($v).'"></td>';
89
				$functions.= '<td'.$bgcol.' nowrap>' . $GLOBALS['LANG']->getLL('toTop') . ' <input type="Checkbox" name="data[totop_resource]['.$k.']" value="'.htmlspecialchars($v).'"></td>';
90
				$functions.= '<td'.$bgcol.' nowrap>';
88
				$functions = '<td bgcolor="red" nowrap="nowrap">' . $GLOBALS['LANG']->getLL('delete') . ' <input type="checkbox" name="data[remove_resource]['.$k.']" value="'.htmlspecialchars($v).'" /></td>';
89
				$functions.= '<td'.$bgcol.' nowrap="nowrap">' . $GLOBALS['LANG']->getLL('toTop') . ' <input type="checkbox" name="data[totop_resource]['.$k.']" value="'.htmlspecialchars($v).'" /></td>';
90
				$functions.= '<td'.$bgcol.' nowrap="nowrap">';
91 91
				$fI = t3lib_div::split_fileref($v);
92 92
				if (t3lib_div::inList($this->pObj->textExtensions,$fI['fileext']))	{
93 93
					$functions.= '<a href="index.php?id='.$this->pObj->id.'&e[file]='.rawurlencode($v).'">'.t3lib_iconWorks::getSpriteIcon('actions-document-open',array('title'=> $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editFile', true))) . '</a>';
......
95 95
				$functions.= '</td>';
96 96
			}
97 97
			$thumb = t3lib_BEfunc::thumbCode(array('resources' => $v), 'sys_template', 'resources', $GLOBALS['BACK_PATH'], '');
98
			$out.= '<tr><td'.$bgcol.' nowrap>'.$v.'&nbsp;&nbsp;</td><td'.$bgcol.' nowrap>&nbsp;'.t3lib_div::formatSize(@filesize($path)).'&nbsp;</td>'.$functions.'<td'.$bgcol.'>'.trim($thumb).'</td></tr>';
98
			$out.= '<tr><td'.$bgcol.' nowrap="nowrap">'.$v.'&nbsp;&nbsp;</td><td'.$bgcol.' nowrap="nowrap">&nbsp;'.t3lib_div::formatSize(@filesize($path)).'&nbsp;</td>'.$functions.'<td'.$bgcol.'>'.trim($thumb).'</td></tr>';
99 99
		}
100 100
		if ($out)	{
101 101
			if ($func)	{
102
				$out = '<table border=0 cellpadding=1 cellspacing=1 width="100%">'.$out.'</table>';
103
				$out = '<table border=0 cellpadding=0 cellspacing=0>
104
					<tr><td class="bgColor2">'.$out.'<img src=clear.gif width=465 height=1></td></tr>
102
				$out = '<table border="0" cellpadding="1" cellspacing="1" width="100%">'.$out.'</table>';
103
				$out = '<table border="0" cellpadding="0" cellspacing="0">
104
					<tr><td class="bgColor2">'.$out.'<img src="clear.gif" width="465px" height="1px"></td></tr>
105 105
				</table>';
106 106
			} else {
107
				$out = '<table border=0 cellpadding=0 cellspacing=0>'.$out.'</table>';
107
				$out = '<table border="0" cellpadding="0" cellspacing="0">'.$out.'</table>';
108 108
			}
109 109
		}
110 110
		return $out;
......
128 128
			if (t3lib_div::inList($this->pObj->textExtensions,strtolower($fI['extension'])))	{
129 129
				$path = PATH_site.$GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'].'/'.$v;
130 130
				$thumb = t3lib_BEfunc::thumbCode(array('resources' => $v), 'sys_template', 'resources', $GLOBALS['BACK_PATH'], '');
131
				$out.= '<tr><td'.$bgcol.' nowrap>'.$v.'&nbsp;&nbsp;</td><td'.$bgcol.' nowrap>&nbsp;'.t3lib_div::formatSize(@filesize($path)).'&nbsp;</td><td'.$bgcol.'>'.trim($thumb).'</td><td><input type="Checkbox" name="data[makecopy_resource]['.$k.']" value="'.htmlspecialchars($v).'"></td></tr>';
131
				$out.= '<tr><td'.$bgcol.' nowrap="nowrap">'.$v.'&nbsp;&nbsp;</td><td'.$bgcol.' nowrap="nowrap">&nbsp;'.t3lib_div::formatSize(@filesize($path)).'&nbsp;</td><td'.$bgcol.'>'.trim($thumb).'</td><td><input type="Checkbox" name="data[makecopy_resource]['.$k.']" value="'.htmlspecialchars($v).'"></td></tr>';
132 132
			}
133 133
		}
134
		$out = ($out ? '<table border=0 cellpadding=0 cellspacing=0>'.$out.'</table>' : '');
134
		$out = ($out ? '<table border="0" cellpadding="0" cellspacing="0">'.$out.'</table>' : '');
135 135
		return $out;
136 136
	}
137 137

  
typo3/sysext/tstemplate_objbrowser/class.tx_tstemplateobjbrowser.php (Arbeitskopie)
491 491
			$theOutput .= $this->pObj->doc->sectionEnd();
492 492
			$theOutput .= '<table border="0" cellpadding="1" cellspacing="0" id="typo3-objectBrowser" width="100%">
493 493
					<tr>
494
						<td><img src=clear.gif width=4 height=1></td>
494
						<td><img src="clear.gif" width="4px" height="1px" /></td>
495 495
						<td class="bgColor2">
496
							<table border=0 cellpadding=0 cellspacing=0 class="bgColor5" width="100%"><tr class="t3-row-header"><td nowrap width="99%"><strong>'.$label.'</strong></td>'.$remove.'</tr></table>
496
							<table border="0" cellpadding="0" cellspacing="0" class="bgColor5" width="100%"><tr class="t3-row-header"><td nowrap="nowrap" width="99%"><strong>' . $label . '</strong></td>' . $remove . '</tr></table>
497 497
						</td>
498 498
					</tr>
499 499
					<tr>
500
						<td><img src=clear.gif width=4 height=1></td>
500
						<td><img src="clear.gif" width="4px" height="1px" /></td>
501 501
						<td class="bgColor2">
502
							<table border=0 cellpadding=0 cellspacing=0 class="bgColor4" width="100%"><tr><td nowrap>'.$tree.'</td></tr></table></td>
502
							<table border="0" cellpadding="0" cellspacing="0" class="bgColor4" width="100%"><tr><td nowrap="nowrap">' . $tree . '</td></tr></table></td>
503 503
					</tr>
504 504
				</table>
505 505
			';
(1-1/2)