modified gamecode, styling of some parts of the website, cleaned up unneeded files and code, added remember me function
This commit is contained in:
parent
b020956466
commit
0055c8ef85
11 changed files with 176 additions and 197 deletions
|
|
@ -8,5 +8,7 @@ $db = new Database($config['database'], $username, $password);
|
|||
if (isset($_POST["submit"])) {
|
||||
$db->login([$_POST["username"], $_POST["password"]]);
|
||||
}
|
||||
|
||||
if (isset($_POST["remember"])) {
|
||||
setcookie("user", $_POST["username"], time() + (86400 * 30), "/");
|
||||
}
|
||||
require "views/login.view.php";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue