Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
golden/index.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
69 lines (55 sloc)
1.9 KB
This file contains 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
<?php | |
require_once('includes/config.php'); | |
?> | |
<?php include("./layout/header.php");?> | |
<div class="main-content"> | |
<form class="form-login" role="form" method="post" action="summary.php"> | |
<?php if (isset($error) > 0): ?> | |
<div class="error"> | |
<?php foreach ($error as $error): ?> | |
<p><?php echo $error ?> | |
</p> | |
<?php endforeach?> | |
</div> | |
<?php endif?> | |
<?php | |
if (isset($_GET['action'])) { | |
switch ($_GET['action']) { | |
case 'active': | |
echo "<p class='success'>Your account is now active you may now log in.</p>"; | |
break; | |
case 'reset': | |
echo "<p class='success'>Please check your inbox for a reset link.</p>"; | |
break; | |
case 'resetAccount': | |
echo "<p class='success'>Password changed, you may now login.</p>"; | |
break; | |
} | |
}?> | |
<div class="form-log-in-with-email"> | |
<div class="form-white-background"> | |
<div class="form-title-row"> | |
<h1>Log in</h1> | |
</div> | |
<div class="form-row"> | |
<label><span>Email</span> <input id="email" name="email" placeholder="Email Address" tabindex="1" type="email" value=" <?php if (isset($error)) { | |
echo htmlspecialchars($_POST['email'], ENT_QUOTES); | |
}?>"></label> | |
</div> | |
<div class="form-row"> | |
<label><span>Password</span> <input id="password" name="password" placeholder="Password" tabindex="2" type="password"></label> | |
</div> | |
<div class="form-row"> | |
<button type="submit" name="submit">Submit</button> | |
</div> | |
<a href="reset.php" class="form-forgotten-password">Forgotten password ·</a> | |
<br /> <br /> | |
<a href='register.php' class="form-create-an-account">Don't have an Account? Create one →</a> | |
</div> | |
</div> | |
</form> | |
</div> | |
<?php | |
//include header template | |
require('layout/footer.php'); | |
?> |