/
login.php
62 lines (59 loc) · 2.12 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
61
62
<?php
include("includes/config.inc.php");
include("includes/ezfm_helper.php");
doLoginRoutine();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Signin</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="robots" content="NOINDEX,NOFOLLOW,NONE,NOARCHIVE" />
<!-- jquery jquery-2.xx not suppported by ie8-->
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<!-- /jquery-->
<!-- Boostrap-->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<!-- /Boostrap-->
<!--[if lt IE 9]>
<script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="//oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script>
var lang='<?php echo LANG ?>';
var DEBUG_MODE = '<?php echo DEBUG_MODE; ?>';
$(document).ready(function(){
i18n.init({
lng: lang,
debug: true,
fallbackLng: 'en',
load:'unspecific',
resGetPath: "lng/__ns__-__lng__.json",
ns: {
namespaces: ['translation'],
defaultNs: 'translation'
}
}, function(t) {
$("#all").i18n();
});
});
</script>
<script type='text/javascript' src='js/i18next-1.7.3.min.js'></script>
</head>
<body id="all">
<div class="container">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 col-lg-offset-4 col-md-offset-4 col-sm-offset-4 col-xs-offset-4">
<form role="form" action="" method="post">
<h2 data-i18n='login.pleasesignin'></h2>
<input type="email" name="user" class="form-control" placeholder="Email address" required autofocus>
<input type="password" name="password" class="form-control" placeholder="Password">
<button class="btn btn-lg btn-primary btn-block" type="submit" data-i18n='login.signin'></button>
<?php echo $message ?>
</form>
</div>
</div>
</body>
</html>