Restructuring repo
This commit is contained in:
parent
1a8e913f28
commit
436fd4d2cd
85 changed files with 8 additions and 2 deletions
7
src/logout.php
Normal file
7
src/logout.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
setcookie("token", "", 0);
|
||||
require_once('inc/database.php');
|
||||
$db = new DataBase();
|
||||
$db->tokenRemove(base64_decode($_COOKIE['token']));
|
||||
header("Location: /");
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue