/** * Pages install procedure * * @param vivvo_site $site_manager * @param integer $step */ function install(&$site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { //install procedure here $db = $site_manager->get_db(); $mysql = $db->getServerVersion(); $fields = array('id' => array('type' => 'integer', 'autoincrement' => true), 'title' => array('type' => 'text', 'length' => 255, 'notnull' => 1, 'collation' => 'utf8_unicode_ci'), 'body' => array('type' => 'clob', 'notnull' => 0, 'default' => NULL, 'collate' => 'utf8_unicode_ci'), 'hide' => array('type' => 'integer', 'length' => 1, 'notnull' => 0, 'default' => NULL), 'sefriendly' => array('type' => 'text', 'length' => 255, 'notnull' => 1, 'collation' => 'utf8_general_ci'), 'template' => array('type' => 'text', 'length' => 255, 'collation' => 'latin1_swedish_ci'), 'order_number' => array('type' => 'integer', 'length' => 5, 'notnull' => 0, 'default' => NULL)); $options = array('comment' => 'Pages', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'type' => 'MyISAM'); $table = VIVVO_DB_PREFIX . 'pages'; $dbm = $site_manager->get_db_manager(); if (!$dbm->table_exists(strtolower($table))) { $db->manager->createTable($table, $fields, $options); } else { $db->manager->alterTable(VIVVO_DB_PREFIX . 'pages', array('add' => array('hide' => array('type' => 'integer', 'length' => '1', 'notnull' => 0, 'default' => NULL))), false); } $site_manager->unregister_module('box_pages'); $site_manager->register_module('box_pages', 'box_pages', $this->get_root_dir() . 'box_pages.php'); $site_manager->unregister_action('page'); $site_manager->register_action('page', $this->get_root_dir() . 'service/Pages.action.php'); // register new plugin $pl_manager = $site_manager->get_plugin_manager(); $pl_manager->register('pages', $this->get_root_dir(), 'Pages'); ui_hooks::register('plugin_pages_admin_content_subnav_hook', 'admin_content_subnav', array('id' => 'menu_sub_plugin_pages', 'href' => 'plugins.php?plugin=pages', 'title' => 'Pages'), array('file' => 'lib/vivvo/functions.php', 'function' => 'main_nav_plugin_callback', 'params' => array('name' => 'pages'))); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Feed importer install procedure * * @param vivvo_site $site_manager * @param int $step */ public function install($site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { $plugin_dir_abs = VIVVO_FS_PLUGIN_ROOT . ($plugin_dir = $this->get_root_dir()); $sqlRunner = new SQLRunner(array('db' => $site_manager->get_db(), 'filename' => $plugin_dir_abs . 'db/install.sql')); try { $sqlRunner->load() and $sqlRunner->run(); } catch (SQLRunnerException $e) { $this->set_error_code(14, $e->getMessage()); // error executing sql script file $this->install($site_manager, 1); return; } $conf = $site_manager->get_configuration(); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_AUTHOR', '', '', ''); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_AUTO_ARCHIVE', '', 15, '', '\\d*'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_AUTO_DELETE', '', 30, '', '\\d*'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_PERIOD', '', 3, '', '[1-9]\\d*'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_STATUS', '', 1, '', '0|1'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_SHOW_COMMENT', '', 1, '', '0|1'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_UPDATE_ARTICLES', '', 1, '', '0|1'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_USE_LOGO', '', 0, '', '0|1'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_TRASH', '', 0, '', '0|1'); $conf->add_conf('VIVVO_PLUGIN_FEED_IMPORTER_USER_ID', '', '', '', '[1-9]\\d*'); $site_manager->register_action('feed', $plugin_dir . 'service/feed.action.php'); require_once VIVVO_FS_INSTALL_ROOT . 'lib/vivvo/framework/vivvo_cron.php'; $cm = new vivvo_cron_manager($site_manager); $cm->cron_job('19 */3 * * *', $plugin_dir . 'tasks/auto_import_feeds.php', null, 'auto_import_feeds'); $site_manager->get_plugin_manager()->register($this->plugin_name, $plugin_dir, $this->plugin_title); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Poll install procedure * * @param vivvo_site $site_manager * @param int $step */ public function install($site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { $plugin_dir_abs = VIVVO_FS_PLUGIN_ROOT . ($plugin_dir = $this->get_root_dir()); $sqlRunner = new SQLRunner(array('db' => $site_manager->get_db(), 'filename' => $plugin_dir_abs . 'db/install.sql')); $sqlRunner->variables['VIVVO_POLL_START_DATE'] = date('Y-m-d H:i:s', VIVVO_START_TIME); $sqlRunner->variables['VIVVO_POLL_END_DATE'] = date('Y-m-d H:i:s', VIVVO_START_TIME + 2592000); try { $sqlRunner->load() and $sqlRunner->run(); } catch (SQLRunnerException $e) { $this->set_error_code(14, $e->getMessage()); // error executing sql script file $this->install($site_manager, 1); return; } $site_manager->register_action('poll', $plugin_dir . 'service/poll.action.php'); $site_manager->register_module('box_poll', 'box_poll', $plugin_dir . 'box_poll.php'); $site_manager->register_module('box_poll_list', 'box_poll_list', $plugin_dir . 'box_poll.php'); $site_manager->get_url_manager()->register_url('poll', $plugin_dir . 'poll_url_handler.php', 'poll_url_handler', 'poll_content_handler'); $site_manager->get_plugin_manager()->register($this->plugin_name, $plugin_dir, $this->plugin_title); //Copy files to templates and theme @copy($plugin_dir_abs . 'templates/poll.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/poll.tpl'); @copy($plugin_dir_abs . 'templates/plugin_poll.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/plugin_poll.tpl'); @copy($plugin_dir_abs . 'css/plugin_poll.css', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_poll.css'); @copy($plugin_dir_abs . 'templates/poll.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/poll.tpl.original'); @copy($plugin_dir_abs . 'templates/plugin_poll.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/plugin_poll.tpl.original'); @copy($plugin_dir_abs . 'css/plugin_poll.css.original', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_poll.css.original'); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Video box install procedure * * @param vivvo_site $site_manager * @param integer $step */ public function install(&$site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { $plugin_dir = VIVVO_FS_PLUGIN_ROOT . $this->get_root_dir(); $sqlRunner = new SQLRunner(array('db' => $site_manager->get_db(), 'filename' => $plugin_dir . 'db/install.sql')); try { $sqlRunner->load() and $sqlRunner->run(); } catch (SQLRunnerException $e) { $this->set_error_code(14, $e->getMessage()); // error executing sql script file $this->install($site_manager, 1); return; } ui_hooks::register('plugin_video_box_form_field', 'admin_article_form_before_body', array('lang_file' => $this->get_root_dir() . 'admin/lang/', 'gui_element' => 'file_picker', 'label' => '{LNG_PLUGIN_VIDEO_BOX_ADMIN_VIDEO}', 'name' => 'ARTICLE_video_attachment', 'value' => '{article.video_attachment}', 'input_id' => 'ARTICLE_video_attachment', 'link_id' => 'video_attachment_choose', 'options' => 'inputId: "ARTICLE_video_attachment", search_ext: "mp4,flv,mov", upload: true, butonLabel: "{LNG_PLUGIN_VIDEO_BOX_ADMIN_SELECT_VIDEO}", noneSelected: "{LNG_PLUGIN_VIDEO_BOX_ADMIN_NO_VIDEO_SELECTED}"'), array('file' => 'lib/vivvo/functions.php', 'function' => 'main_nav_plugin_callback', 'params' => array('name' => 'video_box'))); $site_manager->get_url_manager()->register_url('xspf', $this->get_root_dir() . 'url_handlers/xspf_url_handler.php', 'xspf_url_handler'); if (!$site_manager->_modules['box_paged_files']) { $site_manager->register_module('box_paged_files', 'box_paged_files', 'lib/vivvo/box/box_paged_files.php'); } $files = array('templates/xspf.tpl' => 'templates/_syndication/xspf.tpl', 'templates/box/plugin_video_box.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_box.tpl', 'templates/box/plugin_video_headlines.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_headlines.tpl', 'templates/box/plugin_video_playlist.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_playlist.tpl', 'templates/box/plugin_video_article.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_article.tpl', 'templates/box/plugin_video_player.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_player.tpl', 'templates/box/plugin_video_tabs.tpl' => VIVVO_TEMPLATE_DIR . '/box/plugin_video_tabs.tpl', 'templates/summary/video_short.tpl' => VIVVO_TEMPLATE_DIR . '/summary/video_short.tpl', 'templates/article/two_column_video.tpl' => VIVVO_TEMPLATE_DIR . '/article/two_column_video.tpl', 'templates/category/non_equal_video.tpl' => VIVVO_TEMPLATE_DIR . '/category/non_equal_video.tpl', 'css/plugin_video.css' => 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_video.css', 'img/button_play.gif' => 'themes/' . VIVVO_DEFAULT_THEME . '/img/button_play.gif', 'modifiers/video_box.modifier.php' => 'modifiers/video_box.modifier.php'); foreach ($files as $src => $dest) { @copy($plugin_dir . $src, VIVVO_FS_INSTALL_ROOT . $dest); } if (!is_dir(VIVVO_FS_ROOT . VIVVO_FS_FILES_DIR . 'video')) { @mkdir(VIVVO_FS_ROOT . VIVVO_FS_FILES_DIR . 'video', 0777); } $site_manager->get_plugin_manager()->register($this->plugin_name, $this->get_root_dir(), $this->plugin_title); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Form builder install procedure * * @param vivvo_site $site_manager * @param integer $step */ function install($site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { $plugin_dir_abs = VIVVO_FS_PLUGIN_ROOT . ($plugin_dir = $this->get_root_dir()); $sqlRunner = new SQLRunner(array('db' => $site_manager->get_db(), 'filename' => $plugin_dir_abs . 'db/install.sql')); try { $sqlRunner->load() and $sqlRunner->run(); } catch (SQLRunnerException $e) { $this->set_error_code(14, $e->getMessage()); // error executing sql script file $this->install($site_manager, 1); return; } $pl_manager = $site_manager->get_plugin_manager(); $pl_manager->register('form_builder', $plugin_dir, 'Form builder'); //Action $site_manager->register_action('form_builder', $plugin_dir . 'service/form_builder.action.php'); //Box $site_manager->register_module('box_form', 'box_form', $plugin_dir . 'box_form.php'); //Url $um = $site_manager->get_url_manager(); $um->register_url('form_builder', $plugin_dir . 'form_builder_url_handler.php', 'form_builder_url_handler', 'form_builder_content_handler'); $um->register_url('contact', $plugin_dir . 'form_builder_url_handler.php', 'form_builder_url_handler', 'form_builder_content_handler'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'css/plugin_form_builder.css', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_form_builder.css'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'img/icon_pref_help.gif', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/img/icon_pref_help.gif'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'js/form_builder.js', VIVVO_FS_ROOT . 'js/form_builder.js'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'img/icon_required.gif', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/img/icon_required.gif'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'templates/box_form.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'system/box_default/box_form.tpl'); @copy(VIVVO_FS_PLUGIN_ROOT . $plugin_dir . 'templates/plugin_form_builder.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/plugin_form_builder.tpl'); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Mobile install procedure * * @param vivvo_site $site_manager * @param integer $step */ function install(&$site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { //Definition $pl_manager =& $site_manager->get_plugin_manager(); $pl_manager->register('mobile', $this->get_root_dir(), 'Mobile'); //Url $um =& $site_manager->get_url_manager(); $um->register_url('mobile', $this->get_root_dir() . 'mobile_url_manager.php', 'mobile_url_handler'); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Multiple attachments install procedure * * @param vivvo_site $site_manager * @param integer $step */ function install(&$site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { //install procedure here $db =& $site_manager->get_db(); $fields = array('id' => array('type' => 'integer', 'autoincrement' => true), 'article_id' => array('type' => 'integer', 'length' => 4, 'notnull' => 1), 'real_path' => array('type' => 'text', 'length' => 255, 'notnull' => 1, 'collation' => 'latin1_swedish_ci'), 'title' => array('type' => 'text', 'length' => 255, 'notnull' => 0, 'collation' => 'utf8_unicode_ci'), 'description' => array('type' => 'text', 'notnull' => 0, 'collation' => 'utf8_unicode_ci'), 'order_number' => array('type' => 'integer', 'length' => 4, 'notnull' => 1)); $options = array('comment' => 'Article Attachments', 'charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'type' => 'MyISAM'); $mysql = $db->getServerVersion(); if ($mysql['major'] < 4 || $mysql['major'] == 4 && $mysql['minor'] == 0) { foreach ($fields as $k => $v) { unset($fields[$k]['collation']); } $options = array(); } $table = VIVVO_DB_PREFIX . 'article_attachments'; $dbm =& $site_manager->get_db_manager(); if ($dbm->table_exists($table)) { if ($dbm->check_table($table, $fields)) { $db->manager->dropTable($table); } } $db->manager->createTable($table, $fields, $options); $configuration =& $site_manager->get_configuration(); $configuration->add_conf('multiple_attachments', 'id', 'multiple_attachments_tab', 'article_tabs'); $configuration->add_conf('multiple_attachments', 'name', 'Attachments', 'article_tabs'); $configuration->add_conf('multiple_attachments', 'template', $this->get_root_dir() . 'admin/templates/multiple_attachments_tab.xml', 'article_tabs'); if (!$site_manager->_modules['box_paged_files']) { $site_manager->register_module('box_paged_files', 'box_paged_files', 'lib/vivvo/box/box_paged_files.php'); } $site_manager->register_module('box_article_attachments', 'box_article_attachments', $this->get_root_dir() . 'box_article_attachments.php'); if ($handle = opendir(VIVVO_FS_PLUGIN_ROOT . $this->get_root_dir() . 'templates/')) { while (false !== ($filename = readdir($handle))) { if ($filename[0] != "." && !is_dir(VIVVO_FS_PLUGIN_ROOT . $this->get_root_dir() . 'templates/' . $filename)) { @copy(VIVVO_FS_PLUGIN_ROOT . $this->get_root_dir() . 'templates/' . $filename, VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/' . $filename); } } } // register new plugin $pl_manager =& $site_manager->get_plugin_manager(); $pl_manager->register('multiple_attachments', $this->get_root_dir(), 'Attachments'); $site_manager->register_action('article_attachments', $this->get_root_dir() . 'service/article_attachments.action.php'); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
/** * Feed importer install procedure * * @param vivvo_site $site_manager * @param int $step */ public function install($site_manager, $step = 1) { parent::install($site_manager, $step); if ($step == 2) { $plugin_dir_abs = VIVVO_FS_PLUGIN_ROOT . ($plugin_dir = $this->get_root_dir()); $sqlRunner = new SQLRunner(array('db' => $site_manager->get_db(), 'filename' => $plugin_dir_abs . 'db/install.sql')); try { $sqlRunner->load() and $sqlRunner->run(); } catch (SQLRunnerException $e) { $this->set_error_code(14, $e->getMessage()); // error executing sql script file $this->install($site_manager, 1); return; } $conf = $site_manager->get_configuration(); $conf->add_conf('VIVVO_PLUGIN_NEWSLETTER_SUBSCRIBE_BODY', '', '<vte:template>Dear <vte:value select="{email}" />,' . "\n\n" . 'Thank you for signing up! Click or copy and paste this URL to your browser to activate your account:' . "\n" . '<vte:value select="{activation_url}" />' . "\n\n" . 'Please note that your activation code is NOT your password.' . "\n" . 'Thank you for using our service' . "\n\n" . 'Best regards,' . "\n" . '<vte:value select="{VIVVO_WEBSITE_TITLE}" />' . "\n" . '<vte:value select="{VIVVO_URL}" />' . "\n" . '</vte:template>', '', ''); $conf->add_conf('VIVVO_PLUGIN_NEWSLETTER_SUBSCRIBE_SUBJECT', '', 'Subscribe to Newsletter', '', ''); $conf->add_conf('VIVVO_PLUGIN_NEWSLETTER_UNSUBSCRIBE_TEXT', '', 'Click following link to Unsubscribe:', '', ''); $conf->add_conf('VIVVO_PLUGIN_NEWSLETTER_PERIOD', '', '60', '', ''); $conf->add_conf('VIVVO_PLUGIN_NEWSLETTER_NUMBER_OF_MAILS', '', '50', '', ''); $site_manager->register_action('newsletter', $plugin_dir . 'service/newsletter.action.php'); $site_manager->register_module('box_newsletter', 'box_newsletter', $plugin_dir . 'box_newsletter.php'); $site_manager->register_module('box_maillist', 'box_maillist', $plugin_dir . '/box_newsletter.php'); $site_manager->get_url_manager()->register_url('newsletter', $plugin_dir . 'newsletter_url_handler.php', 'newsletter_url_handler', 'newsletter_content_handler'); require_once VIVVO_FS_INSTALL_ROOT . 'lib/vivvo/framework/vivvo_cron.php'; $cm = new vivvo_cron_manager($site_manager); $cm->cron_job('11 * * * *', $plugin_dir . 'tasks/mail_queue.php', null, 'mail_queue'); $site_manager->get_plugin_manager()->register($this->plugin_name, $plugin_dir, $this->plugin_title); //Copy files to templates and theme @copy($plugin_dir_abs . 'templates/plugin_newsletter.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/plugin_newsletter.tpl'); @copy($plugin_dir_abs . 'templates/newsletter_confirm.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_confirm.tpl'); @copy($plugin_dir_abs . 'templates/newsletter_unsubscribe.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_unsubscribe.tpl'); @copy($plugin_dir_abs . 'templates/newsletter_user_unsubscribe.tpl', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_user_unsubscribe.tpl'); @copy($plugin_dir_abs . 'css/plugin_newsletter.css', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_newsletter.css'); @copy($plugin_dir_abs . 'js/plugin_newsletter.js', VIVVO_FS_ROOT . 'js/plugin_newsletter.js'); @copy($plugin_dir_abs . 'templates/plugin_newsletter.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'box/plugin_newsletter.tpl.original'); @copy($plugin_dir_abs . 'templates/newsletter_confirm.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_confirm.tpl.original'); @copy($plugin_dir_abs . 'templates/newsletter_unsubscribe.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_unsubscribe.tpl.original'); @copy($plugin_dir_abs . 'templates/newsletter_user_unsubscribe.tpl.original', VIVVO_FS_TEMPLATE_ROOT . VIVVO_TEMPLATE_DIR . 'plugin/newsletter_user_unsubscribe.tpl.original'); @copy($plugin_dir_abs . 'css/plugin_newsletter.css.original', VIVVO_FS_ROOT . 'themes/' . VIVVO_DEFAULT_THEME . '/css/plugin_newsletter.css.original'); } $output = $site_manager->get_output(); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $output; }
public function install() { global $messageStack; // Start by disabling the module if (defined('SEO_ENABLED')) { zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => 'false'), 'update', '`configuration_key`=\'SEO_ENABLED\''); } else { if (defined('USU_ENABLED')) { zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => 'false'), 'update', '`configuration_key`=\'USU_ENABLED\''); } } // Halt on any configuration issues as they will have a negative impact. $success = $this->checkZenCartVersion() && $this->checkConfigure(true); if ($success) { $success = parent::install(); } // Enable the module if successful if ($success) { zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => 'true'), 'update', '`configuration_key`=\'USU_ENABLED\''); } return $success; }