INSERT INTO `module` (`module_id`, `is_configurable`, `name`, `title`, `description`, `admin_uri`, `icon`, `maintainers`, `version`, `license`, `state`) VALUES ({SGL_NEXT_ID}, 1, 'faqweb', 'Faqweb', 'Faqweb Module', '', '48/module_default.png', 'RV Global Soft Teams', '20070816', 'RV Global Soft', 'Stable');

SELECT @moduleId := MAX(module_id) FROM module;

REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.administrationMail', 'webmaster@example.org');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.bannedIPs', '');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.contactInformations', '');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.currentVersion', '2.0.7');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.disableAttachments', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.enableAdminLog', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.enableRewriteRules', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.enableUserTracking', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.ipCheck', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.language', 'language_en.php');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.languageDetection', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.ldapSupport', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.maxAttachmentSize', '100000');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.metaDescription', 'phpMyFAQ should be the answer for all questions in life');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.metaKeywords', '');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.metaPublisher', 'John Doe');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.numberOfRecordsPerPage', '10');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.numberOfShownNewsEntries', '3');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.permLevel', 'basic');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.phpMyFAQToken', '');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.referenceURL', 'http://192.168.1.252/seagull_mod/public_html/faqweb');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.send2friendText', '');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.titleFAQ', 'phpMyFAQ 2.0.7');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('main.urlValidateInterval', '86400');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.defaultActivation', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.defaultAllowComments', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.enableVisibilityQuestions', 'false');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.numberOfRelatedArticles', '5');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.orderby', 'id');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('records.sortby', 'DESC');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('spam.checkBannedWords', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('spam.enableCatpchaCode', 'true');
REPLACE INTO `faqweb_faqconfig` (`config_name`, `config_value`) VALUES ('spam.enableSafeEmail', 'true');

REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (1, 'adduser', 'Right to add user accounts', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (2, 'edituser', 'Right to edit user accounts', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (3, 'deluser', 'Right to delete user accounts', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (4, 'addbt', 'Right to add faq entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (5, 'editbt', 'Right to edit faq entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (6, 'delbt', 'Right to delete faq entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (7, 'viewlog', 'Right to view logfiles', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (8, 'adminlog', 'Right to view admin log', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (9, 'delcomment', 'Right to delete comments', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (10, 'addnews', 'Right to add news', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (11, 'editnews', 'Right to edit news', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (12, 'delnews', 'Right to delete news', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (13, 'addcateg', 'Right to add categories', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (14, 'editcateg', 'Right to edit categories', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (15, 'delcateg', 'Right to delete categories', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (16, 'passwd', 'Right to change passwords', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (17, 'editconfig', 'Right to edit configuration', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (18, 'addatt', 'Right to add attachments', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (19, 'delatt', 'Right to delete attachments', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (20, 'backup', 'Right to save backups', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (21, 'restore', 'Right to load backups', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (22, 'delquestion', 'Right to delete questions', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (23, 'addglossary', 'Right to add glossary entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (24, 'editglossary', 'Right to edit glossary entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (25, 'delglossary', 'Right to delete glossary entries', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (26, 'changebtrevs', 'Edit revisions', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (27, 'addgroup', 'Right to add group accounts', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (28, 'editgroup', 'Right to edit group accounts', 1, 1);
REPLACE INTO `faqweb_faqright` (`right_id`, `name`, `description`, `for_users`, `for_groups`) VALUES (29, 'delgroup', 'Right to delete group accounts', 1, 1);

REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 1);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 2);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 3);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 4);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 5);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 6);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 7);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 8);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 9);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 10);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 11);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 12);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 13);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 14);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 15);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 16);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 17);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 18);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 19);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 20);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 21);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 22);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 23);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 24);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 25);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 26);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 27);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 28);
REPLACE INTO `faqweb_faquser_right` (`user_id`, `right_id`) VALUES (1, 29);
