Riferimenti per la classe t3lib_basicFileFunctions

Diagramma delle classi per t3lib_basicFileFunctions

Inheritance graph
[legenda]
Lista di tutti i membri.

Membri pubblici

 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)
 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)
 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)
 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)
 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)
 init ($mounts, $f_ext)
 getTotalFileInfo ($wholePath)
 is_allowed ($iconkey, $type)
 checkIfFullAccess ($theDest)
 is_webpath ($path)
 checkIfAllowed ($ext, $theDest, $filename='')
 checkFileNameLen ($fileName)
 is_directory ($theDir)
 isPathValid ($theFile)
 getUniqueName ($theFile, $theDest, $dontCheckForUnique=0)
 checkPathAgainstMounts ($thePath)
 findFirstWebFolder ()
 blindPath ($thePath)
 findTempFolder ()
 cleanDirectoryName ($theDir)
 rmDoubleSlash ($string)
 slashPath ($path)
 cleanFileName ($fileName)
 formatSize ($sizeInBytes)

Attributi pubblici

 $getUniqueNamePrefix = ''
 $maxNumber = 20
 $uniquePrecision = 6
 $maxInputNameLen = 30
 $tempFN = '_temp_'
 $f_ext = Array()
 $mounts = Array()
 $webPath = ''
 $isInit = 0

Descrizione Dettagliata

Definizione alla linea 81 del file class.t3lib_basicfilefunc.php.


Documentazione delle funzioni membro

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::blindPath thePath  ) 
 

Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.

Parametri:
string $thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts
Restituisce:
string The processed input path

Definizione alla linea 360 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $name.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::checkFileNameLen fileName  ) 
 

Returns true if the input filename string is shorter than $this->maxInputNameLen.

Parametri:
string Filename, eg "somefile.html"
Restituisce:
boolean

Definizione alla linea 239 del file class.t3lib_basicfilefunc.php.

Referenziato da t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_newfolder(), e t3lib_extFileFunctions::func_rename().

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfAllowed ext,
theDest,
filename = ''
 

If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)

Parametri:
string File extension, eg. "php" or "html"
string Absolute path for which to test
string Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern]
Restituisce:
boolean True if extension/filename is allowed

Definizione alla linea 229 del file class.t3lib_basicfilefunc.php.

Riferimenti $filename, is_allowed(), is_webpath(), e t3lib_div::verifyFilenameAgainstDenyPattern().

Referenziato da t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_edit(), t3lib_extFileFunctions::func_move(), t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_rename(), e t3lib_extFileFunctions::func_upload().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkIfFullAccess theDest  ) 
 

Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')

Parametri:
string Absolute path
Restituisce:
boolean

Definizione alla linea 195 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e is_webpath().

Referenziato da t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_move(), e t3lib_extFileFunctions::func_unzip().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::checkPathAgainstMounts thePath  ) 
 

Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.

Parametri:
string $thePath MUST HAVE a trailing '/' in order to match correctly with the mounts
Restituisce:
string The key to the first mount found, otherwise nothing is returned.
Vedi anche:
init()

Definizione alla linea 324 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $val, e t3lib_div::isFirstPartOfStr().

Referenziato da t3lib_extFileFunctions::findRecycler(), t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_delete(), t3lib_extFileFunctions::func_edit(), t3lib_extFileFunctions::func_move(), t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_newfolder(), t3lib_extFileFunctions::func_rename(), t3lib_extFileFunctions::func_unzip(), e t3lib_extFileFunctions::func_upload().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanDirectoryName theDir  ) 
 

Removes all dots, slashes and spaces after a path...

Parametri:
string Input string
Restituisce:
string Output string

Definizione alla linea 410 del file class.t3lib_basicfilefunc.php.

Referenziato da t3lib_extFileFunctions::findRecycler(), e is_directory().

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::cleanFileName fileName  ) 
 

Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'

Parametri:
string Input string, typically the body of a filename
Restituisce:
string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_'

Definizione alla linea 443 del file class.t3lib_basicfilefunc.php.

Referenziato da t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_newfolder(), t3lib_extFileFunctions::func_rename(), e t3lib_extFileFunctions::func_upload().

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findFirstWebFolder  ) 
 

Find first web folder (relative to PATH_site.'fileadmin') in filemounts array

Restituisce:
string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned.

Definizione alla linea 340 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, $TYPO3_CONF_VARS, $val, e t3lib_div::isFirstPartOfStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::findTempFolder  ) 
 

Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts

Restituisce:
string Returns the path if found, otherwise nothing if error.

Definizione alla linea 376 del file class.t3lib_basicfilefunc.php.

Riferimenti $k, e $val.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::formatSize sizeInBytes  ) 
 

Formats an integer, $sizeInBytes, to Mb or Kb or just bytes

Parametri:
integer Bytes to be formated
Restituisce:
string Formatted with M,K or    appended.

