-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlogout.php
32 lines (32 loc) · 1.15 KB
/
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
<?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- @copyright 2020 U-232 Team ----------*
* ---------------------------------------------*
* ------------ @version V6 ------------------*
*/
require_once(__DIR__.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once(INCL_DIR.'password_functions.php');
dbconn();
/*if(!($CURUSER)) {
die('Error You already logged out you muppet');
exit();
}*/
global $CURUSER;
$hash_please = (isset($_GET['hash_please']) && htmlsafechars($_GET['hash_please']));
$salty_username = isset($CURUSER['username']) ? "{$CURUSER['username']}" : '';
$salty = HashIt($TRINITY20['site']['salt'], $salty_username);
if (empty($hash_please)) {
die("No Hash your up to no good MOFO");
}
if ($hash_please != $salty) {
die("Unsecure Logout - Hash mis-match please contact site admin");
}
logoutcookie();
Header("Location: {$TRINITY20['baseurl']}/");
?>