5, 'guest_shouts' => 0, 'hidden_shouts' => 0 ]; foreach ($settings as $name => $value) { $inf_insertdbrow[] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES ('".$name."', '".$value."', '".$inf_folder."')"; } // Multilanguage table $inf_mlt[] = [ "title" => $inf_title, "rights" => "SB" ]; // Multilanguage links $enabled_languages = makefilelist(LOCALE, ".|..", TRUE, "folders"); if (!empty($enabled_languages)) { foreach ($enabled_languages as $language) { include INFUSIONS."shoutbox_panel/locale/".$language."/shoutbox.php"; $mlt_adminpanel[$language][] = [ "rights" => "S", "image" => $inf_image, "title" => $locale['SB_admin1'], "panel" => "shoutbox_admin.php", "page" => 5, 'language' => $language ]; // Delete $mlt_deldbrow[$language][] = DB_SHOUTBOX." WHERE shout_language='".$language."'"; $mlt_deldbrow[$language][] = DB_ADMIN." WHERE admin_rights='SB' AND admin_language='".$language."'"; } } else { $inf_adminpanel[] = [ "rights" => "S", "image" => $inf_image, "title" => $locale['SB_admin1'], "panel" => "shoutbox_admin.php", "page" => 5, 'language' => LANGUAGE ]; } // Uninstallation $inf_droptable[] = DB_SHOUTBOX; $inf_deldbrow[] = DB_ADMIN." WHERE admin_rights='S'"; $inf_deldbrow[] = DB_PANELS." WHERE panel_filename='".$inf_folder."'"; $inf_deldbrow[] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'"; $inf_deldbrow[] = DB_LANGUAGE_TABLES." WHERE mlt_rights='SB'";