-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
blockablephrases.php
45 lines (39 loc) · 1.26 KB
/
blockablephrases.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();
$blockablePhrases = CoreDB::getBlockablePhrases();
?>
<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 phrases </h2>
<p>
These are the phrases for which matching users will be auto-blocked or auto-muted if their posts appear in your timeline, in your mentions,
or have them in their user profile. <br/><br/>
They are case-insensitive.
</p>
<table>
<tr>
<th>Blockable phrase</th>
</tr>
<?php
if (!$blockablePhrases) {
echo "Error: could not load list of blockable phrases.";
} else {
foreach ($blockablePhrases as $blockablePhrase) {
echo "<tr><td>" . $blockablePhrase['phrase'] . "</td></tr>";
}
}
?>
</table>
</body>
</html>