X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/78a1c41c40bb216e3879220fc544f8ae816d3c1b..1203cc4e9094fa86f7978c9da56f454d4c21ca32:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 5c5fea7..34c7df8 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -866,6 +866,10 @@ function jirafeau_async_init($filename, $type, $one_time, $key, $time, $ip) return; } + /* touch empty data file */ + $w_path = $p . $ref . '_data'; + touch($w_path); + /* md5 password or empty */ $password = ''; if (!empty($key)) { @@ -1013,7 +1017,7 @@ function jirafeau_async_end($ref, $code, $crypt, $link_name_length, $file_hash_m $l = s2p("$hash_link"); if (!@mkdir(VAR_LINKS . $l, 0755, true) || !rename($link_tmp_name, VAR_LINKS . $l . $hash_link)) { - echo "Error"; + return 'Error'; } /* Clean async upload. */