Artifact 615f4edde4e8849d1d2f11406333b67fe638a153:
- File www/admin/login.php — part of check-in [87bfee73b4] at 2011-12-12 02:18:59 on branch trunk — Login fonctionnel + ajout champ pseudo (user: bohwaz, size: 516) [annotate] [blame] [check-ins using]
<?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'); ?>