Subversion Repositories ALCASAR

Rev

Rev 1578 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1578 Rev 1886
Line 25... Line 25...
25
$Language = 'en';
25
$Language = 'en';
26
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
26
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
27
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
27
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
28
	$Language = strtolower(substr(chop($Langue[0]),0,2)); }
28
	$Language = strtolower(substr(chop($Langue[0]),0,2)); }
29
if($Language == 'fr'){
29
if($Language == 'fr'){
-
 
30
	$l_load="Chargement...";
30
	$l_error_open_file	= "Erreur d'ouverture du fichier";
31
	$l_error_open_file	= "Erreur d'ouverture du fichier";
31
	$l_trusted_domain	= "Noms de domaine Internet de confiance";
32
	$l_trusted_domain	= "Noms de domaine Internet de confiance";
32
	$l_domain		= "Noms de domaine";
33
	$l_domain		= "Noms de domaine";
33
	$l_comment_explain	= "Lien affiché dans la page d'interception";
34
	$l_comment_explain	= "Lien affiché dans la page d'interception";
34
	$l_comment_explain2	= "Laissez vide si non affiché";
35
	$l_comment_explain2	= "Laissez vide si non affiché";
Line 42... Line 43...
42
	$l_submit		= "Enregistrer";
43
	$l_submit		= "Enregistrer";
43
	$l_add_to_list		= "Ajouter à la liste";
44
	$l_add_to_list		= "Ajouter à la liste";
44
	$l_apply		= "Appliquer les changements";
45
	$l_apply		= "Appliquer les changements";
45
}
46
}
46
else {
47
else {
-
 
48
 	$l_load="Loading...";
47
	$l_error_open_file	= "File open error";
49
	$l_error_open_file	= "File open error";
48
	$l_trusted_domain	= "Trusted Internet domain names";
50
	$l_trusted_domain	= "Trusted Internet domain names";
49
	$l_domain		= "Domain names";
51
	$l_domain		= "Domain names";
50
	$l_comment_explain	= "Link displayed in intercept page";
52
	$l_comment_explain	= "Link displayed in intercept page";
51
	$l_comment_explain2	= "Let empty to not display link";
53
	$l_comment_explain2	= "Let empty to not display link";
Line 220... Line 222...
220
	}
222
	}
221
echo "</table>";
223
echo "</table>";
222
if ($tab)
224
if ($tab)
223
	{
225
	{
224
	echo "<input type='hidden' name='choix' value='change_uamdomain'>";
226
	echo "<input type='hidden' name='choix' value='change_uamdomain'>";
225
	echo "<input type='submit' value='$l_apply'>";
227
	echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';\" value='$l_apply'>";
226
	}
228
	}
227
?>
229
?>
228
</form>
230
</form>
229
</td><td valign='middle' align='center'>
231
</td><td valign='middle' align='center'>
230
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
232
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
Line 234... Line 236...
234
<tr><td>exemple1 : www.mydomain.com <br>exemple2 : .yourdomain.net
236
<tr><td>exemple1 : www.mydomain.com <br>exemple2 : .yourdomain.net
235
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
237
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
236
<tr><td><input type='text' name='add_uamdomain' size='20'>
238
<tr><td><input type='text' name='add_uamdomain' size='20'>
237
<td><input type='text' name='add_domain_comment' size='15'>
239
<td><input type='text' name='add_domain_comment' size='15'>
238
<input type='hidden' name='choix' value='new_uamdomain'>
240
<input type='hidden' name='choix' value='new_uamdomain'>
239
<td><input type='submit' value='<?echo "$l_add_to_list";?>'>
241
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';" value='<?echo "$l_add_to_list";?>'>
240
</tr></table>
242
</tr></table>
241
</form>
243
</form>
242
</tr>
244
</tr>
243
</table>
245
</table>
244
<table width="100%" border="0" cellspacing="0" cellpadding="0">
246
<table width="100%" border="0" cellspacing="0" cellpadding="0">
Line 276... Line 278...
276
	}
278
	}
277
echo "</table>";
279
echo "</table>";
278
if ($tab)
280
if ($tab)
279
	{
281
	{
280
	echo "<input type='hidden' name='choix' value='change_ip'>";
282
	echo "<input type='hidden' name='choix' value='change_ip'>";
281
	echo "<input type='submit' value='$l_apply'>";
283
	echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';\" value='$l_apply'>";
282
	}
284
	}
283
?>
285
?>
284
</form>
286
</form>
285
</td><td valign='middle' align='center'>
287
</td><td valign='middle' align='center'>
286
<form action='<?echo "$_SERVER[PHP_SELF]"?>' method='POST'>
288
<form action='<?echo "$_SERVER[PHP_SELF]"?>' method='POST'>
Line 290... Line 292...
290
<tr><td>exemple1 : 170.25.23.10 <br>exemple2 : 15.20.20.0/16</td>
292
<tr><td>exemple1 : 170.25.23.10 <br>exemple2 : 15.20.20.0/16</td>
291
<td>my_web_server <br>my_dmz<td></tr>
293
<td>my_web_server <br>my_dmz<td></tr>
292
<tr><td><input type='text' name='add_ip' size='20'></td>
294
<tr><td><input type='text' name='add_ip' size='20'></td>
293
<td><input type='text' name='add_ip_comment' size='15'></td>
295
<td><input type='text' name='add_ip_comment' size='15'></td>
294
<input type='hidden' name='choix' value='new_ip'>
296
<input type='hidden' name='choix' value='new_ip'>
295
<td><input type='submit' value='<?echo "$l_add_to_list";?>'></td>
297
<td><input type='submit' onClick="this.disabled=true; this.value='<?echo $l_load;?>';" value='<?echo "$l_add_to_list";?>'></td>
296
</tr></table>
298
</tr></table>
297
</td></tr>
299
</td></tr>
298
</table>
300
</table>
299
</form>
301
</form>
300
<table width="100%" border="0" cellspacing="0" cellpadding="0">
302
<table width="100%" border="0" cellspacing="0" cellpadding="0">