logged into db

This commit is contained in:
Václav Šmejkal 2024-05-07 19:15:58 +02:00
parent 15855aacfd
commit 5a190979b1
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -36,15 +36,17 @@
<form method="post">
<div>Uživatelské jméno: <input type="text" maxlength="32" name="username" required><br></div>
<div>Heslo: <input type="text" name="password" required><br></div>
<div id="sub_btn_div"><input id="sub_btn" type="submit" name="sub" value="Přihlásit se"></div>
<div id="sub_btn_div"><input id="sub_btn" type="submit" name="sub"></div>
</form>
</div>
<?php
$secret = fopen("./secret", "r");
$database = mysqli_connect("109.123.243.163", "fht", fgets($secret), "fht");
fclose($secret);
if (isset($_POST["sub"]))
{
//stuff
//echo hash('sha256', $_POST["password"]);
}
?>
</body>