This commit is contained in:
gitlab.com/pepa65 2022-09-08 17:26:38 +07:00
parent 9bf508deaa
commit ccf1d7aee0
2 changed files with 5 additions and 4 deletions

7
_vars
View File

@ -8,10 +8,11 @@ interface=''
# Timezone for local user
tz='UTC'
# Username/email/password (multiple users allowed)
# Must have at least one Username/password
declare -A umail upw
# Username / Email / Password/Hash (multiple users allowed)
# Must have at least one Username and Email with either Password or Hash
declare -A umail upw uhash
u='username' umail[$u]='email' upw[$u]='password'
u='username' umail[$u]='email' uhash[$u]='$(caddy hash-password)'
# Variables for mailer
user='(smtp login)'

View File

@ -25,7 +25,7 @@ if($authuser!==''){
<td><input class="shiftleft" type="submit" value="Logoff"></td></tr>
</form>');
}
<form action="'.(isset($_SERVER['HTTPS']) ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].'/upload.php" method="post" enctype="multipart/form-data" onsubmit="respond()">');
print('<form action="'.(isset($_SERVER['HTTPS']) ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].'/upload.php" method="post" enctype="multipart/form-data" onsubmit="respond()">');
?>
<tr>
<td>Target:</td>