' . $langs[$_POST['my_lang']] . "\n"; // Remove, so it is not listed two times unset($langs[$_POST['my_lang']]); } // We have received a cookie and it is an available language elseif (isset($langs[myphpnet_language()])) { // Add this as first option, selected $options[] = '\n"; // Remove, so it is not listed two times unset($langs[myphpnet_language()]); } // We have no cookie and no form submitted else { // Add this as first option, selected $options[] = "\n"; } // Add all other languages foreach ($langs as $code => $name) { $options[] = '\n"; } // Assemble form from collected data $langpref = "\n"; // Save URL shortcut fallback setting if (isset($_POST['urlsearch'])) { myphpnet_urlsearch($_POST['urlsearch']); } if (isset($_POST["showug"])) { myphpnet_showug($_POST["showug"] === "enable"); } // Prepare mirror array $mirror_sites = $MIRRORS; $mirror_sites["NONE"] = [7 => MIRROR_OK]; myphpnet_save(); site_header("My PHP.net", ["current" => "community"]); ?>