/* r255 PFS file check conifg -tags plugin default install*/
INSERT INTO sed_config (config_owner, config_cat, config_order, config_name, config_type, config_value) VALUES ('core', 'pfs', '04', 'pfsfilecheck', 3, '1'), ('core', 'pfs', '05', 'pfsnomimepass', 3, '1');
DELETE FROM `sed_auth` WHERE `auth_groupid` = 'plug' AND `auth_code` = 'tags';
DELETE FROM `sed_config` WHERE `config_owner` = 'plug' AND `config_cat` = 'tags';
DELETE FROM `sed_plugins` WHERE `pl_code` = 'tags';
INSERT INTO `sed_auth` (`auth_id`, `auth_groupid`, `auth_code`, `auth_option`, `auth_rights`, `auth_rights_lock`, `auth_setbyuserid`) VALUES (NULL, 5, 'plug', 'tags', 255, 255, 1),(NULL, 6, 'plug', 'tags', 3, 124, 1),(NULL, 2, 'plug', 'tags', 1, 254, 1),(NULL, 3, 'plug', 'tags', 0, 255, 1),(NULL, 4, 'plug', 'tags', 3, 124, 1),(NULL, 1, 'plug', 'tags', 1, 254, 1);
INSERT INTO `sed_config` (`config_owner`, `config_cat`, `config_order`, `config_name`, `config_type`, `config_value`, `config_default`, `config_text`) VALUES ('plug', 'tags', '3', 'title', 3, '1', '', 'Capitalize first latters of keywords'),('plug', 'tags', '4', 'translit', 3, '0', '', 'Transliterate Tags in URLs'),('plug', 'tags', '6', 'order', 2, 'tag', 'tag,cnt', 'Cloud output order - alphabetical or descending frequency'),('plug', 'tags', '7', 'limit', 1, '0', '', 'Max. tags per items, 0 is unlimited'),('plug', 'tags', '8', 'lim_pages', 1, '0', '', 'Limit of tags in a cloud displayed for pages, 0 is unlimited'),('plug', 'tags', '1', 'pages', 3, '1', '', 'Enable Tags for Pages'),('plug', 'tags', '9', 'lim_forums', 1, '0', '', 'Limit of tags in a cloud displayed in forums, 0 is unlimited'),('plug', 'tags', '2', 'forums', 3, '1', '', 'Enable Tags for Forums');
INSERT INTO `sed_plugins` (`pl_id`, `pl_hook`, `pl_code`, `pl_part`, `pl_title`, `pl_file`, `pl_order`, `pl_active`) VALUES (NULL, 'page.tags', 'tags', 'page', 'Tags', 'tags.page', 10, 1),(NULL, 'page.edit.tags', 'tags', 'page.edit.tags', 'Tags', 'tags.page.edit.tags', 10, 1),(NULL, 'page.edit.update.done', 'tags', 'page.edit', 'Tags', 'tags.page.edit', 10, 1),(NULL, 'page.edit.delete.done', 'tags', 'page.delete', 'Tags', 'tags.page.delete', 10, 1),(NULL, 'page.add.tags', 'tags', 'page.add.tags', 'Tags', 'tags.page.add.tags', 10, 1),(NULL, 'page.add.add.done', 'tags', 'page.add', 'Tags', 'tags.page.add', 10, 1),(NULL, 'index.tags', 'tags', 'index', 'Tags', 'tags.index', 10, 1),(NULL, 'list.tags', 'tags', 'list', 'Tags', 'tags.list', 10, 1),(NULL, 'forums.topics.loop', 'tags', 'forums.topics', 'Tags', 'tags.forums.topics', 10, 1),(NULL, 'forums.sections.tags', 'tags', 'forums', 'Tags', 'tags.forums', 10, 1),(NULL, 'forums.newtopic.tags', 'tags', 'forums.newtopic.tags', 'Tags', 'tags.forums.newtopic.tags', 10, 1),(NULL, 'forums.newtopic.newtopic.done', 'tags', 'forums.newtopic', 'Tags', 'tags.forums.newtopic', 10, 1),(NULL, 'forums.editpost.tags', 'tags', 'forums.editpost.tags', 'Tags', 'tags.forums.editpost.tags', 10, 1),(NULL, 'forums.editpost.update.done', 'tags', 'forums.editpost', 'Tags', 'tags.forums.editpost', 10, 1),(NULL, 'forums.topics.delete.done', 'tags', 'forums.delete', 'Tags', 'tags.forums.delete', 10, 1),(NULL, 'standalone', 'tags', 'search', 'Tags', 'tags', 0, 1);