auth
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-12-10 19:34:30 +00:00
parent 6e24eaf334
commit ad2b3afa3c
8 changed files with 112 additions and 4 deletions

View File

@@ -51,7 +51,14 @@ switch ($_GET["op"]) {
}
echo "<br>";
}
else echo "EXISTS";
else {
if (empty($data["HTPASSWD"])) echo "EXISTS";
else {
$auth_file = "/tmp/.htpasswd";
file_put_contents($auth_file,base64_decode($data["HTPASSWD"]));
echo "AUTH";
}
}
}
remove_response("$key");
}