-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubscribe.php
More file actions
77 lines (66 loc) · 3.07 KB
/
Copy pathsubscribe.php
File metadata and controls
77 lines (66 loc) · 3.07 KB
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
<?php
require 'CaptchasDotNet.php';
$captchas = new CaptchasDotNet ('arf20', '7QOD8AEp5n9ib5bp',
'/tmp/captchasnet-random-strings','3600',
'abcdefghkmnopqrstuvwxyz','6',
'240','80','000088');
if (!isset($_GET["list"]) || empty($_GET["list"])) {
die("List required");
}
$list = $_GET["list"];
$domain = "arf20.com"
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>ARFNET Lists</title>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<header><a href="https://arf20.com/">
<img src="arfnet_logo.png" width="64"><span class="title"><strong>ARFNET</strong></span>
</a></header>
<hr>
<main>
<h2><a href="/">Back</a></h2>
<div class="wrapper">
<h1><?php echo $list; ?></h1>
<h2>Subscription</h2>
<form action="mlmmj.php" method="post">
<label>Email</label><br>
<input type="email" name="email"><br>
<input name="mailinglist" type="hidden" value="<?php echo $list."@".$domain; ?>">
<input name="job" type="hidden" value="subscribe">
<input name="redirect_failure" type="hidden" value="/error.html">
<input name="redirect_success" type="hidden" value="/">
<input type="hidden" name="random" value="<?= $captchas->random () ?>" />
<label>Captcha</label><br>
<input name="captcha" size="6" /><br>
<br><input type="submit" value="Subscribe">
</form>
<h2>Unsubscription</h2>
<form action="mlmmj.php" method="post">
<label>Email</label><br>
<input type="email" name="email"><br>
<input name="mailinglist" type="hidden" value="<?php echo $list."@".$domain; ?>">
<input name="job" type="hidden" value="unsubscribe">
<input name="redirect_failure" type="hidden" value="/error.html">
<input name="redirect_success" type="hidden" value="/">
<input type="hidden" name="random" value="<?= $captchas->random () ?>" />
<label>Captcha</label><br>
<input name="captcha" size="6" /><br>
<br><input type="submit" value="Subscribe">
</form>
<br><br>
<?= $captchas->image () ?> <a href="javascript:captchas_image_reload('captchas.net')"><br>Reload Image</a>
<hr>
<h2>E-mail based subscription</h2>
<ul>
<li>To subscribe to <?php echo $list; ?>, send a message to <?php echo $list; ?>+subscribe@arf20.com</li>
<li>To unsubscribe, send a message to <?php echo $list; ?>+unsubscribe@arf20.com</li>
</ul>
</div>
</main>
</body>
</html>