Fixed login/register and added logout.php

This commit is contained in:
Joey Lai
2017-01-19 13:11:24 +01:00
parent fddeba821d
commit 049dee6381
10 changed files with 250 additions and 332 deletions

15
website/public/logout.php Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<?php
include("../views/login_head.php");
require_once("../queries/connect.php");
include_once("../queries/login.php");
?>
<body>
<?php
session_start();
unset($_SESSION["userID"]);
header("Location: login.php");
?>
</body>
</html>