-
Notifications
You must be signed in to change notification settings - Fork 3
/
filter.php
64 lines (59 loc) · 1.68 KB
/
filter.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
<?php
error_reporting(E_ERROR);
include('config.php');
?>
<!DOCTYPE html>
<html lang="en" data-theme="<?php echo $theme; ?>">
<!-- Author: Dmitri Popov, dmpop@linux.com
License: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt -->
<head>
<title><?php echo $title; ?></title>
<meta charset="utf-8">
<link rel="shortcut icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/lit.css" />
<link rel="stylesheet" href="css/styles.css" />
<style>
a.tag {
text-decoration: none;
text-decoration: none;
padding: 0.2em;
border-radius: 4px;
border: 1px solid;
color: #d400aa;
}
</style>
<!-- Suppress form re-submit prompt on refresh -->
<script>
if (window.history.replaceState) {
window.history.replaceState(null, null, window.location.href);
}
</script>
</head>
<body>
<div class="c">
<div style="text-align: center;">
<img style="display: inline; height: 2.5em; vertical-align: middle;" src="favicon.svg" alt="logo" />
<h1 class="text-center" style="display: inline; margin-left: 0.19em; vertical-align: middle; letter-spacing: 3px; margin-top: 0em; color: #ce6a85ff;"><?php echo $title; ?></h1>
</div>
<div class="text-left">
<?php
if (isset($_GET['filter'])) {
$lines = file($link_file);
foreach ($lines as $line) {
if (strpos($line, $_GET['filter']) !== false) {
echo $line;
}
}
}
?>
</div>
<div style="text-align: center;">
<button class="btn" title="Back" onclick="location.href='index.php'">Back</button>
</div>
<div class="card w-100" style="text-align: center; margin-top: 2em;">
<?php echo $footer; ?>
</div>
</div>
</body>
</html>