contenido\includes\functions.upl.php
Project:
Contenido Content Management System
Description:
Upload functions
Requirements:
- Author
- Jan Lengowski
- Con_php_req
- 5.0
- Copyright
- four for business AG
- License
- http://www.contenido.org/license/LIZENZ.txt
- Link
- http://www.4fb.de
- Link
- http://www.contenido.org
- Package
- Contenido Backend includes
- Since
- file available since contenido release <= 4.6
{@internal
created 2003-12-28
modified 2008-06-26, Frederic Schneider, add security fix
modified 2008-11-27, Andreas Lindner, add possibility to define additional chars as allowed in file / dir names
modified 2009-03-16, Ingo van Peeren, fixed some sql-statements and a missing parameter in uplRenameDirectory()
modified 2009-10-22, OliverL, fixed uplHasFiles is only one file in directory you can delete Directory
modified 2009-10-29, Murat Purc, replaced deprecated functions (PHP 5.3 ready) and usage of is_dbfs()
$Id: functions.upl.php 1094 2009-11-06 01:22:13Z xmurrix $:
}}
- Version
- 1.3.3
Functions


generateDisplayFilePath(string $sDisplayPath, int $iLimit) : stringFunction reduces long path names and creates a dynamic tooltipp which shows
the full path name on mouseover
Parameters| Name | Type | Description |
|---|
| $sDisplayPath | string |
|
|---|
| $iLimit | int |
- limit of chars which were displayed directly. If the path
string is shorter there will be no tooltipp
|
|---|
Returns| Type | Description |
|---|
| string | - string, which contains short path name and tooltipp if neccessary |
Details- Author
- Timo Trautmann (4fb)


uplGetDirectoriesToExclude() : arrayReturns list of directory names to exclude e.
g. from directory listings.
Returns

uplGetFileIcon( $file) : \IconReturns the icon for a file type
Parameters| Name | Type | Description |
|---|
| $file | | Filename to retrieve the extension for |
|---|
Returns| Type | Description |
|---|
| \Icon | for the file type |


uplGetFileTypeDescription( $extension) : \TextReturns the description for a file type
Parameters| Name | Type | Description |
|---|
| $extension | | Extension to use |
|---|
Returns| Type | Description |
|---|
| \Text | for the file type |


uplSyncDirectory(string $sPath) : voiduplSyncDirectory ($path)
Sync database contents with directory
Parameters| Name | Type | Description |
|---|
| $sPath | string | Specifies the path to scan |
|---|


uplSyncDirectoryDBFS(string $path) : voiduplSyncDirectoryDBFS ($path)
Sync database contents with DBFS
Parameters| Name | Type | Description |
|---|
| $path | string | Specifies the path to scan |
|---|