Skip to content

Instantly share code, notes, and snippets.

@ronsen
Last active November 1, 2023 13:10
Show Gist options
  • Save ronsen/f7914755d45b45d776bf6ffbd711291c to your computer and use it in GitHub Desktop.
Save ronsen/f7914755d45b45d776bf6ffbd711291c to your computer and use it in GitHub Desktop.
Fake wordpress login page
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Log In</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css">
</head>
<body>
<main class="container">
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') : ?>
<div class="headings">
<h2>Success!</h2>
<h3>You're successfully logged in.</h3>
</div>
<?php else : ?>
<h3>Log In</h3>
<form method="post">
<label for="user_login">Username or Email Address</label>
<input type="text" id="user_login" name="log" required autofocus>
<label for="user_pass">Password</label>
<input type="password" name="pwd" id="user_pass" required>
<button type="submit">Log In</button>
</form>
<?php endif; ?>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment