Line 15... |
Line 15... |
15 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
15 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
16 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
16 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
17 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
17 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
18 |
if($Language == 'fr'){
|
18 |
if($Language == 'fr'){
|
19 |
$l_error_open_file = "Erreur d'ouverture du fichier";
|
19 |
$l_error_open_file = "Erreur d'ouverture du fichier";
|
20 |
$l_trusted_sites = "Sites Internet de confiance";
|
20 |
$l_trusted_sites = "Domaines Internet et adresses IP de confiance";
|
21 |
$l_trusted_sites_explain1 = "Entrez ici les noms de site ou d'URLs Internet pouvant être joints sans authentification";
|
21 |
$l_trusted_sites_explain1 = "Entrez ici les noms de domaine Internet ou les adresses IP pouvant être joints sans authentification";
|
22 |
$l_trusted_sites_explain2 = "Entrez un nom par ligne";
|
22 |
$l_trusted_sites_explain2 = "Entrez un nom de domaine ou une adresse IP par ligne";
|
23 |
$l_trusted_sites_list = "Liste de sites Internet de confiance";
|
23 |
$l_trusted_sites_list = "Liste de nom de domaine de confiance";
|
24 |
$l_trusted_urls_list = "Liste d'URLs Internet de confiance";
|
24 |
$l_trusted_urls_list = "Liste d'adresses IP ou d'adresses de réseau de confiance";
|
25 |
$l_trusted_mac = "Équipements de confiance";
|
25 |
$l_trusted_mac = "Équipements de confiance";
|
26 |
$l_trusted_mac_explain = "Entrez ici les adresses MAC des équipements autorisés à joindre Internet sans authentification";
|
26 |
$l_trusted_mac_explain = "Entrez ici les adresses MAC des équipements autorisés à joindre Internet sans authentification";
|
27 |
$l_trusted_mac_list = "Liste des adresses MAC de confiance";
|
27 |
$l_trusted_mac_list = "Liste d'adresses MAC de confiance";
|
28 |
$l_trusted_mac_address = "Adresses MAC autorisées";
|
28 |
$l_trusted_mac_address = "Adresses MAC autorisées";
|
29 |
$l_trusted_mac_info = "Information équipement";
|
29 |
$l_trusted_mac_info = "Information équipement";
|
30 |
$l_trusted_mac_del = "Supprimer de la liste";
|
30 |
$l_trusted_mac_del = "Supprimer de la liste";
|
31 |
$l_submit = "Enregistrer";
|
31 |
$l_submit = "Enregistrer";
|
32 |
$l_submit2 = "Appliquer";
|
32 |
$l_submit2 = "Appliquer";
|
33 |
$l_add_to_list = "Ajouter";
|
33 |
$l_add_to_list = "Ajouter";
|
34 |
}
|
34 |
}
|
35 |
else {
|
35 |
else {
|
36 |
$l_error_open_file = "File open error";
|
36 |
$l_error_open_file = "File open error";
|
37 |
$l_trusted_sites = "Trusted Internet sites";
|
37 |
$l_trusted_sites = "Trusted Internet domain and IP addresses";
|
38 |
$l_trusted_sites_explain1 = "Enter name of Internet sites or URLS that could be joined without authentication";
|
38 |
$l_trusted_sites_explain1 = "Enter Internet domain name or IP addresses that could be joined without authentication";
|
39 |
$l_trusted_sites_explain2 = "Enter one name per line";
|
39 |
$l_trusted_sites_explain2 = "Enter one domain name ou one IP address per line";
|
40 |
$l_trusted_sites_list = "Trusted Internet sites list";
|
40 |
$l_trusted_sites_list = "Trusted Internet domain list";
|
41 |
$l_trusted_urls_list = "Trusted Internet URLs list";
|
41 |
$l_trusted_urls_list = "Trusted IP addresses or networks addresses list";
|
42 |
$l_trusted_mac = "Trusted Equipments";
|
42 |
$l_trusted_mac = "Trusted Equipments";
|
43 |
$l_trusted_mac_explain = "Enter MAC address of equipments that could contact Internet without authentication";
|
43 |
$l_trusted_mac_explain = "Enter MAC address of equipments that could contact Internet without authentication";
|
44 |
$l_trusted_mac_list = "Trusted MAC addresses list";
|
44 |
$l_trusted_mac_list = "Trusted MAC addresses list";
|
45 |
$l_trusted_mac_address = "Allowed MAC adress";
|
45 |
$l_trusted_mac_address = "Allowed MAC adress";
|
46 |
$l_trusted_mac_info = "Equipment information";
|
46 |
$l_trusted_mac_info = "Equipment information";
|
Line 174... |
Line 174... |
174 |
echo "</textarea>";
|
174 |
echo "</textarea>";
|
175 |
?>
|
175 |
?>
|
176 |
</td>
|
176 |
</td>
|
177 |
<td width=50% height=100% align=center>
|
177 |
<td width=50% height=100% align=center>
|
178 |
<H3><?php echo $l_trusted_urls_list ;?></H3>
|
178 |
<H3><?php echo $l_trusted_urls_list ;?></H3>
|
179 |
exemple1 : www.domain3.net/admin/index.htm<BR>
|
179 |
exemple1 : 192.168.0.10<BR>
|
180 |
exemple2 : domain4.org/~polux/index.html<BR>
|
180 |
exemple2 : 172.16.20.0/24<BR>
|
181 |
<?php
|
181 |
<?php
|
182 |
echo "<textarea name='trusted_urls' rows=5 cols=40>";
|
182 |
echo "<textarea name='trusted_urls' rows=5 cols=40>";
|
183 |
$ouvre=fopen($url_allowed_list,"r");
|
183 |
$ouvre=fopen($url_allowed_list,"r");
|
184 |
if ($ouvre)
|
184 |
if ($ouvre)
|
185 |
{
|
185 |
{
|