$locale['setup_3011'], "rights" => "FQ" ]; // Multilanguage links $enabled_languages = makefilelist(LOCALE, ".|..", TRUE, "folders"); if (!empty($enabled_languages)) { foreach ($enabled_languages as $language) { include LOCALE.$language."/setup.php"; $mlt_adminpanel[$language][] = [ "rights" => "FQ", "image" => $inf_image, "title" => $locale['setup_3011'], "panel" => "faq_admin.php", "page" => 1, 'language' => $language ]; // Add $mlt_insertdbrow[$language][] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3303']."', 'infusions/".$inf_folder."/faq.php', '0', '2', '0', '2', '1', '".$language."')"; $mlt_insertdbrow[$language][] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3327']."', 'submit.php?stype=q', ".USER_LEVEL_MEMBER.", '1', '0', '23', '1', '".$language."')"; // Delete $mlt_deldbrow[$language][] = DB_SITE_LINKS." WHERE link_url='infusions/".$inf_folder."/faq.php' AND link_language='".$language."'"; $mlt_deldbrow[$language][] = DB_SITE_LINKS." WHERE link_url='submit.php?stype=q' AND link_language='".$language."'"; $mlt_deldbrow[$language][] = DB_FAQ_CATS." WHERE faq_cat_language='".$language."'"; $mlt_deldbrow[$language][] = DB_FAQS." WHERE faq_language='".$language."'"; $mlt_deldbrow[$language][] = DB_ADMIN." WHERE admin_rights='FQ' AND admin_language='".$language."'"; } } else { $inf_adminpanel[] = [ "rights" => "FQ", "image" => $inf_image, "title" => $locale['setup_3011'], "panel" => "faq_admin.php", "page" => 1, 'language' => LANGUAGE ]; $inf_insertdbrow[] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES('".$locale['setup_3303']."', 'infusions/".$inf_folder."/faq.php', '0', '2', '0', '2', '1', '".LANGUAGE."')"; $inf_insertdbrow[] = DB_SITE_LINKS." (link_name, link_url, link_visibility, link_position, link_window, link_order, link_status, link_language) VALUES ('".$locale['setup_3327']."', 'submit.php?stype=q', ".USER_LEVEL_MEMBER.", '1', '0', '23', '1', '".LANGUAGE."')"; } // Uninstallation $inf_droptable[] = DB_FAQ_CATS; $inf_droptable[] = DB_FAQS; $inf_deldbrow[] = DB_ADMIN." WHERE admin_rights='FQ'"; $inf_deldbrow[] = DB_SITE_LINKS." WHERE link_url='infusions/".$inf_folder."/faq.php'"; $inf_deldbrow[] = DB_SITE_LINKS." WHERE link_url='submit.php?stype=q'"; $inf_deldbrow[] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'"; $inf_deldbrow[] = DB_LANGUAGE_TABLES." WHERE mlt_rights='FQ'"; $inf_deldbrow[] = DB_SUBMISSIONS." WHERE submit_type='q'";