diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-10-27 22:29:56 +0200 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-10-27 22:29:56 +0200 |
commit | 4d4308c46d4f7801c657cc79d2243e1a81831334 (patch) | |
tree | a2e392e0af92b9a3ca3d1b5afb841640276e2294 /api/addHistory.php | |
parent | 9f9d66afebc59c6c265c4424f7b8fb36d8876541 (diff) | |
download | mist-4d4308c46d4f7801c657cc79d2243e1a81831334.tar.gz mist-4d4308c46d4f7801c657cc79d2243e1a81831334.tar.bz2 mist-4d4308c46d4f7801c657cc79d2243e1a81831334.zip |
Updated 32 files, added 279 files, deleted 3 files and renamed 14 files (automated)
Diffstat (limited to 'api/addHistory.php')
-rw-r--r-- | api/addHistory.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/addHistory.php b/api/addHistory.php index cc35409..117fc06 100644 --- a/api/addHistory.php +++ b/api/addHistory.php @@ -1,9 +1,10 @@ <?php +header("X-Frame-Options: SAMEORIGIN"); require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $songs; global $_PROFILE; global $history; -if (!isset($_GET["i"])) return; +if (!isset($_GET["i"]) || !isset($songs[$_GET["i"]])) return; $history[] = $_GET["i"]; file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/users/" . $_PROFILE["id"] . "-history.json", json_encode($history));
\ No newline at end of file |