-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconnect.php
97 lines (79 loc) · 3.23 KB
/
connect.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php /*
Copyright 2016 Cédric Levieux, Parti Pirate
This file is part of Personae.
Personae is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Personae is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Personae. If not, see <http://www.gnu.org/licenses/>.
*/
include_once("header.php");
require_once("engine/utils/SessionUtils.php");
?>
<div class="container theme-showcase" role="main">
<ol class="breadcrumb">
<li><a href="backoffice.php"><?php echo lang("breadcrumb_backoffice"); ?></a></li>
<li class="active"><?php echo lang("breadcrumb_connect"); ?></li>
</ol>
<div class="well well-sm">
<p>
<?php echo lang("connect_guide"); ?>
</p>
</div>
<form id="formPanel" class="form-horizontal" action="do_login.php" method="post">
<fieldset>
<?php
$referer = "index.php";
if (isset($_GET["referer"]) && $_GET["referer"]) {
$referer = $_GET["referer"];
}
else if (isset($_SERVER["HTTP_REFERER"]) && $_SERVER["HTTP_REFERER"]) {
$referer = $_SERVER["HTTP_REFERER"];
}
?>
<input type="hidden" name="referer" value="<?php echo $referer; ?>" />
<!-- Form Name -->
<legend><?php echo lang("connect_form_legend"); ?></legend>
<input id="mail" name="mail" value="" type="text" class="mailForm" />
<!-- Text input-->
<div class="form-group has-feedback">
<label class="col-md-4 control-label" for="userLoginInput"><?php echo lang("connect_form_loginInput"); ?></label>
<div class="col-md-6">
<input id="userLoginInput" name="login" value="" type="text"
placeholder="" class="form-control input-md">
<span id="userLoginStatus"
class="glyphicon glyphicon-ok form-control-feedback otbHidden" aria-hidden="true"></span>
<p class="help-block"><?php echo lang("connect_form_loginHelp");?></p>
<p id="userLoginHelp" class="help-block otbHidden"></p>
</div>
</div>
<!-- Password input-->
<div class="form-group has-feedback">
<label class="col-md-4 control-label" for="userPasswordInput"><?php echo lang("connect_form_passwordInput"); ?></label>
<div class="col-md-6">
<input id="userPasswordInput" name="password" value="" type="password"
placeholder="" class="form-control input-md">
<span id="passwordStatus" class="glyphicon glyphicon-ok form-control-feedback otbHidden" aria-hidden="true"></span>
<p class="help-block"><?php echo lang("connect_form_passwordHelp");?></p>
</div>
</div>
<!-- Button (Double) -->
<div class="form-group">
<div class="col-md-12 text-center">
<button id="connectButton" name="connectButton" class="btn btn-primary"><?php echo lang("common_connect"); ?></button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="lastDiv"></div>
<script type="text/javascript">
</script>
<?php include("footer.php");?>
</body>
</html>