function ppc_early_exit() { global $pagenow; $is_admin = is_admin(); if ($is_admin && !empty($pagenow) && in_array($pagenow, array('index-extra.php')) || !function_exists('array_fill_keys') && ppc_error('old_php') || defined('PPC_VERSION') && ppc_error('multiple_pp') || ppc_is_plugin_active('press-permit.php') && ppc_error('pp_legacy_active') || $is_admin && strpos($_SERVER['SCRIPT_NAME'], 'wp-wall-ajax.php') || constant('PP_DEBUG') && $is_admin && ppc_editing_plugin()) { return true; } if (ppc_is_plugin_active('role-scoper.php')) { if (is_admin()) { ppc_error('rs_active'); } else { return true; } } }
function _pp_act_load() { $min_wp_version = '3.4'; require_once dirname(__FILE__) . '/lib/pp_bootstrap_lib.php'; global $wp_version; if (version_compare($wp_version, $min_wp_version, '<')) { ppc_error('old_wp', $min_wp_version); return; } if (defined('WPMU_PLUGIN_DIR') && false !== strpos(__FILE__, WPMU_PLUGIN_DIR)) { define('PPC_ABSPATH', WPMU_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename(PPC_FOLDER)); } elseif (defined('WP_PLUGIN_DIR')) { define('PPC_ABSPATH', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename(PPC_FOLDER)); } else { define('PPC_ABSPATH', WP_CONTENT_DIR . '/plugins/' . PPC_FOLDER); } if (!ppc_early_exit()) { define('PPC_VERSION', '2.1.49'); define('PPC_DB_VERSION', '2.0.1'); global $pp_min_ext_version; $pp_min_ext_version = array('pp-buddypress-role-groups' => '2.1-beta', 'pp-circles' => '2.1.2-beta', 'pp-collaborative-editing' => '2.1.6-beta', 'pp-compatibility' => '2.1.2-beta', 'pp-content-teaser' => '2.0.3-beta', 'pp-custom-post-statuses' => '2.1.5-beta', 'pp-file-url-filter' => '2.1.3-beta', 'pp-import' => '2.1.4', 'pp-membership' => '2.0-beta', 'pp-for-wpml' => '2.0.1-beta'); require_once dirname(__FILE__) . '/pp_load.php'; } }