-
Notifications
You must be signed in to change notification settings - Fork 2
/
qa-plugin.php
64 lines (47 loc) · 2.34 KB
/
qa-plugin.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
59
60
61
62
63
64
<?php
/*
(c) 2012, Michael Khalili
http://www.michaelapproved.com/
File: qa-plugin/mailing-list-manager/qa-plugin.php
Version: 1.5.0
Date: 2012-11-06 00:00:00 GMT
Description: Adds your members email addresses to your MailChimp.com list.
This program 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; either version 2
of the License, or (at your option) any later version.
This program 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.
More about this license: http://www.gnu.org/licenses/gpl-2.0.html
*/
/*
Plugin Name: Mailing List Manager
Plugin URI: http://www.michaelapproved.com/
Plugin Description: Adds your members email addresses to your MailChimp.com list.
Plugin Version: 1.5
Plugin Date: 2012-11-06
Plugin Author: Michael Khalili
Plugin Author URI: http://www.michaelapproved.com/
Plugin License: GPLv2
Plugin Minimum Question2Answer Version: 1.4
*/
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
exit;
}
define('MA_MLM_BASE_PATH', dirname(__FILE__));
//register the event module that deletes the cache files if a change happens.
//qa_register_plugin_module('event', 'qa-ma-mailing-list-manager-event.php', 'qa_ma_mlm_event', 'Mailing List Manager Event Handler');
//admin page
qa_register_plugin_module('module', 'qa-ma-mailing-list-manager-admin.php', 'qa_ma_mlm_admin', 'Mailing List Manager Admin');
//event module that catches new/confirmed member events.
qa_register_plugin_module('event', 'qa-ma-mailing-list-manager-event.php', 'qa_ma_mlm_event', 'Mailing List Manager Event Handler');
//Layer to add checkboxes to registration form
qa_register_plugin_layer('qa-ma-mailing-list-manager-layer.php', 'Mailing List Manager Layer');
//Layer to add checkboxes to registration form
qa_register_plugin_module('page', 'qa-ma-mailing-list-manager-page.php', 'qa_ma_mlm_page', 'Page to export user email for import into 3rd party mailing list program.');
/*
Omit PHP closing tag to help avoid accidental output
*/