/
login.php
30 lines (28 loc) · 1.27 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
<?
/***************************************************************************
* login.php
* -------------------
* begin : Friday, Mar 28, 2008
* copyright : (C) 2008 J. David Baker
* email : me@jdavidbaker.com
*
***************************************************************************/
/***************************************************************************
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
session_name('FOFCONSCRIPTOR');
session_start();
$_SESSION['fof_draft_login_team_name'] = $_POST['team_name'];
$_SESSION['fof_draft_login_team_password'] = md5($_POST['team_password']);
if ($_POST['save_login']) {
setcookie("fof_draft_login_team_name", $_POST['team_name'], strtotime("+30 days"));
setcookie("fof_draft_login_team_password", md5($_POST['team_password']), strtotime("+30 days"));
}
header("Location: ./selections.php");
exit;
?>