blob: b18f0f21b4a61d25d2b7c74201f426d013906aac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
header("X-Frame-Options: SAMEORIGIN");
require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php";
global $songs; global $_PROFILE; global $favorites; global $privacy;
foreach ($privacy as $item => $_) {
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));
|