/web/index-network-pb.php |
---|
12,7 → 12,7 |
$l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées."; |
$l_explain_alcasar = "L'accès au centre de gestion d'ALCASAR (ACC - ALCASAR Control Center) nécéssite une authentification sécurisée."; |
$l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif."; |
$l_contact_alcasar = "<a href=\"https://alcasar\">Accès au centre de gestion</A>"; |
$l_contact_alcasar = "<a href=\"https://$private_ip\">Accès au centre de gestion</A>"; |
} |
else { |
$l_access_denied = "ACCESS DENIED"; |
20,7 → 20,7 |
$l_explain = "Your portal has just detected that the Internet access is down"; |
$l_explain_alcasar = "In order to access the ALCASAR Control Center (ACC) you should authenticate threw a secure connection."; |
$l_contact = "Contact your Internet provider responsive for more information"; |
$l_contact_alcasar = "<a href=\"https://alcasar\">ALCASAR Control Center access</A>"; |
$l_contact_alcasar = "<a href=\"https://$private_ip\">ALCASAR Control Center access</A>"; |
} |
?> |
<head> |
/web/acc/admin/logo.php |
---|
1,6 → 1,7 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<HTML><!-- Written by Rexy --> |
<HEAD> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
<TITLE>Modif logo organisme</TITLE> |
<link rel="stylesheet" href="/css/style.css" type="text/css"> |
<SCRIPT language="javascript" type="text/javascript"> |
12,6 → 13,27 |
</HEAD> |
<body> |
<?php |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'fr'){ |
$l_title = "Personnalisation du logo d'organisme"; |
$l_current_logo = "Logo actuel"; |
$l_logo_select ="Sélectionnez un nouveau logo"; |
$l_logo_help1 = "votre logo doit être un fichier au format libre 'PNG'"; |
$l_logo_help2 = "la taille de ce fichier doit être inférieure à 100Ko"; |
$l_logo_help3 = "rafraîchissez les pages de votre navigateur pour voir le résultat"; |
} else { |
$l_title = "Customizing the agency logo"; |
$l_current_logo = "Current logo"; |
$l_logo_select ="Select a new logo"; |
$l_logo_help1 = "your logo must be in open 'PNG' format"; |
$l_logo_help2 = "the file size must be less than 100KB"; |
$l_logo_help3 = "refresh your browser in order to see the result"; |
} |
if(isset($_FILES['logo'])) |
{ |
unset($result); |
33,7 → 55,7 |
} |
?> |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0"> |
<tr><th>Personnalisation du logo d'organisme</th></tr> |
<tr><th><? echo "$l_title";?></th></tr> |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" |
height="2"></td></tr> |
</TABLE> |
41,8 → 63,8 |
<tr bgcolor="#666666"><td> |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2> |
<tr><td valign="middle" align="left"> |
<CENTER><H3>Logo actuel : <img src="/images/organisme.png" width="90"><BR> |
Vous pouvez sélectionnez un nouveau logo :</H3></CENTER> |
<CENTER><H3><? echo "$l_current_logo";?> : <img src="/images/organisme.png" width="90"></H3></center><BR> |
<? echo "$l_logo_select";?> : |
<FORM action="logo.php" method=POST ENCTYPE="multipart/form-data"> |
<input type="file" name="logo"> |
<input type="hidden" name="MAX_FILE_SIZE" value="100000"> |
54,10 → 76,9 |
echo '<H3>'; echo $result; echo '</H3><BR>'; |
} |
?> |
<CENTER>Attention</CENTER> |
- le logo que vous choisissez doit être un fichier au format libre 'PNG'.<BR> |
- la taille de ce fichier doit être inférieure à 100Ko<BR> |
- rafraîchissez les pages du navigateur pour voir le résultat<BR> |
<li><? echo "$l_logo_help1";?> |
<li><? echo "$l_logo_help2";?> |
<li><? echo "$l_logo_help3";?> |
</TD></TR> |
</TABLE> |
</td></tr> |
/web/index-access-deny.php |
---|
1,6 → 1,8 |
<html> |
<? |
# on discrimine les accès directs sur Alcasar par rapport aux redirections |
$private_ip = "192.168.182.1"; |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){$direct_access="true";} else {$direct_access="false";} |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |
8,23 → 10,29 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'fr'){ |
$l_access_denied = "ACCÈS REFUSÉ"; |
$l_access_controled = "ACCÈS CONTRÔLÉ"; |
$l_required_domain = "Site WEB demandé"; |
$l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées."; |
$l_explain_alcasar = "L'accès au centre de gestion du portail ALCASAR (ALCASAR Control Center) nécéssite une authentification sécurisée."; |
$l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif."; |
$l_contact_alcasar = "<a href=\"https://alcasar/acc\">Accès au centre de gestion</A>"; |
$l_welcome = "Bienvenue sur le portail captif ALCASAR.<br>Vous pouvez : "; |
$l_acc_access = "<a href=\"https://i$private_ip/acc\">Accéder au centre de gestion (ALCASAR Control Center)</A>"; |
$l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Tester l'interception de l'accès à Internet</A>"; |
} |
else { |
$l_access_denied = "ACCESS DENIED"; |
$l_access_controled = "ACCESS CONTROLED"; |
$l_required_domain = "Required WEB site"; |
$l_explain = "Your portal has just detected that the Internet access is down"; |
$l_explain_alcasar = "In order to access to the ALCASAR Control Center (ACC) you should authenticate threw a secure connection."; |
$l_contact = "Contact your Internet provider responsive for more information"; |
$l_contact_alcasar = "<a href=\"https://alcasar/acc\">ALCASAR Control Center access</A>"; |
$l_welcome = "Welcome on the captive portal ALCASAR.<br>You can connect: "; |
$l_acc_access = "<a href=\"https://$private_ip/acc\">to the ALCASAR Control Center (ACC)</A>"; |
$l_internet_access = "<a href=\"https://$private_ip/intercept.php\">Internet intercept page for Test</A>"; |
} |
?> |
<head> |
<title><? echo "ALCASAR - $l_access_denied";?></title> |
<title> |
<? if ($direct_access == "true"){echo "ALCASAR - $l_access_controled";} else {echo "ALCASAR - $l_access_denied";}?> |
</title> |
</head> |
<body bgcolor=#FFFFFF> |
<center> |
32,7 → 40,7 |
<tr> |
<td colspan=2 bgcolor=#FEA700 height=100 align=center> |
<font face=arial,helvetica size=6> |
<b><? echo "$l_access_denied";?></b> |
<? if ($direct_access == "true"){echo "<b>$l_access_controled</b>";} else {echo "<b>$l_access_denied</b>";}?> |
</td> |
</tr> |
<tr> |
47,21 → 55,16 |
<img src="images/logo-alcasar.png"> |
<BR><CENTER>ALCASAR</CENTER> |
</td> |
<td width=550 bgcolor=#FFFFFF align=center valign=center> |
<td width=550 bgcolor=#FFFFFF valign=center> |
<font face=arial,helvetica color=black> |
<font size=3> |
<br><br><br><br> |
<? |
# on traite les accès directs sur Alcasar par rapport aux redirections |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){ |
echo "$l_explain_alcasar <br><br> $l_contact_alcasar";} |
if ($direct_access == "true"){ |
echo "<center>$l_welcome</center> <br><li> $l_acc_access <li> $l_internet_access";} |
else {echo "$l_explain <br><br> $l_contact";} |
?> |
<br><br><br><br> |
</td> |
</tr> |
</table> |
</body> |
</html> |