1
2
3
4
5
6
7
8
|
<?php
define('GARRADIN_LOGIN_PROCESS', true);
require_once __DIR__ . '/_inc.php';
$tpl->display('admin/login.tpl');
?>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
<?php
define('GARRADIN_LOGIN_PROCESS', true);
require_once __DIR__ . '/_inc.php';
$error = false;
if (!empty($_POST['login']))
{
if (!utils::CSRF_check('login'))
{
$error = 'OTHER';
}
else
{
if (!empty($_POST['email']) && !empty($_POST['passe'])
&& $membres->login($_POST['email'], $_POST['passe']))
{
utils::redirect('/admin/');
}
$error = 'LOGIN';
}
}
$tpl->assign('error', $error);
$tpl->display('admin/login.tpl');
?>
|