This deletes a document by changing visibility to 2, renaming it to filename_DELETED_#id Files/folders that are inside a deleted folder get visibility 2
Tags:
return:
true/false
todo:
now only files/folders in a folder get visibility 2, we should rename them too.
Get the content type of a file by checking the extension We could use mime_content_type() with php-versions > 4.3, but this doesn't work as it should on Windows installations
This function streams a string to the client for download.
You have to ensure that the calling script then stops processing (exit();) otherwise it may cause subsequent use of the page to want to download other pages in php rather than interpreting them.
Tags:
return:
if file doesn't exist, true if stream succeeded
Parameters:
string
$full_string
The string contents
boolean
$forced
Whether "save" mode is forced (or opening directly authorized)
string
$name
The name of the file in the end (including extension)