Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions close_session.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
session_start();
session_destroy();
header("Location: index.php");

?>
Binary file added image/yourpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous" defer></script>
<title>Welcome</title>
</head>

<body class="text-center">

<main class="form-signin m-5">

<form method="post" action="./validate.php" class="abs-center w-50 m-auto p-3 mb-2 bg-info text-dark bg-opacity-25">
<img src="image/yourpage.png" class="rounded-circle" width="100" alt="logo_your_page">
<br><br>
<h3>To continue, sign in to YourPage</h3>
<br>
<div class="mb-3 row justify-content-center">
<label for="username" class="col-sm-2 col-form-label">Username:</label>
<div class="col-sm-4">
<input type="text" name="user" class="form-control" id="username">
</div>
</div>
<br>

<div class="mb-3 row justify-content-center">
<label for="inputPassword" class="col-sm-2 col-form-label">Password:</label>
<div class="col-sm-4">
<input type="password" name="password" class="form-control" id="inputPassword">
</div>
</div>
<br>

<?php
if (isset($_GET["msg"]) && $_GET["msg"] === "errorLogin") { ?>
<div class="alert alert-warning alert-dismissible fade show" role="alert">
Username o password is not correct! Please, try again!
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php } ?>


<input class="w-30 btn btn-md btn-info" type="submit" value="Login">

</form>

</main>

</body>
</html>
35 changes: 35 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/@popperjs/core/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading