-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
35 lines (34 loc) · 982 Bytes
/
logout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
require_once 'config/config.php';
if (isset($_GET['action'])) {
if ($_GET['action'] == 'discord-logout') {
destroyCookiesAndSessions();
if ($_GET['reason'] == 'change') {
header('Location: ./login?action=login&error=access-change');
} else {
header('Location: .');
}
die();
}
if ($_GET['action'] == 'facebook-logout') {
destroyCookiesAndSessions();
if ($_GET['reason'] == 'change') {
header('Location: ./login?action=login&error=access-change');
} else {
header('Location: .');
}
die();
}
if ($_GET['action'] == 'native-logout') {
destroyCookiesAndSessions();
if ($_GET['reason'] == 'change') {
header('Location: ./login?action=login&error=access-change');
} else {
header('Location: .');
}
die();
}
}
destroyCookiesAndSessions();
header('Location: .');
die;