blob: 0881c785f66820e7349bccd7eda6047ef05d661c (
plain)
1
2
3
4
5
6
7
8
9
10
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");
|