Пример #1
0
} else {
    if (isset($_GET['formLogin-username'])) {
        $username = htmlentities($_GET['formLogin-username']);
        $f->getElement('username')->setValue($username);
    }
}
if (Session::isLoggedIn()) {
    redirect('index.php', 'You are already logged in!');
}
define('TITLE', 'Login to, or Register an account');
require_once 'includes/widgets/header.php';
echo '<div class = "paralellContainer">';
$f->display();
echo '</div>';
echo '<div class = "paralellContainer">';
$fRegister->display();
echo '</div>';
startSidebar();
?>
<div class = "infobox">
	<h2>Why register?</h2>
	<p>If you decide to register, you will be able to submit your own events, get directions and get a personalized list of LAN parties near you in the future.</p>
</div>

<div class = "infobox">
	<h2>Freeeedom!</h2>
	<p>This website was created for those of you who love LAN Parties, either staff, punters or newbies. It is free to create an account and always will be. The site is looked after, if you spot a problem then <strong>please</strong> let us know.</p>
</div>

<p>Having problems logging in or registering a new account? Get in <a href = "contact.php">contact</a>.</p>
<?php