2024-03-14 19:03:53 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="">
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="/assets/common.css" />
|
|
|
|
<link rel="stylesheet" href="/assets/index.css" />
|
|
|
|
<title>SplatunesNetwork Preview</title>
|
|
|
|
<meta name="viewport" content="initial-scale=0.75 user-scalable=no" />
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-03-15 00:10:12 +03:00
|
|
|
<a class="card" href="..">
|
|
|
|
<img src="/assets/svg/arrow_back.svg" alt="" class="svg button" />
|
|
|
|
</a>
|
2024-03-14 19:03:53 +03:00
|
|
|
<?php
|
2024-03-15 00:10:12 +03:00
|
|
|
$filtered_request = urldecode(strtok(substr($_SERVER['REQUEST_URI'], 1), '?'));
|
2024-03-14 19:03:53 +03:00
|
|
|
foreach(glob($filtered_request . '*.mp3') as $file) {
|
|
|
|
echo '<a class="card" href="/' . $file . '">
|
|
|
|
<img src="artwork.jpg" alt="" />
|
|
|
|
<div class="content">
|
2024-03-15 00:10:12 +03:00
|
|
|
<span class="title">' . str_replace($filtered_request, '', $file) . '</span>
|
2024-03-14 19:03:53 +03:00
|
|
|
</div>
|
|
|
|
</a>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="footer"><a href="https://git.mctaylors.ru/mctaylors/SplatunesNetwork">SplatunesNetwork</a> Preview, exists because it wants to. ©</div>
|
|
|
|
</body>
|
|
|
|
</html>
|