static function init()
 {
     $klass = get_class();
     return self::$instance = new $klass();
 }
 function _load_non_pope()
 {
     // Load caching component
     include_once 'non_pope/class.photocrati_transient_manager.php';
     if (isset($_REQUEST['ngg_flush']) or isset($_REQUEST['ngg_flush_expired'])) {
         C_Photocrati_Transient_Manager::flush();
         die("Flushed all caches");
     }
     // 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::get_instance('displayed_gallery_rendering');
     C_Photocrati_Cache::$enabled = PHOTOCRATI_CACHE;
     if (isset($_REQUEST['ngg_flush'])) {
         C_Photocrati_Cache::flush('all');
         die("Flushed all caches");
     } 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);
         die("Flushed all expired items from the cache");
     }
     // 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 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';
 }