$locale['setup_3207'], "rights" => "PO" ]; // 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" => "PO", "image" => $inf_image, "title" => $locale['setup_3022'], "panel" => "poll_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_3022']."', 'infusions/".$inf_folder."/polls_archive.php', '0', '1', '0', '2', '1', '".$language."')"; // Delete $mlt_deldbrow[$language][] = DB_SITE_LINKS." WHERE link_url='infusions/".$inf_folder."/polls_archive.php' AND link_language='".$language."'"; $mlt_deldbrow[$language][] = DB_ADMIN." WHERE admin_rights='PO' AND admin_language='".$language."'"; } } else { $inf_adminpanel[] = [ "rights" => "PO", "image" => $inf_image, "title" => $locale['setup_3022'], "panel" => "poll_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_3022']."', 'infusions/".$inf_folder."/polls_archive.php', '0', '1', '0', '2', '1', '".LANGUAGE."')"; } // Uninstallation $inf_droptable[] = DB_POLLS; $inf_droptable[] = DB_POLL_VOTES; $inf_deldbrow[] = DB_SITE_LINKS." WHERE link_url = 'infusions/".$inf_folder."/polls_archive.php'"; $inf_deldbrow[] = DB_PANELS." WHERE panel_filename='".$inf_folder."'"; $inf_deldbrow[] = DB_ADMIN." WHERE admin_rights='PO'";