24 lines
821 B
PHP
24 lines
821 B
PHP
<!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>
|
|
<?php
|
|
$request_uri = $_SERVER['REQUEST_URI'];
|
|
$filtered_request = urldecode(strtok(substr($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">' . $file . '</span>
|
|
</div>
|
|
</a>';
|
|
}
|
|
?>
|
|
<div class="footer"><a href="https://git.mctaylors.ru/mctaylors/SplatunesNetwork">SplatunesNetwork</a> Preview, exists because it wants to. ©</div>
|
|
</body>
|
|
</html>
|