From 9337aae8b1c87fad34884dacd5cd79d9591c60db Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 18 Nov 2023 11:34:36 +0100 Subject: Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated) --- pages/api/computername.php | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 pages/api/computername.php (limited to 'pages/api/computername.php') diff --git a/pages/api/computername.php b/pages/api/computername.php deleted file mode 100644 index 477a8e6..0000000 --- a/pages/api/computername.php +++ /dev/null @@ -1,12 +0,0 @@ -= 1688169600) die(); - -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/util/session.inc"; global $isLoggedIn; global $_PROFILE; -if (!$isLoggedIn) header("Location: /-/login") and die(); - -$names = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/computers/names.json"), true); -$names[$_GET["id"]] = $_GET["name"]; -file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/computers/names.json", json_encode($names)); - -die(); \ No newline at end of file -- cgit