50                if(!$rbacsystem->checkAccess(
'write', SYSTEM_FOLDER_ID))
 
   56                $upload_dir = 
$lm_set->get(
"cont_upload_dir");
 
   58                if (is_dir($upload_dir) and is_readable($upload_dir))
 
   76                if (!$upload_dir = self::_getUploadDirectory())
 
   82                $handle = opendir($upload_dir);
 
   84                while (
false !== (
$file = readdir($handle)))
 
   86                                $full_path = $upload_dir . 
"/". 
$file;
 
   87                            if (is_file($full_path) and is_readable($full_path))
 
  110                return in_array($a_file, 
$files);
 
  132                                $ilias->raiseError(
$lng->txt(
"upload_error_file_not_found"), $ilias->error_obj->MESSAGE);
 
  147                                $ilias->raiseError(
$lng->txt(
"file_is_infected").
"<br />".
 
  149                                        $ilias->error_obj->MESSAGE);
 
  164                        return copy(
$file, $a_target);
 
An exception for terminatinating execution or to throw for unit testing.
static _getUploadFiles()
Get a list of readable files in the upload directory.
static _copyUploadFile($a_file, $a_target, $a_raise_errors=true)
copy an uploaded file to the target directory (including virus check)
static _checkUploadFile($a_file)
Check if a file exists in the upload directory and is readable.
static _getUploadDirectory()
Get the directory with uploaded files.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static virusHandling($a_file, $a_orig_name="", $a_clean=true)
scan file for viruses and clean files if possible
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file