You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
if (!defined('ABSPATH')) {
    header('HTTP/1.0 403 Forbidden');
    header('X-Robots-Tag: noindex');
    exit;
}
// define some constant we need. probably already defined.
if (!defined('WP_CONTENT_DIR')) {
    define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
}
if (!defined('WP_CONTENT_URL')) {
    define('WP_CONTENT_URL', site_url('wp-content'));
}
define('MC4WP_VERSION_NUMBER', "1.98.5");
define('MC4WP_PLUGIN_FILE', __FILE__);
define("MC4WP_PLUGIN_DIR", plugin_dir_path(__FILE__));
// Global Functions
require_once MC4WP_PLUGIN_DIR . 'includes/functions.php';
require_once MC4WP_PLUGIN_DIR . 'includes/log-functions.php';
require_once MC4WP_PLUGIN_DIR . 'includes/template-functions.php';
// Initialize Plugin Class
require_once MC4WP_PLUGIN_DIR . 'includes/class-plugin.php';
MC4WP::init();
// Only load the Admin class on admin requests, excluding AJAX.
if (is_admin() && (!defined("DOING_AJAX") || !DOING_AJAX)) {
    // Initialize Admin Class
    require_once MC4WP_PLUGIN_DIR . 'includes/class-admin.php';
    MC4WP_Admin::init();
}