|
34 | 34 | </label> |
35 | 35 | <div class="u-pos-relative"> |
36 | 36 | <select class="form-select" tabindex="-1" id="datasource_list" onchange="this.nextElementSibling.value=this.value"> |
37 | | - <option value="">clear</option> |
| 37 | + <option value=""><?= _("Clear") ?></option> |
38 | 38 | </select> |
39 | 39 | <input type="text" class="form-control list-editor" name="v_datasource" id="v_datasource" maxlength="255" value="<?= htmlentities(trim($v_datasource, "'")) ?>"> |
40 | 40 | </div> |
|
62 | 62 | <script> |
63 | 63 | var country_iplists = [ |
64 | 64 | <?php |
65 | | - $country = array('ca' => 'Canada', 'cn' => 'China', 'fr' => 'French', 'de' => 'Germany', 'in' => 'India', 'nl' => 'Netherlands', 'ro' => 'Romania', 'ru' => 'Russia', 'es' => 'Spain', 'ch' => 'Switzerland', 'tr' => 'Turkey', 'ua' => 'Ukraine', 'gb' => 'United Kingdom', 'us' => 'United States'); |
66 | | - foreach($country as $iso =>$name){ |
67 | | - echo '{name: "[IPv4] Country - '.$name.'", source:"https://raw.githubusercontent.com/ipverse/rir-ip/master/country/'.$iso.'/ipv4-aggregated.txt"},'."\n"; |
| 65 | + $country = array('br' => 'Brazil', 'ca' => 'Canada', 'cn' => 'China', 'fr' => 'French', 'de' => 'Germany', 'in' => 'India', 'id' => 'Indonesia', 'nl' => 'Netherlands', 'ro' => 'Romania', 'ru' => 'Russia', 'es' => 'Spain', 'ch' => 'Switzerland', 'tr' => 'Turkey', 'ua' => 'Ukraine', 'gb' => 'United Kingdom', 'us' => 'United States'); |
| 66 | + foreach($country as $iso => $name){ |
| 67 | + echo '{name: "[IPv4] ' . _("Country") . ' - ' . $name . '", source: "https://raw.githubusercontent.com/ipverse/rir-ip/master/country/' . $iso . '/ipv4-aggregated.txt"},' . "\n"; |
68 | 68 | } |
69 | 69 | ?> |
70 | 70 | // Define IPv6 country lists |
71 | 71 | /* |
72 | 72 | <?php |
73 | | - foreach($country as $iso =>$name){ |
74 | | - echo '{name: "[IPv6] Country - '.$name.'", source:"https://raw.githubusercontent.com/ipverse/rir-ip/master/country/'.$iso.'/ipv6-aggregated.txt"},'."\n"; |
| 73 | + foreach($country as $iso => $name){ |
| 74 | + echo '{name: "[IPv6] ' . _("Country") . ' - ' . $name . '", source: "https://raw.githubusercontent.com/ipverse/rir-ip/master/country/' . $iso . '/ipv6-aggregated.txt"},' . "\n"; |
75 | 75 | } |
76 | 76 | ?> |
77 | 77 | */ |
78 | 78 | ]; |
79 | 79 |
|
80 | 80 | var blacklist_iplists = [ |
81 | | - { name: "[IPv4] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.sh" }, |
| 81 | + {name: "[IPv4] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.sh"}, |
82 | 82 | /* |
83 | | - {name: "[IPv6] Block Malicious IPs", source:"script:/usr/local/hestia/install/common/firewall/ipset/blacklist.ipv6.sh"}, |
| 83 | + {name: "[IPv6] Block Malicious IPs", source: "script:/usr/local/hestia/install/common/firewall/ipset/blacklist.ipv6.sh"}, |
84 | 84 | */ |
85 | 85 | ]; |
86 | 86 |
|
|
0 commit comments