From e61e581a2b66b0444db01d884465ea913929e343 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Tue, 31 Oct 2023 17:04:34 +0100 Subject: Updated 27 files, added 12 files and deleted 3 files (automated) --- api/savePrivacy.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/savePrivacy.php (limited to 'api/savePrivacy.php') diff --git a/api/savePrivacy.php b/api/savePrivacy.php new file mode 100644 index 0000000..b18f0f2 --- /dev/null +++ b/api/savePrivacy.php @@ -0,0 +1,13 @@ + $_) { + if (isset($_GET[$item]) && ($_GET[$item] === "0" || $_GET[$item] === "1" || $_GET[$item] === "2")) { + $privacy[$item] = (int)$_GET[$item]; + } +} + +file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/users/" . $_PROFILE["id"] . "-privacy.json", json_encode($privacy)); \ No newline at end of file -- cgit