X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/b83af6c5d98282a856461a9896e9511ca7f22285..beae768cc711c728351b3dccdc780c60d59355a7:/script.php diff --git a/script.php b/script.php index b8c4bcf..434a2c3 100644 --- a/script.php +++ b/script.php @@ -127,12 +127,18 @@ if (isset($_FILES['file']) && is_writable(VAR_FILES) exit; } + if ($cfg['store_uploader_ip']) { + $ip = get_ip_address($cfg); + } else { + $ip = ""; + } + $res = jirafeau_upload( $_FILES['file'], isset($_POST['one_time_download']), $key, $time, - get_ip_address($cfg), + $ip, $cfg['enable_crypt'], $cfg['link_name_length'], $cfg['file_hash'] @@ -461,13 +467,20 @@ elseif (isset($_GET['init_async'])) { break; } } + + if ($cfg['store_uploader_ip']) { + $ip = get_ip_address($cfg); + } else { + $ip = ""; + } + echo jirafeau_async_init( $_POST['filename'], $type, isset($_POST['one_time_download']), $key, $time, - get_ip_address($cfg) + $ip ); } /* Continue an asynchronous upload. */