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/addLibrary.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/addLibrary.php')
-rw-r--r-- | api/addLibrary.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/addLibrary.php b/api/addLibrary.php index 6c0633c..b59e476 100644 --- a/api/addLibrary.php +++ b/api/addLibrary.php @@ -1,9 +1,10 @@ <?php +header("X-Frame-Options: SAMEORIGIN"); require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; -global $songs; global $_PROFILE; global $library; +global $albums; global $_PROFILE; global $library; -if (!isset($_GET["i"])) return; +if (!isset($_GET["i"]) || !isset($albums[$_GET["i"]])) return; if (!in_array($_GET["i"], $library)) { $library[] = $_GET["i"]; |