...
This commit is contained in:
46
front/login.php
Executable file
46
front/login.php
Executable file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
require "main.php";
|
||||
|
||||
$spamhasi = new spamhasi();
|
||||
|
||||
if (isset($_GET["action"])) {
|
||||
if ($_GET["action"] == "logout") {
|
||||
setcookie("username", "", time() - 3600, "/");
|
||||
setcookie("session_id", "", time() - 3600, "/");
|
||||
setcookie("device_id", "", time() - 3600, "/");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Spamhasi // Login</title>
|
||||
<link rel="stylesheet" type="text/css" href="login.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="page-content" id="block">
|
||||
<div class="header">
|
||||
<h1>Spamhasi</h1>
|
||||
<h2>Login</h2>
|
||||
</div>
|
||||
<div class="content">
|
||||
<form action="/api/login/getcookies.php" method="post">
|
||||
<div class="page">
|
||||
<?php
|
||||
if (isset($_GET["passwdIsFalse"])) {
|
||||
echo '<p class="message_red">Invalid username or password</p>';
|
||||
}
|
||||
?>
|
||||
|
||||
<input type="text" name="username" placeholder="Username" id="user" required><br><br>
|
||||
<input type="password" name="passwd" placeholder="Password" id="passwd" required><br><br>
|
||||
|
||||
<button type="submit">Login</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user