From ef055e79855cf3be1ad5e1aa5f9ebad480062384 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 1 Jan 2022 10:37:28 +0100 Subject: Bye furries --- admin/api/_demo.php | 5 ---- admin/api/autosave.php | 31 --------------------- admin/api/createURL.php | 20 -------------- admin/api/deleteURL.php | 23 ---------------- admin/api/draftvslive.php | 41 ---------------------------- admin/api/getIpLocation.php | 38 -------------------------- admin/api/getQuota.php | 54 ------------------------------------- admin/api/getUbuntuUpgrades.php | 10 ------- admin/api/getUpdates.php | 26 ------------------ admin/api/ipTest.php | 4 --- admin/api/refreshUpdates.php | 4 --- admin/api/serverLogSummary.php | 8 ------ admin/api/serverTemp.php | 20 -------------- admin/api/serverTime.php | 12 --------- admin/api/setlive.php | 33 ----------------------- admin/api/terminateAllSessions.php | 34 ----------------------- admin/api/terminateGameSessions.php | 23 ---------------- admin/api/terminateWebSessions.php | 23 ---------------- 18 files changed, 409 deletions(-) delete mode 100644 admin/api/_demo.php delete mode 100644 admin/api/autosave.php delete mode 100644 admin/api/createURL.php delete mode 100644 admin/api/deleteURL.php delete mode 100644 admin/api/draftvslive.php delete mode 100644 admin/api/getIpLocation.php delete mode 100644 admin/api/getQuota.php delete mode 100644 admin/api/getUbuntuUpgrades.php delete mode 100644 admin/api/getUpdates.php delete mode 100644 admin/api/ipTest.php delete mode 100644 admin/api/refreshUpdates.php delete mode 100644 admin/api/serverLogSummary.php delete mode 100644 admin/api/serverTemp.php delete mode 100644 admin/api/serverTime.php delete mode 100644 admin/api/setlive.php delete mode 100644 admin/api/terminateAllSessions.php delete mode 100644 admin/api/terminateGameSessions.php delete mode 100644 admin/api/terminateWebSessions.php (limited to 'admin/api') diff --git a/admin/api/_demo.php b/admin/api/_demo.php deleted file mode 100644 index 68b5ad6..0000000 --- a/admin/api/_demo.php +++ /dev/null @@ -1,5 +0,0 @@ - $item) { - if ($ip === $_GET['_']) { - $data = $item; - } -} - -if ($data === null) { - $data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip=' . $arg)); - $ipCache[$_GET['_']] = $data; - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/admin/private/ipcache.json", json_encode($ipCache)); -} - -if ($data["geoplugin_status"] === 404) { - die("" . l("Local IP address", "Adresse IP locale") . ""); -} else { - if ($data["geoplugin_inEU"]) { - die($data["geoplugin_countryName"] . " " . l("EU", "UE") . ""); - } else { - die($data["geoplugin_countryName"]); - } -} \ No newline at end of file diff --git a/admin/api/getQuota.php b/admin/api/getQuota.php deleted file mode 100644 index 1d64737..0000000 --- a/admin/api/getQuota.php +++ /dev/null @@ -1,54 +0,0 @@ - 75) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/100M (" . round($perc, 2) . "%)"); - } else if ($perc > 50) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/100M (" . round($perc, 2) . "%)"); - } else { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/100M (" . round($perc, 2) . "%)"); - } - } else if ($tier === "5") { - $perc = ($parts2[0] / 250000) * 100; - if ($perc > 75) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/250M (" . round($perc, 2) . "%)"); - } else if ($perc > 50) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/250M (" . round($perc, 2) . "%)"); - } else { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/250M (" . round($perc, 2) . "%)"); - } - } else if ($tier === "7") { - $perc = ($parts2[0] / 500000) * 100; - if ($perc > 75) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/500M (" . round($perc, 2) . "%)"); - } else if ($perc > 50) { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/500M (" . round($perc, 2) . "%)"); - } else { - die("" . l("Using", "Utilise") . " " . $parts[0] . "/500M (" . round($perc, 2) . "%)"); - } - } else { - die("" . l("Using", "Utilise") . " " . $parts[0] . ""); - } -} - -die("Unable to calculate data usage"); \ No newline at end of file diff --git a/admin/api/getUbuntuUpgrades.php b/admin/api/getUbuntuUpgrades.php deleted file mode 100644 index ca49f38..0000000 --- a/admin/api/getUbuntuUpgrades.php +++ /dev/null @@ -1,10 +0,0 @@ -Ubuntu " . explode("'", $ret[0])[1] . " is available, use do-release-upgrade to upgrade", "Ubuntu " . explode("'", $ret[0])[1] . " est disponible, exécutez la commande do-release-upgrade pour effectuer la mise à niveau")); -} else { - echo(l("This server is running the latest version of Ubuntu", "Ce serveur exécute la dernière version d'Ubuntu")); -} \ No newline at end of file diff --git a/admin/api/getUpdates.php b/admin/api/getUpdates.php deleted file mode 100644 index 5d9c373..0000000 --- a/admin/api/getUpdates.php +++ /dev/null @@ -1,26 +0,0 @@ - trim($parts[1]), - "version" => [ - "local" => trim(explode("]", explode("[", $parts[2])[1])[0]), - "remote" => trim(explode("(", $parts[3])[1]), - ], - "repos" => trim(explode(":", explode("(", explode("[", trim($package))[1])[1])[1]), - "architecture" => trim(explode("]", explode("[", trim($package))[2])[0]) - ]; - - $data["packages"][] = $pkg; -} - -echo(json_encode($data, JSON_PRETTY_PRINT)); \ No newline at end of file diff --git a/admin/api/ipTest.php b/admin/api/ipTest.php deleted file mode 100644 index 123507e..0000000 --- a/admin/api/ipTest.php +++ /dev/null @@ -1,4 +0,0 @@ -" . $cnt . " " . l("system log messages since last system startup", "messages de journalisation du système depuis le dernier démarrage")); \ No newline at end of file diff --git a/admin/api/serverTemp.php b/admin/api/serverTemp.php deleted file mode 100644 index 613c411..0000000 --- a/admin/api/serverTemp.php +++ /dev/null @@ -1,20 +0,0 @@ -"); -exec("sensors -j", $out); -$outp = implode("\n", $out); -$outd = json_decode($outp, true); - -echo(round($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"], 1)); - -?>°C, 90) { - echo(l("completely overheating!", "en pleine surchauffe !")); -} else if ($outd["cpu_thermal-virtual-0"]["temp1"]["temp1_input"] > 60) { - echo(l("starting to throttle!", "commence à être bridé !")); -} else { - echo(l("under normal temperatures", "températures habituelles")); -} \ No newline at end of file diff --git a/admin/api/serverTime.php b/admin/api/serverTime.php deleted file mode 100644 index a64a39e..0000000 --- a/admin/api/serverTime.php +++ /dev/null @@ -1,12 +0,0 @@ -