diff --git a/Caddyfile b/Caddyfile index 1fe8d46..a9977e3 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,5 +1,5 @@ %interface% { - basicauth { + basicauth / { %userpw% } log { output file /var/www/upload.log diff --git a/uploadpage/index.php b/uploadpage/index.php index 4d43aa1..4c96df7 100644 --- a/uploadpage/index.php +++ b/uploadpage/index.php @@ -17,7 +17,7 @@ $headers=getallheaders(); $authuser=$headers['X-User']; if($authuser!==''){ print(' -
+

Stream Upload

User: @@ -26,7 +26,7 @@ if($authuser!==''){
'); } ?> -
+ Target: diff --git a/uploadpage/upload.php b/uploadpage/upload.php index 2818c06..c1c9a6b 100644 --- a/uploadpage/upload.php +++ b/uploadpage/upload.php @@ -8,7 +8,7 @@ if($_SERVER['REQUEST_METHOD']!=='POST'){ function Back($msg){ print('

'.$msg.'

- +
'); exit;