blob: a9b88bd79b0439178289e69f4c2efdb47cbacc53 (
plain)
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
|
<?php
include_once "../src/config.php";
?>
<html>
<head>
<title>alright.party</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="container">
<div class="wrapper center big-gap">
<h1><img src="/static/img/brand/big.webp" alt="<?php echo $_SERVER['HTTP_HOST']; ?>"></h1>
<div class="items row" style="gap:32px;">
<a href="/emotes">Emotes</a>
<a href="/users.php">Users</a>
<a href="/emotes/upload.php">Upload</a>
<a href="/account">Account</a>
<a href="/software">Chat clients</a>
</div>
<form action="/emotes/search.php" method="get" class="row">
<input type="text" name="q">
<button type="submit">Search</button>
</form>
<div class="counter">
<?php
$db = new PDO(DB_URL, DB_USER, DB_PASS);
$results = $db->query("SELECT COUNT(*) FROM emotes");
$count = $results->fetch()[0];
foreach (str_split($count) as $c) {
echo "<img src=\"/static/img/counter/$c.png\" alt=\"\" />";
}
?>
</div>
<p style="font-size:12px;">Serving <?php echo $count ?> gorillion emotes - Running <a
href="https://github.com/ilotterytea/alrighttv">AlrightTV v0.1</a></p>
</div>
</div>
</body>
</html>
|