fedi-tumblr/logout/index.php

11 lines
376 B
PHP
Raw Normal View History

2021-03-31 21:17:50 +00:00
<?php
ini_set('display_errors', 1);
ini_set("log_errors", 1);
include "../settings.php";
include "../include/init.php";
include "../include/functions.php";
2021-03-27 18:06:08 +00:00
$cdata = parse_url($setting['url']);
2021-03-31 21:17:50 +00:00
unset($_COOKIE['token']);
setcookie('token','',-1,$cdata['path'],$cdata['host']);
setcookie('user_settings','',-1,$cdata['path'],$cdata['host']);
header('Location: '.$setting['url']);