-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
blockableurls.php
45 lines (39 loc) · 1.27 KB
/
blockableurls.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
<?php
namespace Antsstyle\NFTCryptoBlocker;
require __DIR__ . '/vendor/autoload.php';
use Antsstyle\NFTCryptoBlocker\Core\Session;
use Antsstyle\NFTCryptoBlocker\Core\CoreDB;
Session::checkSession();
$blockableURLs = CoreDB::getBlockableURLs();
?>
<html>
<head>
<link rel="stylesheet" href="main.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<title>
NFT Artist & Cryptobro Blocker
</title>
<body>
<h2> Blockable URLs </h2>
<p>
These are the URLs for which matching users will be auto-blocked or auto-muted if they post them in your timeline, in your mentions,
or have them in their user profile. <br/><br/>
They are case-insensitive and only match against the hostname of the URL.
</p>
<table>
<tr>
<th>Blockable URL</th>
</tr>
<?php
if (!$blockableURLs) {
echo "Error: could not load list of blockable URLs.";
} else {
foreach ($blockableURLs as $blockableURL) {
echo "<tr><td>" . $blockableURL['url'] . "</td></tr>";
}
}
?>
</table>
</body>
</html>