Bug #16430 » 3977.patch
typo3_src-4.0/t3lib/class.t3lib_div.php 2006-08-02 07:57:45.213091482 +0200 | ||
---|---|---|
}
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Setting file system mode & group ownership of a folder
|
||
*
|
||
* @param string Path of the folder to fix
|
||
* @return void
|
||
*/
|
||
function fixPermissionsFolder($dir) {
|
||
if (@is_dir($dir) && TYPO3_OS!='WIN') {
|
||
@chmod($dir, octdec($GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask']));
|
||
if($GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup']) {
|
||
@chdir($file, $GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup']);
|
||
}
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Setting permissions recursively over whole directories
|
||
*
|
||
* @param string Path of the directory to fix
|
||
* @return void
|
||
*/
|
||
function fixPermissionsRecursively($dir) {
|
||
if (@is_dir($dir)) {
|
||
$handle = opendir($dir);
|
||
while (($file = readdir($handle)) != false) {
|
||
if ($file != '.' && $file != '..') {
|
||
if (@is_file($dir.$file)) {
|
||
t3lib_div::fixPermissions($dir.$file);
|
||
} elseif (@is_dir($dir.$file.'/')) {
|
||
//@chmod($dir.$file.'/', octdec($GLOBALS['TYPO3_CONF_VARS']['BE']['folderCreateMask']));
|
||
t3lib_div::fixPermissionsFolder($dir.$file.'/');
|
||
t3lib_div::fixPermissionsRecursively($dir.$file.'/');
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
/**
|
||
* Writes $content to a filename in the typo3temp/ folder (and possibly one or two subfolders...)
|
typo3_src-4.0/typo3/mod/tools/em/class.em_index.php 2006-08-01 14:57:02.000000000 +0200 | ||
---|---|---|
</script>
|
||
';
|
||
echo $this->doc->endPage();
|
||
|
||
t3lib_div::fixPermissionsRecursively(PATH_typo3conf.'l10n/');
|
||
|
||
return '';
|
||
}
|
||