2 require_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
25 $this->keepFileUpload($a_hash, $a_field, $a_tmp_name, $a_name,
$a_type, $a_index, $a_sub_index);
40 $a_name = ilUtil::getAsciiFileName($a_name);
42 $tmp_file_name = implode(
43 "~~",
array(session_id(),
48 str_replace(
"/",
"~~",
$a_type),
49 str_replace(
"~~",
"_", $a_name))
54 return $temp_path.$tmp_file_name;
66 if (is_dir($temp_path)) {
67 $temp_files = glob($temp_path .
"/" . session_id() .
"~~" . $hash .
"~~*");
68 if (is_array($temp_files)) {
69 foreach ($temp_files as $full_file) {
70 $file = explode(
"~~", basename($full_file));
78 if (!$_FILES[$field][
"tmp_name"][$idx][$idx2]) {
79 $_FILES[$field][
"tmp_name"][$idx][$idx2] = $full_file;
80 $_FILES[$field][
"name"][$idx][$idx2] =
$name;
81 $_FILES[$field][
"type"][$idx][$idx2] = $type;
82 $_FILES[$field][
"error"][$idx][$idx2] = 0;
83 $_FILES[$field][
"size"][$idx][$idx2] = filesize($full_file);
87 if (!$_FILES[$field][
"tmp_name"][$idx]) {
88 $_FILES[$field][
"tmp_name"][$idx] = $full_file;
89 $_FILES[$field][
"name"][$idx] =
$name;
90 $_FILES[$field][
"type"][$idx] = $type;
91 $_FILES[$field][
"error"][$idx] = 0;
92 $_FILES[$field][
"size"][$idx] = filesize($full_file);
95 if (!$_FILES[$field][
"tmp_name"]) {
96 $_FILES[$field][
"tmp_name"] = $full_file;
97 $_FILES[$field][
"name"] =
$name;
98 $_FILES[$field][
"type"] = $type;
99 $_FILES[$field][
"error"] = 0;
100 $_FILES[$field][
"size"] = filesize($full_file);
107 throw new ilDclException(
'temp dir path "' . $temp_path .
'" is not a directory');
120 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