Revision 1601
Added by Dietmar almost 13 years ago
functions.php | ||
---|---|---|
38 | 38 |
if(substr($directory,-1) == "/") { |
39 | 39 |
$directory = substr($directory,0,-1); |
40 | 40 |
} |
41 |
// If suplied dirname is a file then unlink it
|
|
41 |
// If suplied dirname is a file then unlink it |
|
42 | 42 |
if (is_file( $directory )) { |
43 |
return unlink($directory); |
|
43 |
$retval = unlink($directory); |
|
44 |
clearstatcache(); |
|
45 |
return $retval; |
|
44 | 46 |
} |
45 | 47 |
if(!file_exists($directory) || !is_dir($directory)) { |
46 | 48 |
return false; |
... | ... | |
57 | 59 |
rm_full_dir($path); |
58 | 60 |
} else { |
59 | 61 |
unlink($path); |
62 |
clearstatcache(); |
|
60 | 63 |
} |
61 | 64 |
} |
62 | 65 |
} |
Also available in: Unified diff
little designfix in forgot_form.php
fix media if uploading zip files with folder, than create FolderProtectFiles