summaryrefslogtreecommitdiff
path: root/api/removeLibrary.php
diff options
context:
space:
mode:
authorRaindropsSys <raindrops@equestria.dev>2023-10-27 22:29:56 +0200
committerRaindropsSys <raindrops@equestria.dev>2023-10-27 22:29:56 +0200
commit4d4308c46d4f7801c657cc79d2243e1a81831334 (patch)
treea2e392e0af92b9a3ca3d1b5afb841640276e2294 /api/removeLibrary.php
parent9f9d66afebc59c6c265c4424f7b8fb36d8876541 (diff)
downloadmist-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/removeLibrary.php')
-rw-r--r--api/removeLibrary.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/api/removeLibrary.php b/api/removeLibrary.php
index 50b283a..901c343 100644
--- a/api/removeLibrary.php
+++ b/api/removeLibrary.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 = array_filter($library, function ($i) {