-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
88 lines (84 loc) · 2.15 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
$dirs = glob("*", GLOB_ONLYDIR);
if (($key = array_search("vendor", $dirs)) !== false) {
unset($dirs[$key]);
}
?>
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Image by Ambratolm</title>
<link rel="stylesheet" href="./pico.min.css">
</head>
<style>
</style>
<body>
<div class="hero">
<!-- Navbar -->
<nav class="container">
<ul>
<li>
<img src="./logo.png" alt="logo">
<strong>Ambratolm</strong>
</li>
</ul>
<ul>
<li>
<a href="https://www.ambratolm.cf/p/links.html"
target="_blank"
class="contrast"
>
✉ Contact
</a>
</li>
</ul>
</nav>
<!-- Content -->
<header class="container">
<article style="margin: 0">
<header>
<hgroup style="margin: 0">
<h4>🎲 Random Image</h4>
<h5>
Pick a random image made by
<a href="" target="_blank" class="contrast">🎨 Ambratolm</a>
</h5>
</hgroup>
</header>
<table>
<thead>
<tr>
<th scope="col">📂 Image Endpoints</th>
<th scope="col">📂 JSON Endpoints</th>
</tr>
</thead>
<tbody>
<?php foreach ($dirs as $dir): ?>
<tr>
<td>
<a href="./<?= $dir ?>" target="_blank" class="contrast">
📁 <?= $dir ?>
</a>
</td>
<td>
<a href="./<?= $dir ?>?json" target="_blank" class="contrast">
🔍 <?= $dir ?>?json
</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<footer>
© <?= date("Y"); ?>
<a href="https://github.com/Ambratolm" target="_blank" class="contrast">
Ambratolm
</a>
</footer>
</article>
</header>
</div>
</body>
</html>