26 $this->keepFileUpload($a_hash, $a_field, $a_tmp_name, $a_name,
$a_type, $a_index, $a_sub_index);
42 $a_name = ilUtil::getAsciiFileName($a_name);
44 $tmp_file_name = implode(
51 str_replace(
"/",
"~~",
$a_type),
52 str_replace(
"~~",
"_", $a_name))
57 return $temp_path . $tmp_file_name;
70 if (is_dir($temp_path)) {
71 $temp_files = glob($temp_path .
"/" . session_id() .
"~~" . $hash .
"~~*");
72 if (is_array($temp_files)) {
73 foreach ($temp_files as $full_file) {
74 $file = explode(
"~~", basename($full_file));
82 if (!$_FILES[$field][
"tmp_name"][$idx][$idx2]) {
83 $_FILES[$field][
"tmp_name"][$idx][$idx2] = $full_file;
84 $_FILES[$field][
"name"][$idx][$idx2] =
$name;
85 $_FILES[$field][
"type"][$idx][$idx2] =
$type;
86 $_FILES[$field][
"error"][$idx][$idx2] = 0;
87 $_FILES[$field][
"size"][$idx][$idx2] = filesize($full_file);
91 if (!$_FILES[$field][
"tmp_name"][$idx]) {
92 $_FILES[$field][
"tmp_name"][$idx] = $full_file;
93 $_FILES[$field][
"name"][$idx] =
$name;
94 $_FILES[$field][
"type"][$idx] =
$type;
95 $_FILES[$field][
"error"][$idx] = 0;
96 $_FILES[$field][
"size"][$idx] = filesize($full_file);
99 if (!$_FILES[$field][
"tmp_name"]) {
100 $_FILES[$field][
"tmp_name"] = $full_file;
101 $_FILES[$field][
"name"] =
$name;
102 $_FILES[$field][
"type"] =
$type;
103 $_FILES[$field][
"error"] = 0;
104 $_FILES[$field][
"size"] = filesize($full_file);
111 throw new ilDclException(
'temp dir path "' . $temp_path .
'" is not a directory');
125 if (file_exists($file)) {
Create styles array
The data for the language used.
static getDataDir()
get data directory (outside webspace)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file