function ComicPressManager()
 {
     $this->_f = new ComicPressFileOperations();
     $this->scale_method = false;
     $this->gd_processor = false;
     if (extension_loaded("gd")) {
         $this->scale_method = new ComicPressGDProcessing();
         $this->gd_processor = new ComicPressGDProcessing();
     }
     $result = @shell_exec("which convert") . @shell_exec("which identify");
     if (!empty($result)) {
         $this->scale_method = new ComicPressImageMagickProcessing();
     }
     if (function_exists('cpm_wpmu_config_setup')) {
         cpm_wpmu_config_setup($this);
     }
     if (!defined('CPM_DOCUMENT_ROOT')) {
         define('CPM_DOCUMENT_ROOT', $this->calculate_document_root());
     }
     if (!defined("CPM_STRLEN_REALPATH_DOCUMENT_ROOT")) {
         define("CPM_STRLEN_REALPATH_DOCUMENT_ROOT", strlen(realpath(CPM_DOCUMENT_ROOT)));
     }
 }
 function ComicPressConfig()
 {
     if (function_exists('cpm_wpmu_config_setup')) {
         cpm_wpmu_config_setup($this);
     }
 }