diff options
Diffstat (limited to 'studio/profile-theme/index.php')
-rw-r--r-- | studio/profile-theme/index.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/studio/profile-theme/index.php b/studio/profile-theme/index.php deleted file mode 100644 index c5f2bbc..0000000 --- a/studio/profile-theme/index.php +++ /dev/null @@ -1,17 +0,0 @@ -<?php - -require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; -if (!isset($_PROFILE["ultra"]) || !$_PROFILE["ultra"]) { - header("Location: /"); - die(); -} - -$palettes = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/themes.json"), true); - -if (isset($_GET['id']) && is_numeric($_GET['id']) && (isset($palettes["list"][(int)$_GET["id"]]) || (int)$_GET["id"] === -1)) { - $_PROFILE["studio_settings"]["profile"]["theme"] = (int)$_GET["id"]; - saveProfile(); -} - -header("Location: /studio"); -die();
\ No newline at end of file |