forked from smillie/gas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (38 loc) · 1.3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php require 'ldapconnect.php'; ?>
<?php
if(isset($_SESSION['user'])) {
header( 'Location: details.php' );
}
?>
<?php require 'header.php'; ?>
<div class="container">
<div class="hero-unit span6 offset2" style="text-align: center">
<h1 style="font-size:40px;">GeekSoc Account System</h1>
<form class="form-horizontal" action="login.php" method="post">
<fieldset>
<legend>Login</legend>
<div class="control-group">
<?php if (isset($_GET['error'])) : ?>
<div class="alert alert-error">
<strong>Error:</strong> Username or password is incorrect.
</div>
<?php endif ?>
<label class="control-label" for="uid">Username</label>
<div class="controls">
<input type="text" class="input-xlarge" id="uid" name="uid">
</div>
</div>
<div class="control-group">
<label class="control-label" for="password">Password</label>
<div class="controls">
<input type="password" class="input-xlarge" id="password" name="password">
</div>
</div>
<div class="">
<a href="register.php" class="btn">Join GeekSoc</a>
<button type="submit" name="login" class="btn btn-primary">Login</button>
</div>
</fieldset>
</form>
</div>
<?php require 'footer.php'; ?>