diff options
Diffstat (limited to 'admin/NeutronManage')
-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 |