git.p6c8.net
/
jirafeau_mojo42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unprivilidged user, port 8080, docs
[jirafeau_mojo42.git]
/
script.php
diff --git
a/script.php
b/script.php
index 5fe60e2c4829a02000c36ec2006d7418c40c25bd..105023fcc8b7abb726f72e00efa86775d5b985be 100644
(file)
--- a/
script.php
+++ b/
script.php
@@
-126,6
+126,12
@@
if (isset($_FILES['file']) && is_writable(VAR_FILES)
exit;
}
exit;
}
+ // Check if one time download is enabled
+ if (!$cfg['one_time_download'] && isset($_POST['one_time_download'])) {
+ echo 'Error 26: One time download is disabled.';
+ exit;
+ }
+
$res = jirafeau_upload($_FILES['file'],
isset($_POST['one_time_download']),
$key, $time, get_ip_address($cfg),
$res = jirafeau_upload($_FILES['file'],
isset($_POST['one_time_download']),
$key, $time, get_ip_address($cfg),
@@
-409,6
+415,12
@@
elseif (isset($_GET['init_async'])) {
$key = $_POST['key'];
}
$key = $_POST['key'];
}
+ // Check if one time download is enabled
+ if (!$cfg['one_time_download'] && isset($_POST['one_time_download'])) {
+ echo 'Error 26: One time download is disabled.';
+ exit;
+ }
+
$time = time();
if (!isset($_POST['time']) || !$cfg['availabilities'][$_POST['time']]) {
echo 'Error 22';
$time = time();
if (!isset($_POST['time']) || !$cfg['availabilities'][$_POST['time']]) {
echo 'Error 22';
patrick-canterino.de