diff options
author | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-01 10:37:28 +0100 |
commit | ef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch) | |
tree | ff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/terminateAllSessions.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.gz main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.bz2 main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.zip |
Diffstat (limited to 'admin/api/terminateAllSessions.php')
-rw-r--r-- | admin/api/terminateAllSessions.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/admin/api/terminateAllSessions.php b/admin/api/terminateAllSessions.php deleted file mode 100644 index 46c1b33..0000000 --- a/admin/api/terminateAllSessions.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-if (isset($_GET['_']) && strpos($_GET['_'], "/") === false) {
- $arg = $_GET['_'];
-} else {
- die();
-}
-
-$webs = scandir("/mnt/kartik/online/private/tokens");
-
-foreach ($webs as $webt) {
- if (!is_dir("/mnt/kartik/online/private/tokens/" . $webt)) {
- $d = json_decode(file_get_contents("/mnt/kartik/online/private/tokens/" . $webt), true);
- if ($d["id"] === $arg) {
- unlink("/mnt/kartik/online/private/tokens/" . $webt);
- }
- }
-}
-
-$webs = scandir("/mnt/kartik/online/private/gametokens");
-
-foreach ($webs as $webt) {
- if (!is_dir("/mnt/kartik/online/private/gametokens/" . $webt)) {
- $d = json_decode(file_get_contents("/mnt/kartik/online/private/gametokens/" . $webt), true);
- if ($d["id"] === $arg) {
- unlink("/mnt/kartik/online/private/gametokens/" . $webt);
- }
- }
-}
-
-header("Location: /admin/panes/kartik.php");
-die();
\ No newline at end of file |