-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathresend_subscription_confirmation.php
58 lines (52 loc) · 1.77 KB
/
resend_subscription_confirmation.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
<?php
// This file is part of Olam Autoresponder.
// Copyright (c) 2004-2007 Aaron Colman and Adaptive Business Design.
// Copyright (c) 2016 Anna Burdette, Benjamin Jobson, and David Reed.
//
// Olam Autoresponder is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.
//
// Olam Autoresponder is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Olam Autoresponder. If not, see <http://www.gnu.org/licenses/>.
require_once('subscriptions_common.php');
# Pull info
if (!(responderExists($Responder_ID))) {
redirectTo('/../admin.php');
}
getResponderInfo();
if ((getSubscriberInfo($Subscriber_ID)) == FALSE) {
redirectTo('/../admin.php');
}
# Open template
if ($SilentMode != 1) {
include('templates/open.page.php');
}
# Handle the action
if ($action == "resend_sub_conf") {
sendMessageTemplate('templates/subscribe.confirm.txt');
if ($SilentMode != 1) {
print "<br />Subscription confirmation message sent!<br />\n";
}
} elseif ($action == "resend_unsub_conf") {
sendMessageTemplate('templates/unsubscribe.confirm.txt');
if ($SilentMode != 1) {
print "<br />Unsubscribe confirmation message sent!<br />\n";
}
}
# Back to admin button
$return_action = 'sub_edit';
if ($SilentMode != 1) {
include('templates/admin_button.subhandler.php');
}
# Close template
if ($SilentMode != 1) {
copyright();
include('templates/close.page.php');
}
die();