-
Notifications
You must be signed in to change notification settings - Fork 3
/
login.php
60 lines (52 loc) · 2.42 KB
/
login.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php if(!isset($Translation)){ @header('Location: index.php?signIn=1'); exit; } ?>
<?php include_once("$currDir/header.php"); ?>
<?php if($_GET['loginFailed']){ ?>
<div class="alert alert-danger"><?php echo $Translation['login failed']; ?></div>
<?php } ?>
<div class="row">
<div class="col-sm-6 col-lg-8" id="login_splash">
<!-- customized splash content here -->
</div>
<div class="col-sm-6 col-lg-4">
<div class="panel panel-success">
<div class="panel-heading">
<h1 class="panel-title"><strong><?php echo $Translation['sign in here']; ?></strong></h1>
<?php if(sqlValue("select count(1) from membership_groups where allowSignup=1")){ ?>
<a class="btn btn-success pull-right" href="membership_signup.php"><?php echo $Translation['sign up']; ?></a>
<?php } ?>
<div class="clearfix"></div>
</div>
<div class="panel-body">
<form method="post" action="index.php">
<div class="form-group">
<label class="control-label" for="username"><?php echo $Translation['username']; ?></label>
<input class="form-control" name="username" id="username" type="text" placeholder="<?php echo $Translation['username']; ?>" required>
</div>
<div class="form-group">
<label class="control-label" for="password"><?php echo $Translation['password']; ?></label>
<input class="form-control" name="password" id="password" type="password" placeholder="<?php echo $Translation['password']; ?>" required>
<span class="help-block"><?php echo $Translation['forgot password']; ?></span>
</div>
<div class="checkbox">
<label class="control-label" for="rememberMe">
<input type="checkbox" name="rememberMe" id="rememberMe" value="1">
<?php echo $Translation['remember me']; ?>
</label>
</div>
<div class="row">
<div class="col-sm-offset-3 col-sm-6">
<button name="signIn" type="submit" id="submit" value="signIn" class="btn btn-primary btn-lg btn-block"><?php echo $Translation['sign in']; ?></button>
</div>
</div>
</form>
</div>
<?php if(is_array(getTableList()) && count(getTableList())){ /* if anon. users can see any tables ... */ ?>
<div class="panel-footer">
<?php echo $Translation['browse as guest']; ?>
</div>
<?php } ?>
</div>
</div>
</div>
<script>document.getElementById('username').focus();</script>
<?php include_once("$currDir/footer.php"); ?>