Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Created November 2, 2013 13:38
Show Gist options
  • Save josephwegner/7278971 to your computer and use it in GitHub Desktop.
Save josephwegner/7278971 to your computer and use it in GitHub Desktop.
Waltz Login Test Page
<?
session_start();
if(isset($_POST['password']) && isset($_POST['username'])) {
$_SESSION['logged_in'] = true;
}
?>
<html>
<head>
<title>Clef Vault Options</title>
</head>
<body>
<? if(isset($_SESSION['logged_in']) && $_SESSION['logged_in']) { ?>
<script type='text/javascript'>
setTimeout(function() {
$("body").prepend("<div id='logged_in'>We're Logged In!</div>");
}, 5000);
</script>
<? } ?>
<h3>This is just a test login form so that we can test the extension without an internet connection</h3>
<form method="POST">
<label for="username">Username:</label> <input type='text' name='username' placeholder="Username" />
<br>
<label for="password">Password:</label> <input type='password' name='password' />
<br>
<input type='submit' value="Log In" />
</form>
</body>
<script src="jquery.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment