aboutsummaryrefslogtreecommitdiff
path: root/admin/api/terminateGameSessions.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
committerMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
commitef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch)
treeff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/terminateGameSessions.php
parente3a79df6428799024eac64e9cffbb062317aeb95 (diff)
downloadmain-trunk.tar.gz
main-trunk.tar.bz2
main-trunk.zip
Bye furriesHEADtrunk
Diffstat (limited to 'admin/api/terminateGameSessions.php')
-rw-r--r--admin/api/terminateGameSessions.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/admin/api/terminateGameSessions.php b/admin/api/terminateGameSessions.php
deleted file mode 100644
index 6975e81..0000000
--- a/admin/api/terminateGameSessions.php
+++ /dev/null
@@ -1,23 +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/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();