fedi-tumblr/logout/index.php

4 lines
633 B
PHP
Raw Normal View History

2021-03-27 18:06:08 +00:00
<?phpini_set('display_errors', 1);ini_set("log_errors", 1);
include "../settings.php";include "../include/init.php";include "../include/functions.php";
$cdata = parse_url($setting['url']);
unset($_COOKIE['token']);setcookie('token','',-1,$cdata['path'],$cdata['host']);setcookie('user_settings','',-1,$cdata['path'],$cdata['host']);/*unset ($user_settings['pleroma']);unset ($user_settings['acct']);unset ($user_settings['username']);unset ($user_settings['avatar']);unset ($user_settings['uid']);setrawcookie("user_settings",base64_encode(json_encode($user_settings)),time()+60*60*24*30,'/'); */header('Location: '.$setting['url']);