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