function _load_non_pope() { // Load WordPress pluggables for plugin compatibility include_once path_join(ABSPATH, 'wp-includes/pluggable.php'); // Load caching component include_once 'non_pope/class.photocrati_cache.php'; C_Photocrati_Cache::$enabled = TRUE; if (isset($_REQUEST['ngg_flush'])) { C_Photocrati_Cache::flush('all'); $_SERVER['QUERY_STRING'] = str_replace('ngg_flush=1', '', $_SERVER['QUERY_STRING']); } elseif (isset($_REQUEST['ngg_force_update'])) { C_Photocrati_Cache::$do_not_lookup = TRUE; C_Photocrati_Cache::$force_update = TRUE; $_SERVER['QUERY_STRING'] = str_replace('ngg_force_update=1', '', $_SERVER['QUERY_STRING']); } // Load Settings Manager include_once 'non_pope/class.photocrati_settings_manager.php'; include_once 'non_pope/class.nextgen_settings.php'; C_Photocrati_Global_Settings_Manager::$option_name = $this->_settings_option_name; C_Photocrati_Settings_Manager::$option_name = $this->_settings_option_name; // Load the installer include_once 'non_pope/class.photocrati_installer.php'; // Load the resource manager include_once 'non_pope/class.photocrati_resource_manager.php'; C_Photocrati_Resource_Manager::init(); // Load the style manager include_once 'non_pope/class.nextgen_style_manager.php'; // Load the shortcode manager include_once 'non_pope/class.nextgen_shortcode_manager.php'; }
function _load_non_pope() { // Load caching component include_once 'non_pope/class.photocrati_cache.php'; C_Photocrati_Cache::get_instance(); C_Photocrati_Cache::get_instance('displayed_galleries'); C_Photocrati_Cache::$enabled = TRUE; if (isset($_REQUEST['ngg_flush'])) { C_Photocrati_Cache::flush('all'); $_SERVER['QUERY_STRING'] = str_replace('ngg_flush=1', '', $_SERVER['QUERY_STRING']); } elseif (isset($_REQUEST['ngg_force_update'])) { C_Photocrati_Cache::$do_not_lookup = TRUE; C_Photocrati_Cache::$force_update = TRUE; $_SERVER['QUERY_STRING'] = str_replace('ngg_force_update=1', '', $_SERVER['QUERY_STRING']); } elseif (isset($_REQUEST['ngg_flush_expired'])) { C_Photocrati_Cache::flush('all', TRUE); $_SERVER['QUERY_STRING'] = str_replace('ngg_flush_expired=1', '', $_SERVER['QUERY_STRING']); } // Load Settings Manager include_once 'non_pope/class.photocrati_settings_manager.php'; include_once 'non_pope/class.nextgen_settings.php'; C_Photocrati_Global_Settings_Manager::$option_name = $this->_settings_option_name; C_Photocrati_Settings_Manager::$option_name = $this->_settings_option_name; // Load the installer include_once 'non_pope/class.photocrati_installer.php'; // Load the resource manager include_once 'non_pope/class.photocrati_resource_manager.php'; C_Photocrati_Resource_Manager::init(); // Load the style manager include_once 'non_pope/class.nextgen_style_manager.php'; // Load the shortcode manager include_once 'non_pope/class.nextgen_shortcode_manager.php'; }