This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
60 lines (58 loc) · 2.06 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
require_once(__DIR__ . '/class/autoload.inc.php');
try {
if (!\FabLabRomagna\Firewall::controllo()) {
\FabLabRomagna\Firewall::firewall_redirect();
}
if (\FabLabRomagna\Autenticazione::get_sessione_attiva() !== null) {
header('Location: /dashboard.php');
exit();
}
} catch (Exception $e) {
\FabLabRomagna\Log::crea(null, 3, '/login.php', 'page_request',
'Impossibile completare la richiesta.', (string)$e);
reply(500, 'Internal Server Error');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php
$titolo_pagina = 'Accesso';
require_once('./inc/header.inc.php');
?>
</head>
<body>
<?php
include_once('./inc/nav.inc.php');
?>
<div class="contenuto">
<h1 class="title is-1 has-text-centered">Accesso</h1>
<div class="container is-fluid">
<div class="columns">
<form action="/ajax/accesso.php" method="post" class="column is-4 is-offset-4 has-text-centered">
<div class="field">
<div class="control">
<input class="input is-primary" type="text" name="email" placeholder="E-Mail"/>
</div>
</div>
<div class="field">
<div class="control">
<input class="input is-primary" type="password" name="password" placeholder="Password"/>
</div>
</div>
<a class="is-block" href="/me/recupero.php" style="margin-bottom: 10px;">Ho dimenticato la
password</a>
<?php
include('./inc/captcha.php');
?>
<button class="button is-primary">Accedi</button>
</form>
</div>
</div>
</div>
<?php
include_once('inc/footer.inc.php');
?>
</body>
</html>