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/NeutronManage/index.php | |
parent | e3a79df6428799024eac64e9cffbb062317aeb95 (diff) | |
download | main-trunk.tar.gz main-trunk.tar.bz2 main-trunk.zip |
Diffstat (limited to 'admin/NeutronManage/index.php')
-rw-r--r-- | admin/NeutronManage/index.php | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/admin/NeutronManage/index.php b/admin/NeutronManage/index.php deleted file mode 100644 index 0b10034..0000000 --- a/admin/NeutronManage/index.php +++ /dev/null @@ -1,24 +0,0 @@ -<?php
-
-$_OVERRIDEPERMISSION = "neutron";
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.sso.php";
-
-if (isset($_GET['_']) && strpos($_GET['_'], "/") === false) {
- $arg = $_GET['_'];
-} else {
- die();
-}
-
-$webs = scandir("/mnt/minteckrolt-cloud");
-
-if (in_array($arg, $webs)) {
- $token = "madm-" . bin2hex(random_bytes(24));
-
- file_put_contents("/mnt/minteckrolt-cloud/" . $arg . "/data/tokens/" . $token, "");
- setcookie("_NEUTRON_ADMIN_TOKEN", $token, 0, "/", ".minteck.ro.lt", true, true);
-
- header("Location: https://cloud.minteck.ro.lt/" . $arg . "/cms-special/admin/#/home");
- die();
-}
-
-die("Unable to calculate data usage");
\ No newline at end of file |