Definizione alla linea 454 del file class.t3lib_basicfilefunc.php.

Riferimenti $val, e nbsp.

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getTotalFileInfo wholePath  ) 
 

Returns an array with a whole lot of fileinformation.

Parametri:
string Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value.
Restituisce:
array Information about the file in the filepath

Definizione alla linea 150 del file class.t3lib_basicfilefunc.php.

Riferimenti size, e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::getUniqueName theFile,
theDest,
dontCheckForUnique = 0
 

Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders

Parametri:
string The input filename to check
string The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute.
boolean If set the filename is returned with the path prepended without checking whether it already existed!
Restituisce:
string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path.
Vedi anche:
t3lib_TCEmain::checkValue()

Definizione alla linea 281 del file class.t3lib_basicfilefunc.php.

Riferimenti is_directory(), e t3lib_div::split_fileref().

Referenziato da t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_move(), e t3lib_extFileFunctions::func_upload().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::init mounts,
f_ext
 

Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext

A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts

A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see init()) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.

Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);

Parametri:
array Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php)
array Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions']
Restituisce:
void
Vedi anche:
typo3/init.php, t3lib_userAuthGroup::returnFilemounts()

Definizione alla linea 133 del file class.t3lib_basicfilefunc.php.

Riferimenti $f_ext, $mounts, t3lib_div::getIndpEnv(), e t3lib_div::uniqueList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_allowed iconkey,
type
 

Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.

Parametri:
string The extension to check, eg. "php" or "html" etc.
string Either "webspage" or "ftpspace" - points to a key in $this->f_ext
Restituisce:
boolean True if file extension is allowed.

Definizione alla linea 170 del file class.t3lib_basicfilefunc.php.

Riferimenti $type, e t3lib_div::inList().

Referenziato da checkIfAllowed().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_directory theDir  ) 
 

Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.

Parametri:
string Directory path to check
Restituisce:
string Returns the cleaned up directory name if OK, otherwise false.

Definizione alla linea 249 del file class.t3lib_basicfilefunc.php.

Riferimenti cleanDirectoryName(), e isPathValid().

Referenziato da t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_delete(), t3lib_extFileFunctions::func_move(), t3lib_extFileFunctions::func_newfile(), t3lib_extFileFunctions::func_newfolder(), t3lib_extFileFunctions::func_unzip(), t3lib_extFileFunctions::func_upload(), e getUniqueName().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::is_webpath path  ) 
 

Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...

Parametri:
string Absolute path to check
Restituisce:
boolean

Definizione alla linea 209 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::isFirstPartOfStr(), e slashPath().

Referenziato da checkIfAllowed(), e checkIfFullAccess().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::isPathValid theFile  ) 
 

Wrapper for t3lib_div::validPathStr()

Parametri:
string Filepath to evaluate
Restituisce:
boolean True, if no '//', '..' or '\' is in the $theFile
Vedi anche:
t3lib_div::validPathStr()

Definizione alla linea 266 del file class.t3lib_basicfilefunc.php.

Riferimenti t3lib_div::validPathStr().

Referenziato da t3lib_extFileFunctions::findRecycler(), t3lib_extFileFunctions::func_copy(), t3lib_extFileFunctions::func_delete(), t3lib_extFileFunctions::func_move(), e is_directory().

Questo è il grafo delle chiamate per questa funzione:

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::rmDoubleSlash string  ) 
 

Converts any double slashes (//) to a single slash (/)

Parametri:
string Input value
Restituisce:
string Returns the converted string

Definizione alla linea 420 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::slashPath path  ) 
 

Returns a string which has a slash '/' appended if it doesn't already have that slash

Parametri:
string Input string
Restituisce:
string Output string with a slash in the end (if not already there)

Definizione alla linea 430 del file class.t3lib_basicfilefunc.php.

Referenziato da is_webpath().


Documentazione dei dati membri

t3lib_basicFileFunctions::$f_ext = Array()
 

Definizione alla linea 89 del file class.t3lib_basicfilefunc.php.

Referenziato da init().

t3lib_basicFileFunctions::$getUniqueNamePrefix = ''
 

Definizione alla linea 82 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$isInit = 0
 

Definizione alla linea 92 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$maxInputNameLen = 30
 

Definizione alla linea 85 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$maxNumber = 20
 

Definizione alla linea 83 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$mounts = Array()
 

Definizione alla linea 90 del file class.t3lib_basicfilefunc.php.

Referenziato da init().

t3lib_basicFileFunctions::$tempFN = '_temp_'
 

Definizione alla linea 86 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$uniquePrecision = 6
 

Definizione alla linea 84 del file class.t3lib_basicfilefunc.php.

t3lib_basicFileFunctions::$webPath = ''
 

Definizione alla linea 91 del file class.t3lib_basicfilefunc.php.


La documentazione per questa classe è stata generata a partire dai seguenti file:
Generato il Thu Jan 19 15:32:24 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6