Ejemplo n.º 1
0
 function plug_manager()
 {
     //$this->default_table_structure = ' ENGINE = InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci';
     $this->author = TEXT_INFO_NA;
     $this->version = TEXT_INFO_NA;
     $this->framework = TEXT_INFO_NA;
     $this->help = '';
     $this->front = 0;
     $this->back = 0;
     $this->status = 0;
     $this->install_progress = false;
     $this->files_array = array();
     $this->admin_files_array = array();
     $this->front_strings_array = array();
     $this->template_array = array();
     $this->site_index = tep_create_safe_string(tep_get_site_path(), '_', "/[^0-9a-z\\-_]+/i");
     $string = get_class($this);
     $this->key = $this->title = substr($string, strlen(PLUGINS_INSTALL_PREFIX));
     $key_path = tep_trail_path($this->key);
     $this->web_path = DIR_WS_CATALOG_PLUGINS . $key_path;
     $this->web_template_path = DIR_WS_CATALOG_TEMPLATE . $key_path;
     $this->admin_path = DIR_FS_PLUGINS . $key_path;
     $this->template_path = '';
     if (!isset($this->options_array) || empty($this->options_array)) {
         $this->options_array = array();
     }
 }
Ejemplo n.º 2
0
 function plugins_front()
 {
     $this->plugins_array = $this->log_array = $this->keys_array = $this->objects_array = array();
     $this->site_index = tep_create_safe_string(tep_get_site_path(), '_', "/[^0-9a-z\\-_]+/i");
     $this->ajax_prefix = PLUGINS_AJAX_PREFIX;
     $this->enumerate();
 }
Ejemplo n.º 3
0
 function plugins_base()
 {
     $this->scripts_array = array();
     $this->site_index = tep_create_safe_string(tep_get_site_path(), '_', "/[^0-9a-z\\-_]+/i");
     $string = get_class($this);
     $this->key = substr($string, strlen(PLUGINS_ADMIN_PREFIX));
     $this->admin_path = DIR_FS_PLUGINS . $this->key . '/';
     $this->admin_web_path = DIR_WS_PLUGINS . $this->key . '/';
 }
Ejemplo n.º 4
0
 function plugins_admin()
 {
     require_once DIR_FS_CLASSES . 'plugins_base.php';
     $this->site_index = tep_create_safe_string(tep_get_site_path(), '_', "/[^0-9a-z\\-_]+/i");
     $this->prefix = PLUGINS_ADMIN_PREFIX;
     $this->ajax_prefix = PLUGINS_AJAX_PREFIX;
     $this->plugins_array = $this->keys_array = $this->objects_array = array();
     $this->enumerate();
 }
Ejemplo n.º 5
0
 function plugins_base()
 {
     extract(tep_load('languages'));
     $this->scripts_array = $this->strings_array = array();
     $this->site_index = tep_create_safe_string(tep_get_site_path(), '_', "/[^0-9a-z\\-_]+/i");
     $this->key = get_class($this);
     $key_path = tep_trail_path($this->key);
     $this->web_path = DIR_WS_PLUGINS . $key_path;
     $this->fs_path = DIR_FS_PLUGINS . $key_path;
     $this->web_template_path = DIR_WS_TEMPLATE . $key_path;
     $this->fs_template_path = DIR_FS_TEMPLATE . $key_path;
     $this->fs_language_path = DIR_FS_STRINGS . tep_trail_path($lng->path) . $key_path;
     $this->active = $this->scripts_check();
 }