Project

General

Profile

Task #24551 » getURL-typo3-sysext-cms.diff

Administrator Admin, 2011-01-13 14:13

View differences:

typo3/sysext/cms/tslib/class.tslib_fe.php
} elseif (t3lib_div::isFirstPartOfStr($code,'READFILE:')) {
$readFile = t3lib_div::getFileAbsFileName(trim(substr($code,9)));
if (@is_file($readFile)) {
$fileContent = t3lib_div::getUrl($readFile);
$fileContent = t3lib_div::getURL($readFile);
$fileContent = str_replace('###CURRENT_URL###', t3lib_div::getIndpEnv('REQUEST_URI'), $fileContent);
$fileContent = str_replace('###REASON###', htmlspecialchars($reason), $fileContent);
echo $fileContent;
......
SetCookie('ADMCMD_prev', '', 0, t3lib_div::getIndpEnv('TYPO3_SITE_PATH'));
if ($this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate']) {
if (@is_file(PATH_site.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate'])) {
$message = t3lib_div::getUrl(PATH_site.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate']);
$message = t3lib_div::getURL(PATH_site.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate']);
} else {
$message = '<strong>ERROR!</strong><br>Template File "'.$this->TYPO3_CONF_VARS['FE']['workspacePreviewLogoutTemplate'].'" configured with $TYPO3_CONF_VARS["FE"]["workspacePreviewLogoutTemplate"] not found. Please contact webmaster about this problem.';
}
......
$cacheFileName = PATH_site.'typo3temp/cache_pages/'.$row['hash']{0}.$row['hash']{1}.'/'.$row['hash'].'.html';
switch((string)$type) {
case 'get':
$row['HTML'] = @is_file($cacheFileName) ? t3lib_div::getUrl($cacheFileName) : '<!-- CACHING ERROR, sorry -->';
$row['HTML'] = @is_file($cacheFileName) ? t3lib_div::getURL($cacheFileName) : '<!-- CACHING ERROR, sorry -->';
break;
case 'set':
t3lib_div::writeFileToTypo3tempDir($cacheFileName, $row['HTML']);
(3-3/21)