Example #1
0
 function install_download_system()
 {
     parent::plug_manager();
     tep_define_vars($this->admin_path . 'back/admin_defs.php');
     $front_defs = tep_web_files('FILENAME_GENERIC_PAGES', 'FILENAME_COLLECTIONS');
     // Default Options
     $this->options_array = array('text_pages' => 1, 'collections' => 1, 'display_col' => 1, 'download_count' => 1, 'download_count_show' => 1, 'download_path' => 'pub/', 'download_method' => 'get', 'default_status' => 1, 'template' => 'stock', 'abox' => true, 'ascripts' => array(FILENAME_DEFAULT, FILENAME_DOWNLOAD), 'fscripts' => array_values($front_defs));
     $this->title = 'Download System';
     $this->author = 'Mark Samios';
     $this->icon = 'download.png';
     $this->version = '1.00';
     $this->framework = '1.12';
     tep_read_contents($this->admin_path . 'readme.txt', $this->help);
     $this->front = 1;
     $this->back = 1;
     $this->status = 1;
     $this->template_path = 'front/templates/';
     // The array of files that operate on the web-front
     // Left(Key)     => Source File with Path (to copy file from)
     // Right(Value)  => Destination Path and File (to copy source file to)
     $this->files_array = array('front/download_system.php' => $this->web_path . 'download_system.php', 'front/tables.php' => $this->web_path . 'tables.php');
     // The array of files that operate on the administration end
     // Left(Key)     => Source Path/File (to copy file from)
     // Right(Value)  => Destination Path only (to copy source file to)
     $this->admin_files_array = array('back/admin_download.php' => 'download.php', 'back/admin_download_strings.php' => DIR_WS_STRINGS . 'download.php');
     // Common Template filenames
     $this->template_array = array('web_strings.php' => $this->web_template_path . 'web_strings.php', 'download_form.tpl' => $this->web_template_path . 'download_form.tpl', 'download_text.tpl' => $this->web_template_path . 'download_text.tpl');
     $this->sql_file = $this->admin_path . 'database.sql';
     $this->config_form = $this->admin_path . 'config_form.tpl';
     $this->strings = tep_get_strings($this->admin_path . 'strings.php');
 }
Example #2
0
 function install_newsletter_system()
 {
     parent::plug_manager();
     tep_define_vars($this->admin_path . 'back/admin_defs.php');
     $front_defs = tep_web_files('FILENAME_DEFAULT', 'FILENAME_GENERIC_PAGES', 'FILENAME_COLLECTIONS');
     // Default Options
     $this->options_array = array('email_id' => 0, 'resent' => 0, 'display_col' => 1, 'email_limit' => 100, 'statistics' => 1, 'template' => 'stock', 'strings' => 'front', 'abox' => true, 'ascripts' => array(FILENAME_DEFAULT, FILENAME_NEWSLETTERS), 'fscripts' => array_values($front_defs));
     $this->title = 'Newsletter System';
     $this->author = 'Mark Samios';
     $this->icon = 'newsletter.png';
     $this->version = '1.00';
     $this->framework = '1.12';
     tep_read_contents($this->admin_path . 'readme.txt', $this->help);
     $this->front = 1;
     $this->back = 1;
     $this->status = 1;
     $this->template_path = 'front/templates/';
     // The array of files that operate on the web-front
     // Left(Key)     => Source File with Path (to copy file from)
     // Right(Value)  => Destination Path and File (to copy source file to)
     $this->files_array = array('front/newsletter_feedback.php' => DIR_WS_CATALOG . 'newsletter_feedback.php', 'front/newsletter_system.php' => $this->web_path . 'newsletter_system.php', 'front/tables.php' => $this->web_path . 'tables.php');
     // The array of files that operate on the administration end
     // Left(Key)     => Source Path/File (to copy file from)
     // Right(Value)  => Destination Path only (to copy source file to)
     $this->admin_files_array = array('back/admin_newsletters.php' => 'newsletters.php', 'back/admin_newsletters_strings.php' => DIR_WS_STRINGS . 'newsletters.php');
     // Common Template filenames
     $this->template_array = array('newsletter_form.tpl' => $this->web_template_path . 'newsletter_form.tpl');
     $this->front_strings_array = array('web_strings.php');
     $this->sql_file = $this->admin_path . 'database.sql';
     $this->config_form = $this->admin_path . 'config_form.tpl';
     $this->strings = tep_get_strings($this->admin_path . 'strings.php');
 }