$is_i2p = !is_null($instance["i2p"]); echo "<tr>"; echo "<td><a href="" . $instance["tor"] . "">u{2705}</a></td>" :"<td>u{274C}</td>"; echo "<td>$country</td>"; echo "</tr>"; foreach($instances as $instance) { $hostname = parse_url($instance["clearnet"])["host"]; $country = get_country_emote($instance["country"]) . $instance["country"]; $is_tor = !is_null($instance["tor"]); $is_i2p = !is_null($instance["i2p"]); echo "<tr>"; echo "<td><a href="" . $data["project_url"] . "" target="_blank">" . ucfirst($frontend) . "</a>"; echo "<input type="text" name="$frontend" placeholder="Replace " . (!isset($opts->engine) ? "selected" : "") . ">Any</option>"; foreach ($languages as $lang_code => $language) { $name = $language["name"]; $selected = $opts->engine == $engine ? "selected" : "") . ">Any</option>"; foreach ($languages as $lang_code => $language) { $name = trim($parts[0]); $domain = parse_url($_SERVER['SERVER_NAME']);