forked from jameslafferty/MailChimp-Widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailman-widget.php
35 lines (34 loc) · 980 Bytes
/
mailman-widget.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
<?php
/*
Plugin Name: MailMan Widget
Plugin URI: http://labs.phurix.net/projects/wp-mailman-widget
Description: Uses php-mailman to integrate the GNU Mailman mailing list manager with Wordpress.
Author: James Wade
Version: 2.0
Author URI: http://labs.phurix.net/
License: GPL
Donate: http://tinyurl.com/hm2kpaypal
Copyright 2011 James Wade
*/
/**
* Set up the autoloader.
*/
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__) . '/lib/'));
spl_autoload_extensions('.class.php');
if (! function_exists('buffered_autoloader')) {
function buffered_autoloader ($c) {
try {
spl_autoload($c);
} catch (Exception $e) {
$message = $e->getMessage();
return $message;
}
}
}
spl_autoload_register('buffered_autoloader');
/**
* Get the plugin object. All the bookkeeping and other setup stuff happens here.
*/
$ns_mm_plugin = NS_MM_Plugin::get_instance();
register_deactivation_hook(__FILE__, array(&$ns_mm_plugin, 'remove_options'));
//eof