-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpost-by-email.php
56 lines (46 loc) · 2.11 KB
/
post-by-email.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
<?php
/**
* Post By Email Plugin
*
* @package PostByEmail
* @author Kat Hagan <[email protected]>
* @license GPL-2.0+
* @copyright 2013-2015 Kat Hagan / Automattic
* @link https://github.com/codebykat/wp-post-by-email/
*
* @wordpress-plugin
* Plugin Name: Post By Email
* Plugin URI: https://github.com/codebykat/wp-post-by-email/
* Description: Create new posts on your WordPress blog by sending email to a specific email address.
* Version: 1.1
* Author: Kat Hagan
* Author URI: http://profiles.wordpress.org/codebykat
* Text Domain: post-by-email
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /lang
*/
/* Copyright 2013-2015 Kat Hagan (email : [email protected]) / Automattic
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
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.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once( plugin_dir_path( __FILE__ ) . 'class-post-by-email.php' );
register_activation_hook( __FILE__, array( 'Post_By_Email', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Post_By_Email', 'deactivate' ) );
if ( is_admin() ) {
require_once( plugin_dir_path( __FILE__ ) . 'class-post-by-email-admin.php' );
Post_By_Email_Admin::get_instance();
}
require_once( plugin_dir_path( __FILE__ ) . 'include/array_replace_recursive.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-post-by-email-mailserver.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-post-by-email-mailserver-horde.php' );
require_once( plugin_dir_path( __FILE__ ) . 'class-post-by-email-mailserver-imap.php' );
Post_By_Email::get_instance();