summaryrefslogtreecommitdiffstats
path: root/index.php
blob: b90d730a35c672534cc6e67034dc1a13ac7929e1 (plain) (blame)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
include 'download_remailers.php';

function getRemailers($type) {
    $remailers = [];
    $file = '/var/www/yamnweb/remailers.txt';
    if (file_exists($file)) {
        $lines = file($file);
        foreach ($lines as $line) {
            $parts = preg_split('/\s+/', $line);
            if (($type == 'E' && !in_array('D', $parts)) || ($type == 'M' && in_array('D', $parts))) {
                $remailers[] = $parts[0];
            }
        }
    }
    return $remailers;
}

$entryRemailers = getRemailers('E');
$middleRemailers = getRemailers('M');
$exitRemailers = getRemailers('E');

// Filtra i remailers per il primo e terzo campo
$allowedEntryExitRemailers = ['paranoyamn', 'yamn', 'yamn2', 'yamn3', 'frell'];
$entryRemailers = array_intersect($entryRemailers, $allowedEntryExitRemailers);
$exitRemailers = array_intersect($exitRemailers, $allowedEntryExitRemailers);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Victor's Yamn Web Interface</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div class="header">
        <div class="logo-frame">
            <img src="logo.png" alt="VHCC Logo">
        </div>
        <div class="title-frame">
            <h1>Victor's Yamn Web Interface</h1>
        </div>
    </div>
    <form action="send_email.php" method="post">
        <label for="entry_remailer">Entry Remailer:</label>
        <select name="entry_remailer" id="entry_remailer">
            <option value="*">Random</option>
            <?php foreach ($entryRemailers as $remailer): ?>
                <option value="<?php echo $remailer; ?>"><?php echo $remailer; ?></option>
            <?php endforeach; ?>
        </select>
        <br>
        <label for="middle_remailer">Middle Remailer:</label>
        <select name="middle_remailer" id="middle_remailer">
            <option value="*">Random</option>
            <?php foreach ($middleRemailers as $remailer): ?>
                <option value="<?php echo $remailer; ?>"><?php echo $remailer; ?></option>
            <?php endforeach; ?>
        </select>
        <br>
        <label for="exit_remailer">Exit Remailer:</label>
        <select name="exit_remailer" id="exit_remailer">
            <option value="*">Random</option>
            <?php foreach ($exitRemailers as $remailer): ?>
                <option value="<?php echo $remailer; ?>"><?php echo $remailer; ?></option>
            <?php endforeach; ?>
        </select>
        <br>
        <label for="from">From:</label>
        <input type="text" name="from" id="from" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
        <br>
        <label for="reply_to">Reply-To:</label>
        <input type="text" name="reply_to" id="reply_to" placeholder="Please use this format: Jane Doe &lt;jane@nowhere.com&gt;">
        <br>
        <label for="to">To:</label>
        <input type="text" name="to" id="to">
        <br>
        <label for="subject">Subject:</label>
        <input type="text" name="subject" id="subject">
        <br>
        <label for="newsgroups">Newsgroups:</label>
        <input type="text" name="newsgroups" id="newsgroups">
        <br>
        <label for="references">References:</label>
        <input type="text" name="references" id="references">
        <br>
        <label for="data">Data:</label>
        <textarea name="data" id="data" rows="30" cols="80"></textarea>
        <br>
        <label for="copies">Number of Copies:</label>
        <input type="number" name="copies" id="copies" min="1" max="3" value="1">
        <br>
        <input type="submit" value="Send Email">
    </form>
    <div class="instructions-frame">
        <h2>About the Interface</h2>
        <p>This web interface is built using the following technologies: HTML5 CSS3 PHP</p>
        <div class="github-link">
            <a href="https://github.com/gabrix73/yamn-web/" target="_blank">
                <img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png" alt="GitHub" width="24" height="24">
                View on GitHub
            </a>
        </div>
        <p>Contact for abuses: <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%61%62%75%73%65%40%76%69%72%65%62%65%6E%74%2E%61%72%74">abuse (at) virebent dot art</a></p>
    </div>
    <footer>
        <p>&copy; 2024 VICTOR - Hostile Communication Center & &#169; FUCK Design All Rights Reserved.</p>
    </footer>
</body>
</html>