diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-29 22:27:20 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-29 22:27:20 +0100 |
commit | 747d8f88d5a635ba68b3f6288fb8d1f3fe48f83d (patch) | |
tree | 66101947d417a29099b1be462ec3029a7a092657 /api/hasVideo.php | |
parent | 6f6a92041aae1577a963af9c3a31b46950e15f40 (diff) | |
download | mist-747d8f88d5a635ba68b3f6288fb8d1f3fe48f83d.tar.gz mist-747d8f88d5a635ba68b3f6288fb8d1f3fe48f83d.tar.bz2 mist-747d8f88d5a635ba68b3f6288fb8d1f3fe48f83d.zip |
Updated 19 files, added 5 files and deleted app/studio.php (automated)
Diffstat (limited to 'api/hasVideo.php')
-rw-r--r-- | api/hasVideo.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/api/hasVideo.php b/api/hasVideo.php new file mode 100644 index 0000000..0881c78 --- /dev/null +++ b/api/hasVideo.php @@ -0,0 +1,11 @@ +<?php + +header("X-Frame-Options: SAMEORIGIN"); +header("Content-Type: application/json"); +require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $songs; + +if (!isset($_GET["id"]) || !isset($songs[$_GET["id"]])) { + die(); +} + +die(file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/content/" . $_GET["id"] . ".webm") ? "true" : "false");
\ No newline at end of file |