function __construct($base_plugin_file, $code_name, $name, $version)
 {
     require_once dirname(__FILE__) . '/all_around_main_class.php';
     define('all_around_ABSPATH', ABSPATH);
     $this->wrapper_class_file = __FILE__;
     $this->base_plugin_file = $base_plugin_file;
     $this->plugin_code_name = $code_name;
     $this->plugin_name = $name;
     $this->plugin_version = $version;
     $this->wp_version = get_bloginfo('version');
     $version35 = all_around_main_class::version_to_number('3.5');
     $current_version = all_around_main_class::version_to_number($this->wp_version);
     if ($current_version >= $version35) {
         $this->uploader_type = 2;
     } else {
         $this->uploader_type = 1;
     }
     $this->ajax_receiver = 'admin-ajax.php';
     $this->ajax_action_param = 'action';
     $this->ajax_save_handler = 'all_around_save';
     $this->ajax_preview_handler = 'all_around_preview';
     if ($this->is_admin()) {
         $mode = 'backend';
     } else {
         $mode = 'frontend';
     }
     $this->main_object = new all_around_main_class($this, __FILE__, $code_name, $name, $version, $mode);
     if ($mode == 'backend') {
         $this->main_object->backend_init();
         $this->backend_init();
     } else {
         $this->main_object->frontend_init();
         $this->frontend_init();
     }
 }
 function __construct($base_plugin_file, $code_name, $name, $version)
 {
     require_once dirname(__FILE__) . '/all_around_main_class.php';
     define('all_around_ABSPATH', ABSPATH);
     $this->wrapper_class_file = __FILE__;
     $this->base_plugin_file = $base_plugin_file;
     $this->plugin_code_name = $code_name;
     $this->plugin_name = $name;
     $this->plugin_version = $version;
     $this->wp_version = get_bloginfo('version');
     $version35 = all_around_main_class::version_to_number('3.5');
     $current_version = all_around_main_class::version_to_number($this->wp_version);
     if ($current_version >= $version35) {
         $this->uploader_type = 2;
     } else {
         $this->uploader_type = 1;
     }
     $this->ajax_receiver_full_path = $this->get_site_url() . '/wp-admin/admin-ajax.php';
     $this->ajax_receiver = 'admin-ajax.php';
     $this->ajax_action_param = 'action';
     $this->ajax_save_handler = 'all_around_save';
     $this->ajax_preview_handler = 'all_around_preview';
     if ($this->is_admin()) {
         $mode = 'backend';
     } else {
         $mode = 'frontend';
     }
     $this->main_object = new all_around_main_class($this, __FILE__, $code_name, $name, $version, $mode);
     if ($mode == 'backend') {
         $this->basic_backend_init();
         if (strpos($_SERVER['QUERY_STRING'], 'all_around') !== FALSE || defined('ALL_AROUND_DEMO') || defined('DOING_AJAX')) {
             $this->main_object->backend_init();
             $this->backend_init();
         }
     } else {
         $this->main_object->frontend_init();
         $this->frontend_init();
     }
 }