| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: GoSMTP |
| 4 |
Plugin URI: https://gosmtp.net |
| 5 |
Description: Send emails from your WordPress site using your preferred SMTP provider like Gmail, Outlook, AWS, Zoho, SMTP.com, Brevo (formerly Sendinblue), Mailgun, Postmark, Sendgrid, Sparkpost, Sendlayer or any custom SMTP provider. |
| 6 |
Version: 1.2.1 |
| 7 |
Author: Softaculous Team |
| 8 |
Author URI: https://softaculous.com |
| 9 |
Text Domain: gosmtp |
| 10 |
*/ |
| 11 |
|
| 12 |
/* |
| 13 |
* GoSMTP |
| 14 |
* https://gosmtp.net |
| 15 |
* (c) GoSMTP Team |
| 16 |
*/ |
| 17 |
|
| 18 |
/* |
| 19 |
GoSMTP's Mailer API connecters are derived from Fluent SMTP: |
| 20 |
https://wordpress.org/plugins/fluent-smtp/ |
| 21 |
(C) FluentSMTP & WPManageNinja Team |
| 22 |
|
| 23 |
FluentSMTP is free software; you can redistribute it and/or |
| 24 |
modify it under the terms of the GNU General Public License |
| 25 |
as published by the Free Software Foundation; either version 2 |
| 26 |
of the License, or (at your option) any later version. |
| 27 |
This program is distributed in the hope that it will be useful, |
| 28 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 |
GNU General Public License for more details. |
| 31 |
*/ |
| 32 |
|
| 33 |
// We need the ABSPATH |
| 34 |
if (!defined('ABSPATH')) exit; |
| 35 |
|
| 36 |
if(!function_exists('add_action')){ |
| 37 |
echo 'You are not allowed to access this page directly.'; |
| 38 |
exit; |
| 39 |
} |
| 40 |
|
| 41 |
$gosmtp_tmp_plugins = get_option('active_plugins', []); |
| 42 |
|
| 43 |
if(!defined('SITEPAD') && in_array('gosmtp-pro/gosmtp-pro.php', $gosmtp_tmp_plugins)){ |
| 44 |
|
| 45 |
// Was introduced in 1.0.7 |
| 46 |
$gosmtp_pro_info = get_option('gosmtp_pro_version'); |
| 47 |
|
| 48 |
if(!empty($gosmtp_pro_info) && version_compare($gosmtp_pro_info, '1.0.7', '>=')){ |
| 49 |
// Let GoSMTP load |
| 50 |
|
| 51 |
// Lets check for older versions |
| 52 |
}else{ |
| 53 |
|
| 54 |
if(!function_exists('get_plugin_data')){ |
| 55 |
include_once ABSPATH . 'wp-admin/includes/plugin.php'; |
| 56 |
} |
| 57 |
|
| 58 |
$gosmtp_pro_info = get_plugin_data(WP_PLUGIN_DIR . '/gosmtp-pro/gosmtp-pro.php'); |
| 59 |
|
| 60 |
if(!empty($gosmtp_pro_info) && version_compare($gosmtp_pro_info['Version'], '1.0.7', '<')){ |
| 61 |
return; |
| 62 |
} |
| 63 |
} |
| 64 |
} |
| 65 |
|
| 66 |
// If GOSMTP_VERSION exists then the plugin is loaded already ! |
| 67 |
if(defined('GOSMTP_VERSION')) { |
| 68 |
return; |
| 69 |
} |
| 70 |
|
| 71 |
define('GOSMTP_FILE', __FILE__); |
| 72 |
|
| 73 |
include_once(dirname(__FILE__).'/init.php'); |
| 74 |
|