Created
November 2, 2013 13:38
-
-
Save josephwegner/7278971 to your computer and use it in GitHub Desktop.
Waltz Login Test Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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