/** * Get things started * * @since 1.5 */ function __construct() { $this->db_name = rcp_get_levels_db_name(); $this->meta_db_name = rcp_get_level_meta_db_name(); $this->db_version = '1.6'; }
global $wpdb; $prefix = is_plugin_active_for_network('restrict-content-pro/restrict-content-pro.php') ? '' : $wpdb->prefix; return apply_filters('rcp_payments_db_name', $prefix . 'rcp_payments'); } /******************************************* * global variables *******************************************/ global $wpdb; // the plugin base directory global $rcp_base_dir; // not used any more, but just in case someone else is $rcp_base_dir = dirname(__FILE__); // load the plugin options $rcp_options = get_option('rcp_settings'); global $rcp_db_name; $rcp_db_name = rcp_get_levels_db_name(); global $rcp_db_version; $rcp_db_version = '1.5'; global $rcp_discounts_db_name; $rcp_discounts_db_name = rcp_get_discounts_db_name(); global $rcp_discounts_db_version; $rcp_discounts_db_version = '1.2'; global $rcp_payments_db_name; $rcp_payments_db_name = rcp_get_payments_db_name(); global $rcp_payments_db_version; $rcp_payments_db_version = '1.4'; /* settings page globals */ global $rcp_members_page; global $rcp_subscriptions_page; global $rcp_discounts_page; global $rcp_payments_page;