Project

General

Profile

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

Administrator Admin, 2011-01-13 14:13

View differences:

typo3/sysext/em/classes/connection/class.tx_em_connection_extdirectserver.php
$tsStyleConfig = t3lib_div::makeInstance('t3lib_tsStyleConfig');
$tsStyleConfig->doNotSortCategoriesBeforeMakingForm = TRUE;
$theConstants = $tsStyleConfig->ext_initTSstyleConfig(
t3lib_div::getUrl($absPath . 'ext_conf_template.txt'),
t3lib_div::getURL($absPath . 'ext_conf_template.txt'),
$relPath,
$absPath,
$GLOBALS['BACK_PATH']
typo3/sysext/em/classes/extensions/class.tx_em_extensions_details.php
* @see writeTYPO3_MOD_PATH()
*/
function modConfFileAnalysis($confFilePath) {
$lines = explode(LF, t3lib_div::getUrl($confFilePath));
$lines = explode(LF, t3lib_div::getURL($confFilePath));
$confFileInfo = array();
$confFileInfo['lines'] = $lines;
$reg = array();
......
'size' => filesize($file),
'mtime' => filemtime($file),
'is_executable' => (TYPO3_OS == 'WIN' ? 0 : is_executable($file)),
'content' => t3lib_div::getUrl($file)
'content' => t3lib_div::getURL($file)
);
if (t3lib_div::inList('php,inc', strtolower($fI['extension']))) {
$uploadArray['FILES'][$relFileName]['codelines'] = count(explode(LF, $uploadArray['FILES'][$relFileName]['content']));
typo3/sysext/em/classes/index.php
$uploadedTempFile = t3lib_div::upload_to_tempfile($_FILES['upload_ext_file']['tmp_name']);
}
$fileContent = t3lib_div::getUrl($uploadedTempFile);
$fileContent = t3lib_div::getURL($uploadedTempFile);
if (!$fileContent) {
return $GLOBALS['LANG']->getLL('ext_import_file_empty');
......
$mimeType = 'application/octet-stream';
Header('Content-Type: ' . $mimeType);
Header('Content-Disposition: attachment; filename=' . basename($dlFile));
echo t3lib_div::getUrl($dlFile);
echo t3lib_div::getURL($dlFile);
exit;
} else {
throw new RuntimeException(
......
$saveFlag = 0;
if (isset($submittedContent['file']) && !$GLOBALS['TYPO3_CONF_VARS']['EXT']['noEdit']) { // Check referer here?
$oldFileContent = t3lib_div::getUrl($editFile);
$oldFileContent = t3lib_div::getURL($editFile);
if ($oldFileContent != $submittedContent['file']) {
$oldMD5 = md5(str_replace(CR, '', $oldFileContent));
$info .= sprintf(
......
}
}
$fileContent = t3lib_div::getUrl($editFile);
$fileContent = t3lib_div::getURL($editFile);
$outCode .= sprintf(
$GLOBALS['LANG']->getLL('ext_details_file'),
typo3/sysext/em/classes/install/class.tx_em_install.php
*/
public function uploadExtensionFile($uploadedTempFile, $location, $uploadOverwrite = FALSE) {
$error = '';
$fileContent = t3lib_div::getUrl($uploadedTempFile);
$fileContent = t3lib_div::getURL($uploadedTempFile);
if (!$fileContent) {
return array(
'success' => FALSE,
......
if (!@is_file($extDirPath . $theFile)) {
$content .= sprintf($GLOBALS['LANG']->getLL('ext_import_file_not_created'),
$extDirPath . $theFile) . '<br />';
} elseif (md5(t3lib_div::getUrl($extDirPath . $theFile)) != $fileData['content_md5']) {
} elseif (md5(t3lib_div::getURL($extDirPath . $theFile)) != $fileData['content_md5']) {
$content .= sprintf($GLOBALS['LANG']->getLL('ext_import_file_corrupted'),
$extDirPath . $theFile) . '<br />';
}
......
// Updating tables and fields?
if (is_array($extInfo['files']) && in_array('ext_tables.sql', $extInfo['files'])) {
$fileContent = t3lib_div::getUrl(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables.sql');
$fileContent = t3lib_div::getURL(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables.sql');
$FDfile = $this->install->getFieldDefinitions_fileContent($fileContent);
if (count($FDfile)) {
......
// Importing static tables?
if (is_array($extInfo['files']) && in_array('ext_tables_static+adt.sql', $extInfo['files'])) {
$fileContent = t3lib_div::getUrl(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables_static+adt.sql');
$fileContent = t3lib_div::getURL(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables_static+adt.sql');
$statements = $this->install->getStatementarray($fileContent, 1);
list($statements_table, $insertCount) = $this->install->getCreateTables($statements, 1);
......
// ext_tables.php:
if (@is_file($absPath . 'ext_tables.php')) {
$content = t3lib_div::getUrl($absPath . 'ext_tables.php');
$content = t3lib_div::getURL($absPath . 'ext_tables.php');
if (stristr($content, 't3lib_extMgm::addModule')) {
$infoArray['flags'][] = $GLOBALS['LANG']->getLL('detailedExtAnalysis_module');
}
......
// ext_localconf.php:
if (@is_file($absPath . 'ext_localconf.php')) {
$content = t3lib_div::getUrl($absPath . 'ext_localconf.php');
$content = t3lib_div::getURL($absPath . 'ext_localconf.php');
if (stristr($content, 't3lib_extMgm::addPItoST43')) {
$infoArray['flags'][] = $GLOBALS['LANG']->getLL('detailedExtAnalysis_plugin_st43');
}
......
$tsStyleConfig = t3lib_div::makeInstance('t3lib_tsStyleConfig');
$tsStyleConfig->doNotSortCategoriesBeforeMakingForm = TRUE;
$theConstants = $tsStyleConfig->ext_initTSstyleConfig(
t3lib_div::getUrl($absPath . 'ext_conf_template.txt'),
t3lib_div::getURL($absPath . 'ext_conf_template.txt'),
$relPath,
$absPath,
$GLOBALS['BACK_PATH']
......
// Updating tables and fields?
if (is_array($extInfo['files']) && in_array('ext_tables.sql', $extInfo['files'])) {
$fileContent = t3lib_div::getUrl(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables.sql');
$fileContent = t3lib_div::getURL(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables.sql');
$FDfile = $instObj->getFieldDefinitions_fileContent($fileContent);
if (count($FDfile)) {
......
// Importing static tables?
if (is_array($extInfo['files']) && in_array('ext_tables_static+adt.sql', $extInfo['files'])) {
$fileContent = t3lib_div::getUrl(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables_static+adt.sql');
$fileContent = t3lib_div::getURL(tx_em_Tools::getExtPath($extKey, $extInfo['type']) . 'ext_tables_static+adt.sql');
$statements = $instObj->getStatementarray($fileContent, 1);
list($statements_table, $insertCount) = $instObj->getCreateTables($statements, 1);
typo3/sysext/em/classes/tools/class.tx_em_tools.php
$out['locallang'][] = $fileName;
} elseif ($baseName != 'conf.php') {
if (filesize($absPath . $fileName) < 500 * 1024) {
$fContent = t3lib_div::getUrl($absPath . $fileName);
$fContent = t3lib_div::getURL($absPath . $fileName);
unset($reg);
if (preg_match('/\n[[:space:]]*class[[:space:]]*([[:alnum:]_]+)([[:alnum:][:space:]_]*)/', $fContent, $reg)) {
......
* @see modConfFileAnalysis()
*/
public static function writeTYPO3_MOD_PATH($confFilePath, $type, $mP) {
$lines = explode(LF, t3lib_div::getUrl($confFilePath));
$lines = explode(LF, t3lib_div::getURL($confFilePath));
$confFileInfo = array();
$confFileInfo['lines'] = $lines;
$reg = array();
(5-5/21)