Exemplo n.º 1
0
function mc4wp_pro_load_plugin()
{
    define('MC4WP_VERSION', '2.7.6');
    define('MC4WP_PLUGIN_FILE', __FILE__);
    define('MC4WP_PLUGIN_DIR', dirname(__FILE__) . '/');
    define('MC4WP_PLUGIN_URL', plugins_url('/', __FILE__));
    // Composer PHP 5.2 compatible autoloader
    require MC4WP_PLUGIN_DIR . '/vendor/autoload_52.php';
    // Global Functions
    require_once MC4WP_PLUGIN_DIR . 'includes/functions/general.php';
    require_once MC4WP_PLUGIN_DIR . 'includes/functions/template.php';
    // Initialize Plugin Class
    require_once MC4WP_PLUGIN_DIR . 'includes/class-plugin.php';
    MC4WP::init();
    $GLOBALS['mc4wp'] = MC4WP::instance();
    // Only load the Admin class on admin requests, excluding AJAX.
    if (is_admin() && (!defined('DOING_AJAX') || !DOING_AJAX)) {
        new MC4WP_Admin();
    }
}
function mc4wp_pro_load_plugin()
{
    define('MC4WP_VERSION', '2.6.2');
    define('MC4WP_PLUGIN_FILE', __FILE__);
    define('MC4WP_PLUGIN_DIR', plugin_dir_path(__FILE__));
    define('MC4WP_PLUGIN_URL', plugins_url('/', __FILE__));
    // Global Functions
    require_once MC4WP_PLUGIN_DIR . 'includes/functions/general.php';
    require_once MC4WP_PLUGIN_DIR . 'includes/functions/template.php';
    // Initialize Plugin Class
    require_once MC4WP_PLUGIN_DIR . 'includes/class-plugin.php';
    MC4WP::init();
    $GLOBALS['mc4wp'] = MC4WP::instance();
    // Only load the Admin class on admin requests, excluding AJAX.
    if (is_admin() && (false === defined('DOING_AJAX') || false === DOING_AJAX)) {
        // Initialize Admin Class
        require_once MC4WP_PLUGIN_DIR . 'includes/admin/class-admin.php';
        new MC4WP_Admin();
    }
}
Exemplo n.º 3
0
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();
}