Bug #19846 » fixed_lgd_is_deprecated.patch
t3lib/class.t3lib_div.php Locally Modified (Based On LOCAL) | ||
---|---|---|
$valListCnt = count($valueList);
|
||
foreach ($arr as $key => $value) {
|
||
if (!$valListCnt || in_array($key, $valueList)) {
|
||
$str .= (string)$key.trim(': '.t3lib_div::fixed_lgd(str_replace("\n",'|',(string)$value), $valueLength)).'; ';
|
||
$str .= (string)$key.trim(': '.t3lib_div::fixed_lgd_cs(str_replace("\n",'|',(string)$value), $valueLength)).'; ';
|
||
}
|
||
}
|
||
return $str;
|
t3lib/class.t3lib_timetrack.php Locally Modified (Based On LOCAL) | ||
---|---|---|
function fixCLen($c,$v) {
|
||
$len = $v=='FILE'?$this->printConf['contentLength_FILE']:$this->printConf['contentLength'];
|
||
if (strlen($c)>$len) {
|
||
$c = '<span style="color:green;">'.htmlspecialchars(t3lib_div::fixed_lgd($c,$len)).'</span>';
|
||
$c = '<span style="color:green;">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($c,$len)).'</span>';
|
||
} else {
|
||
$c = htmlspecialchars($c);
|
||
}
|
typo3/alt_shortcut.php Locally Modified (Based On LOCAL) | ||
---|---|---|
if ($row['description']&&($row['uid']!=$this->editSC)) {
|
||
$label = $row['description'];
|
||
} else {
|
||
$label = t3lib_div::fixed_lgd(rawurldecode($qParts['query']),150);
|
||
$label = t3lib_div::fixed_lgd_cs(rawurldecode($qParts['query']),150);
|
||
}
|
||
$titleA = $this->itemLabel($label,$row['module_name'],$row['M_module_name']);
|
||
typo3/class.db_list_extra.inc Locally Modified (Based On LOCAL) | ||
---|---|---|
}
|
||
}
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$table.'\', \''.$uid.'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$table.'\', \''.$uid.'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
}
|
||
/**
|
typo3/class.file_list.inc Locally Modified (Based On LOCAL) | ||
---|---|---|
$theData[$field]=$this->makeRef($theFile);
|
||
break;
|
||
default:
|
||
$theData[$field]=t3lib_div::fixed_lgd($theFile[$field],$this->fixedL);
|
||
$theData[$field]=t3lib_div::fixed_lgd_cs($theFile[$field],$this->fixedL);
|
||
break;
|
||
}
|
||
}
|
||
... | ... | |
// Sometimes $code contains plain HTML tags. In such a case the string should not be modified!
|
||
if(!strcmp($code,strip_tags($code))) {
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.' title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.' title="'.htmlspecialchars($code).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
|
||
} else {
|
||
return '<a href="'.htmlspecialchars($href).'"'.$onclick.'>'.$code.'</a>';
|
||
}
|
||
... | ... | |
if (t3lib_div::isFirstPartOfStr($path,t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT'))) {
|
||
$href = substr($path,strlen(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT')));
|
||
$aOnClick = "return top.openUrlInWindow('".$href."','WebFile');";
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd($code,$this->fixedL).'</a>';
|
||
$code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
|
||
}
|
||
return $code;
|
||
}
|
||
... | ... | |
$theData[$field] = $this->linkWrapFile($theFile[$field],$theFile['path'].$theFile['file']);
|
||
break;
|
||
default:
|
||
$theData[$field]=t3lib_div::fixed_lgd($theFile[$field],$this->fixedL);
|
||
$theData[$field]=t3lib_div::fixed_lgd_cs($theFile[$field],$this->fixedL);
|
||
break;
|
||
}
|
||
}
|
||
... | ... | |
}
|
||
}
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$theData['path'].$theData['file'].'\', \'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView(\''.$theData['path'].$theData['file'].'\', \'\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ',$infoData),100)).'">'.count($infoData).'</a>' : '';
|
||
}
|
||
}
|
||
typo3/classes/class.shortcutmenu.php Locally Modified (Based On LOCAL) | ||
---|---|---|
if($row['description']) {
|
||
$shortcut['label'] = $row['description'];
|
||
} else {
|
||
$shortcut['label'] = t3lib_div::fixed_lgd(rawurldecode($queryParts['query']), 150);
|
||
$shortcut['label'] = t3lib_div::fixed_lgd_cs(rawurldecode($queryParts['query']), 150);
|
||
}
|
||
$shortcut['group'] = $shortcutGroup;
|
typo3/mod/tools/em/class.em_index.php Locally Modified (Based On LOCAL) | ||
---|---|---|
}
|
||
// Extension title:
|
||
$cells[] = '<td nowrap="nowrap"><a href="'.htmlspecialchars($altLinkUrl?$altLinkUrl:'index.php?CMD[showExt]='.$extKey.'&SET[singleDetails]=info').'" title="'.$extKey.'"'/*.($extInfo['EM_CONF']['shy'] ? ' style="color:#666;" ' : '')*/.'>'.t3lib_div::fixed_lgd($extInfo['EM_CONF']['title']?$extInfo['EM_CONF']['title']:'<em>'.$extKey.'</em>',40).'</a></td>';
|
||
$cells[] = '<td nowrap="nowrap"><a href="'.htmlspecialchars($altLinkUrl?$altLinkUrl:'index.php?CMD[showExt]='.$extKey.'&SET[singleDetails]=info').'" title="'.$extKey.'"'/*.($extInfo['EM_CONF']['shy'] ? ' style="color:#666;" ' : '')*/.'>'.t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title']?$extInfo['EM_CONF']['title']:'<em>'.$extKey.'</em>',40).'</a></td>';
|
||
// Based on which display mode you will see more or less details:
|
||
if (!$this->MOD_SETTINGS['display_details']) {
|
||
$cells[] = '<td>'.htmlspecialchars(t3lib_div::fixed_lgd($extInfo['EM_CONF']['description'],400)).'<br /><img src="clear.gif" width="300" height="1" alt="" /></td>';
|
||
$cells[] = '<td>'.htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['description'],400)).'<br /><img src="clear.gif" width="300" height="1" alt="" /></td>';
|
||
$cells[] = '<td nowrap="nowrap">'.($extInfo['EM_CONF']['author_email'] ? '<a href="mailto:'.htmlspecialchars($extInfo['EM_CONF']['author_email']).'">' : '').htmlspecialchars($extInfo['EM_CONF']['author']).($extInfo['EM_CONF']['author_email'] ? '</a>' : '').($extInfo['EM_CONF']['author_company'] ? '<br />'.htmlspecialchars($extInfo['EM_CONF']['author_company']) : '').'</td>';
|
||
} elseif ($this->MOD_SETTINGS['display_details']==2) {
|
||
$cells[] = '<td nowrap="nowrap">'.$extInfo['EM_CONF']['priority'].'</td>';
|
||
... | ... | |
if (is_array($imgInfo)) {
|
||
$out.= '<img src="'.$GLOBALS['BACK_PATH'].$this->typeRelPaths[$extInfo['type']].$extKey.'/ext_icon.gif" '.$imgInfo[3].' align="'.$align.'" alt="" />';
|
||
}
|
||
$out.= $extInfo['EM_CONF']['title'] ? htmlspecialchars(t3lib_div::fixed_lgd($extInfo['EM_CONF']['title'],40)) : '<em>'.$extKey.'</em>';
|
||
$out.= $extInfo['EM_CONF']['title'] ? htmlspecialchars(t3lib_div::fixed_lgd_cs($extInfo['EM_CONF']['title'],40)) : '<em>'.$extKey.'</em>';
|
||
return $out;
|
||
}
|
||
typo3/mod/web/perm/index.php Locally Modified (Based On LOCAL) | ||
---|---|---|
// First column:
|
||
$cellAttrib = ($data['row']['_CSSCLASS'] ? ' class="'.$data['row']['_CSSCLASS'].'"' : '');
|
||
$cells[]='
|
||
<td align="left" nowrap="nowrap"'.($cellAttrib ? $cellAttrib : $bgCol).'>'.$data['HTML'].htmlspecialchars(t3lib_div::fixed_lgd($data['row']['title'],$tLen)).' </td>';
|
||
<td align="left" nowrap="nowrap"'.($cellAttrib ? $cellAttrib : $bgCol).'>'.$data['HTML'].htmlspecialchars(t3lib_div::fixed_lgd_cs($data['row']['title'],$tLen)).' </td>';
|
||
// "Edit permissions" -icon
|
||
if ($editPermsAllowed && $pageId) {
|
typo3/sysext/cms/tslib/media/scripts/wapversionLib.inc Locally Modified (Based On LOCAL) | ||
---|---|---|
function contentAbstract() {
|
||
$res = $this->getContentResult('tt_content');
|
||
$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
|
||
$out = $this->bold(t3lib_div::fixed_lgd(htmlspecialchars($row['header']),20)).'<br/>';
|
||
$out.= t3lib_div::fixed_lgd(htmlspecialchars($row['bodytext']),50);
|
||
$out = $this->bold(t3lib_div::fixed_lgd_cs(htmlspecialchars($row['header']),20)).'<br/>';
|
||
$out.= t3lib_div::fixed_lgd_cs(htmlspecialchars($row['bodytext']),50);
|
||
$out = '<p>'.$out.' <a href="'.htmlspecialchars('?id='.$GLOBALS['TSFE']->id.',1.'.$GLOBALS['TSFE']->type).'">[more]</a></p>';
|
||
return $out;
|
||
}
|
||
... | ... | |
* @see contentAll()
|
||
*/
|
||
function cBodytext($str,$start=0,$max=0) {
|
||
$out = t3lib_div::fixed_lgd(($start?'...':'').substr($this->nl2br(htmlspecialchars(strip_tags($str))),$start),($max?$max:100000));
|
||
$out = t3lib_div::fixed_lgd_cs(($start?'...':'').substr($this->nl2br(htmlspecialchars(strip_tags($str))),$start),($max?$max:100000));
|
||
$out = str_replace('&','',$out); // No & in WAP docs??? --> or maybe just htmlspecialchar() things as the LAST thing instead!)
|
||
return $out;
|
||
}
|
typo3/sysext/fe_edit/view/class.tx_feedit_editpanel.php Locally Modified (Based On LOCAL) | ||
---|---|---|
<table border="0" cellpadding="0" cellspacing="0" class="typo3-editPanel" summary="">
|
||
<tr>
|
||
<td nowrap="nowrap" bgcolor="#ABBBB4" class="typo3-editPanel-controls">' . $panel . '</td>' .
|
||
($labelTxt ? '<td nowrap="nowrap" bgcolor="#F6F2E6" class="typo3-editPanel-label"><font face="verdana" size="1" color="black"> ' . sprintf($labelTxt, htmlspecialchars(t3lib_div::fixed_lgd($dataArr[$labelField], 50))) . ' </font></td>' : '') . '
|
||
($labelTxt ? '<td nowrap="nowrap" bgcolor="#F6F2E6" class="typo3-editPanel-label"><font face="verdana" size="1" color="black"> ' . sprintf($labelTxt, htmlspecialchars(t3lib_div::fixed_lgd_cs($dataArr[$labelField], 50))) . ' </font></td>' : '') . '
|
||
</tr>
|
||
</table>
|
||
</form>';
|
typo3/sysext/indexed_search/mod/index.php Locally Modified (Based On LOCAL) | ||
---|---|---|
$grListRec = $this->getGrlistRecord($row["phash"]);
|
||
$recList[] = array(
|
||
$row["data_page_id"].($row["data_page_type"]?"/".$row["data_page_type"]:""),
|
||
t3lib_div::fixed_lgd($row["item_title"],30),
|
||
t3lib_div::fixed_lgd_cs($row["item_title"],30),
|
||
t3lib_div::formatSize($row["item_size"]),
|
||
$this->getNumberOfWords($row["phash"]),
|
||
t3lib_BEfunc::datetime($row["item_mtime"]),
|
||
... | ... | |
$cHash = count(unserialize($row["cHashParams"])) ? $this->formatCHash(unserialize($row["cHashParams"])) : "";
|
||
$grListRec = $this->getGrlistRecord($row["phash"]);
|
||
$recList[]=array(
|
||
t3lib_div::fixed_lgd($row["item_title"],30),
|
||
t3lib_div::fixed_lgd_cs($row["item_title"],30),
|
||
t3lib_div::formatSize($row["item_size"]),
|
||
$this->getNumberOfWords($row["phash"]),
|
||
t3lib_BEfunc::datetime($row["item_mtime"]),
|
||
... | ... | |
$row["pcount"],
|
||
$cHash,
|
||
$row["phash"],
|
||
t3lib_div::fixed_lgd($row["data_filename"],100)
|
||
t3lib_div::fixed_lgd_cs($row["data_filename"],100)
|
||
);
|
||
if ($row["pcount"]>1) {
|
typo3/sysext/install/mod/class.tx_install.php Locally Modified (Based On LOCAL) | ||
---|---|---|
if (!is_array($value) && ($this->checkForBadString($value) || $isTextarea)) {
|
||
$k2 = '['.$vk.']';
|
||
$msg = htmlspecialchars($description).'<br /><br /><em>'.$ext.$k2.' = '.htmlspecialchars(t3lib_div::fixed_lgd($value,60)).'</em><br />';
|
||
$msg = htmlspecialchars($description).'<br /><br /><em>'.$ext.$k2.' = '.htmlspecialchars(t3lib_div::fixed_lgd_cs($value,60)).'</em><br />';
|
||
if ($isTextarea) {
|
||
$form = '<textarea name="TYPO3_INSTALL[extConfig]['.$k.']['.$vk.']" cols="60" rows="5" wrap="off">'.htmlspecialchars($value).'</textarea>';
|
||
... | ... | |
if (count($statements)) {
|
||
$out = '';
|
||
foreach ($statements as $statement) {
|
||
$out.= nl2br(htmlspecialchars(t3lib_div::fixed_lgd($statement,$maxlen)).chr(10).chr(10));
|
||
$out.= nl2br(htmlspecialchars(t3lib_div::fixed_lgd_cs($statement,$maxlen)).chr(10).chr(10));
|
||
}
|
||
}
|
||
$this->message($tLabel,'Content of '.basename($actionParts[1]),$out,1);
|
typo3/sysext/lowlevel/dbint/index.php Locally Modified (Based On LOCAL) | ||
---|---|---|
reset($admin->lRecords[$t]);
|
||
while(list(,$data)=each($admin->lRecords[$t])) {
|
||
if (!t3lib_div::inList($admin->lostPagesList,$data[pid])) {
|
||
$lr.= '<nobr><b><a href="index.php?SET[function]=records&fixLostRecords_table=' . $t . '&fixLostRecords_uid=' . $data[uid] . '"><img src="' . $BACK_PATH . 'gfx/required_h.gif" width="10" hspace="3" height="10" border="0" align="top" title="' . $GLOBALS['LANG']->getLL('fixLostRecord') . '"></a>uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd(strip_tags($data[title]), 20) . '</b></nobr><br>';
|
||
$lr.= '<nobr><b><a href="index.php?SET[function]=records&fixLostRecords_table=' . $t . '&fixLostRecords_uid=' . $data[uid] . '"><img src="' . $BACK_PATH . 'gfx/required_h.gif" width="10" hspace="3" height="10" border="0" align="top" title="' . $GLOBALS['LANG']->getLL('fixLostRecord') . '"></a>uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</b></nobr><br>';
|
||
} else {
|
||
$lr.= '<nobr><img src="' . $BACK_PATH . 'clear.gif" width="16" height="1" border="0"><font color="Gray">uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd(strip_tags($data[title]), 20) . '</font></nobr><br>';
|
||
$lr.= '<nobr><img src="' . $BACK_PATH . 'clear.gif" width="16" height="1" border="0"><font color="Gray">uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</font></nobr><br>';
|
||
}
|
||
}
|
||
}
|
typo3/sysext/rtehtmlarea/mod4/class.tx_rtehtmlarea_select_image.php Locally Modified (Based On LOCAL) | ||
---|---|---|
foreach($treeArr as $k => $v) {
|
||
$c++;
|
||
$bgColor=' class="'.(($c+1)%2 ? 'bgColor' : 'bgColor-10').'"';
|
||
$out.='<tr'.$bgColor.'><td nowrap="nowrap">'.$v['HTML'].$this->wrapTitle(t3lib_div::fixed_lgd($v['row']['title'],$titleLen),$v['row']).'</td></tr>';
|
||
$out.='<tr'.$bgColor.'><td nowrap="nowrap">'.$v['HTML'].$this->wrapTitle(t3lib_div::fixed_lgd_cs($v['row']['title'],$titleLen),$v['row']).'</td></tr>';
|
||
}
|
||
$out='<table border="0" cellpadding="0" cellspacing="0">'.$out.'</table>';
|
||
... | ... | |
$titleLen = intval($BE_USER->uc['titleLen']);
|
||
$picon='<img'.t3lib_iconWorks::skinImg($BACK_PATH,'gfx/i/_icon_webfolders.gif','width="18" height="16"').' alt="" />';
|
||
$picon.=htmlspecialchars(t3lib_div::fixed_lgd(basename($expandFolder),$titleLen));
|
||
$picon.=htmlspecialchars(t3lib_div::fixed_lgd_cs(basename($expandFolder),$titleLen));
|
||
$out.='<span class="nobr">'.$picon.'</span><br />';
|
||
$imgObj = t3lib_div::makeInstance('t3lib_stdGraphic');
|
||
... | ... | |
$ATag2_e='</a>';
|
||
}
|
||
$filenameAndIcon=$ATag.$icon.htmlspecialchars(t3lib_div::fixed_lgd(basename($filepath),$titleLen)).$ATag_e;
|
||
$filenameAndIcon=$ATag.$icon.htmlspecialchars(t3lib_div::fixed_lgd_cs(basename($filepath),$titleLen)).$ATag_e;
|
||
$lines[]='<tr class="bgColor4"><td nowrap="nowrap">'.$filenameAndIcon.' </td><td nowrap="nowrap">'.$pDim.' </td></tr>';
|
typo3/sysext/taskcenter/task/class.mod_user_task.php Locally Modified (Based On LOCAL) | ||
---|---|---|
* Return a string cropped to a fixed length according to system setting or parameter
|
||
*
|
||
* @param string $str: string to be cropped.
|
||
* @param int $len: length of the cropped string, system settings is used if none is given
|
||
* @param int $len: length of the cropped string, system settings is used if none is given
|
||
* @return string cropped string
|
||
*/
|
||
function fixed_lgd($str, $len = 0) {
|
||
return t3lib_div::fixed_lgd($str, $len?$len:$this->BE_USER->uc['titleLen']);
|
||
return t3lib_div::fixed_lgd_cs($str, $len?$len:$this->BE_USER->uc['titleLen']);
|
||
}
|
||
/**
|
typo3/sysext/tsconfig_help/mod1/index.php Locally Modified (Based On LOCAL) | ||
---|---|---|
</script>
|
||
';
|
||
$headerSection = $this->doc->getHeader('pages',$this->pageinfo,$this->pageinfo['_thePath']).'<br />'.$LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.path').': '.t3lib_div::fixed_lgd_pre($this->pageinfo['_thePath'],50);
|
||
$this->content .= $this->doc->header($LANG->getLL('title'));
|
||
$this->content .= $this->doc->spacer(5);
|
||
// Render content:
|
||
$this->moduleContent();
|
||
$this->content .= $this->doc->spacer(10);
|
||
$markers['FUNC_MENU'] = t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']);
|