Initial Preview release
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
commit
d11b1d633f
9 changed files with 152 additions and 0 deletions
24
index.php
Normal file
24
index.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue