/web/index.php |
---|
File deleted |
Property changes: |
Deleted: svn:executable |
-* |
\ No newline at end of property |
/web/acc/admin/network.php |
---|
157,7 → 157,7 |
// Fonction de test de connectivité internet |
function internetTest(){ |
$host = "74.125.230.83"; #www.google.fr |
$host = "www.google.fr"; |
$port = "80"; |
//var $num; //non utilisé |
//var $error; //non utilisé |
/web/acc/phpsysinfo/includes/xml/portail.php |
---|
57,7 → 57,7 |
} |
// Fonction de test de connectivité internet |
function internetTest(){ |
$host = "74.125.230.83"; #www.google.fr |
$host = "www.google.fr"; |
$port = "80"; |
//var $num; //non utilisé |
//var $error; //non utilisé |
/web/css/style_intercept.css |
---|
1,48 → 1,10 |
/* |
Feuille de style pour les pages d'interceptions coté utilisateurs d'ALCASAR |
Auteur : Stéphane ERARD |
Licence : GNU GPL |
*/ |
/* règles générales */ |
/* Couleurs de polices */ |
:link, :visited, :hover:link, :hover:visited, H2, #box_url, #box_refuse { |
:link, :visited, :hover:link, :hover:visited { |
FONT-FAMILY: "DejaVu Sans"; |
COLOR: #000000; |
} |
BODY, H, #boite-logon { |
COLOR: #666666; |
} |
#acces_controle, .log_out { |
COLOR: white; |
} |
/* Style de police */ |
BODY, :link, :visited, :hover:link, :hover:visited { |
FONT-FAMILY: "DejaVu Sans"; |
} |
INPUT, #box_url { |
FONT-FAMILY: Arial; |
} |
#acces_controle, #box_url, #box_bienvenue, #cadre_titre SPAN { |
FONT-WEIGHT: bold; |
} |
/*Couleurs de fond */ |
BODY { |
BACKGROUND-COLOR: #666666; |
} |
INPUT, #contenu_acces, #logon, #auth_reussi { |
BACKGROUND-COLOR: #ffffff; |
} |
/* Règles des balises HTML */ |
H1, H2, #aide-certif { |
TEXT-ALIGN: center; |
padding: 0px; |
51,18 → 13,26 |
P, UL, LI{ |
TEXT-ALIGN: justify; |
} |
INPUT { |
BACKGROUND-COLOR: white; |
} |
BODY { |
BACKGROUND-IMAGE: url(/images/fond.png); |
BACKGROUND-REPEAT: repeat-x; |
TEXT-ALIGN: center; |
FONT-FAMILY: "DejaVu Sans"; |
COLOR: #666666; |
FONT-SIZE: 12px; |
BACKGROUND-COLOR: #666666; |
MARGIN: 0px; |
} |
H1 { |
COLOR: #666666; |
FONT-SIZE: 55px; |
} |
H2 { |
COLOR: #000000; |
FONT-SIZE: 30px; |
} |
H6, #aide-certif{ |
114,21 → 84,18 |
POSITION: relative; |
WIDTH: 620px; |
TOP: 20px; |
/* ombrage CSS3*/ |
-moz-box-shadow: 0px 0px 12px #000; |
-webkit-box-shadow: 0px 0px 12px #000; |
box-shadow: 0px 0px 12px #000; |
border: 1px #efefef solid; |
background-color: white; |
} |
#boite-logon { |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
BORDER: #999999 1px solid; |
PADDING: 10px; |
WIDTH: 420px; |
BACKGROUND-REPEAT: repeat-x; |
HEIGHT: 189px; |
COLOR: black; |
} |
#boite-logon TD { |
PADDING-TOP: 10px; |
143,11 → 110,13 |
#auth_reussi { |
WIDTH: 450px; |
BACKGROUND-COLOR: white; |
MARGIN-TOP: 12px; |
PADDING-TOP: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 10px; |
PADDING-BOTTOM: 0px; |
BORDER: 1px #efefef solid; |
} |
.text_auth { |
FONT-SIZE: 20px; |
160,18 → 129,9 |
.log_out { |
FONT-SIZE: 24px; |
TEXT-ALIGN: center; |
COLOR: white; |
MARGIN-TOP: 30px; |
} |
#boite-logon, #auth_reussi, #logon { |
BORDER: 1px #efefef solid; |
/* ombrage css3*/ |
-moz-box-shadow: 0px 0px 6px #000; |
-webkit-box-shadow: 0px 0px 6px #000; |
box-shadow: 0px 0px 6px #000; |
} |
/* style de la page accès contrôlé*/ |
#cadre_titre{ |
182,18 → 142,14 |
MARGIN-LEFT: auto; |
MARGIN-RIGHT: auto; |
Z-INDEX: 2; |
/* ombrage css3 */ |
-moz-box-shadow: 1px 4px 10px #000; |
-webkit-box-shadow: 1px 4px 10px #000; |
box-shadow: 1px 4px 10px #000; |
} |
#cadre_titre .titre_controle { |
BORDER: 2px #666666 solid; |
BACKGROUND-IMAGE: url(/images/fond-bandeau.png); |
BACKGROUND-REPEAT: repeat-x; |
} |
#cadre_titre .titre_refus { |
BORDER: 2px red solid; |
BACKGROUND-IMAGE: url(/images/fond-bandeau-rouge.png); |
BACKGROUND-REPEAT: repeat-x; |
} |
207,7 → 163,9 |
} |
#acces_controle { |
TEXT-ALIGN: center; |
COLOR: white; |
FONT-SIZE: 50px; |
FONT-STYLE: bold; |
PADDING-TOP: 20px; |
PADDING-BOTTOM: 20px; |
MARGIN: 0px; |
223,15 → 181,14 |
HEIGHT: 400px; |
TOP: -20px; |
PADDING-TOP: 0px; |
BACKGROUND-COLOR: white; /* a changer pour #efefef */ |
BORDER-BOTTOM: 2px #666666 solid; |
BORDER-LEFT: 2px #666666 solid; |
BORDER-RIGHT: 2px #666666 solid; |
BORDER-TOP: 0px; |
MARGIN-LEFT: auto; |
MARGIN-RIGHT: auto; |
Z-INDEX: 1; |
/* ombrage CSS3 */ |
-moz-box-shadow: 1px 1px 10px #000; |
-webkit-box-shadow: 1px 1px 10px #000; |
box-shadow: 1px 1px 10px #000; |
} |
#logo_acces IMG, #box_refuse IMG { |
WIDTH: 95px; |
243,12 → 200,16 |
#box_url { |
POSITION: relative; |
TOP: 35px; |
FONT-FAMILY: arial; |
TEXT-ALIGN: right; |
FONT-SIZE: 14px; |
FONT-WEIGHT: bold; |
COLOR: black; |
MARGIN-RIGHT: 20px; |
} |
#box_bienvenue { |
FONT-SIZE: 18px; |
FONT-WEIGHT: bold; |
} |
#cadre_titre SPAN { |
POSITION: absolute; |
256,11 → 217,13 |
WIDTH: 540px; |
LEFT: 100px; |
FONT-SIZE: 14px; |
FONT-WEIGHT: bold; |
COLOR: red; |
TEXT-ALIGN: center; |
} |
#box_refuse { |
FONT-SIZE: 16px; |
COLOR: black; |
MARGIN-LEFT: 130px; |
MARGIN-RIGHT: 20px; |
MARGIN-TOP: 40px; |
289,7 → 252,7 |
#box_1 P, #box_2 P, #box_3 P { |
MARGIN-LEFT: 80px; |
MARGIN-RIGHT: 25px; |
MARGIN-TOP: 8px; |
MARGIN-TOP: 0px; |
FONT-SIZE: 10px; |
} |
#box_1 SPAN, #box_2 SPAN, #box_3 SPAN { |
297,7 → 260,7 |
MARGIN-LEFT: 75px; |
MARGIN-RIGHT: 10px; |
FONT-SIZE: 12px; |
TOP: 2px; |
TOP: -20px; |
} |
.box_menu_courte, .box_menu_large { |
POSITION: absolute; |
304,18 → 267,13 |
HEIGHT: 80px; |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
VERTICAL-ALIGN: bottom; |
VERTICAL-ALIGN: Bbottom; |
TEXT-ALIGN: left; |
BORDER: 2px #efefef solid; |
/* ombrage CSS3 */ |
-moz-box-shadow: 1px 1px 6px #666; |
-webkit-box-shadow: 1px 1px 6px #666; |
box-shadow: 1px 1px 6px #666; |
} |
.box_menu_courte { |
WIDTH: 265px; |
TOP: 150px; |
TOP: 170px; |
} |
.box_menu_courte IMG, .box_menu_large IMG { |
POSITION: absolute; |
/web/index-access-deny.php |
---|
1,8 → 1,7 |
<html> |
<? |
# on discrimine les accès directs sur Alcasar par rapport aux redirections |
$private_ip = "192.168.182.1"; |
$network_pb = "false"; |
# on discrimine les accès directs sur Alcasar par rapport aux redirections |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){$direct_access="true";} else {$direct_access="false";} |
# Choice of language |
$Language = 'en'; |
12,15 → 11,12 |
if($Language == 'fr'){ |
$l_access_denied = "ACCÈS REFUSÉ"; |
$l_access_controled = "ACCÈS CONTROLÉ"; |
$l_access_unavailable = "ACCÈS INDISPONIBLE"; |
$l_required_domain = "Site WEB demandé"; |
$l_explain_access_deny = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées."; |
$l_explain_net_pb = "Votre portail détecte que l'accès à Internet est indisponible."; |
$l_contact_access_deny = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif."; |
$l_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information"; |
$l_explain = "Vous tentez d'accéder à une ressource dont le contenu est réputé contenir des informations inappropriées."; |
$l_contact = "Contactez le responsable de la sécurité (OSSI/RSSI) si vous pensez que ce filtrage est abusif."; |
$l_welcome = "Bienvenue sur la page d'accueil du portail ALCASAR"; |
$l_acc_access = "<a href=\"https://$private_ip/acc\">Accéder au centre de gestion (ALCASAR Control Center)</A>"; |
$l_acc_access_explain = "Accès aux paramètres d'administration du portail. Vous devez posséder un compte d'administration."; |
$l_acc_access_explain = "Accès aux paramètres d'administration. Vous devez avoir le couple login / mot de passe vous autorisant à modifier les paramètres du portail captif."; |
$l_logout = "<a href=\"http://$private_ip:3990/logoff\">Déconnexion</A>"; |
$l_logout_explain = "Vous permet de déconnectez une session ouverte."; |
$l_password_change = "<a href=\"https://$private_ip/pass\">Changer votre mot de passe</A>"; |
30,15 → 26,12 |
else { |
$l_access_denied = "ACCESS DENIED"; |
$l_access_controled = "ACESS CONTROLED"; |
$l_access_unavailable = "ACCESS UNAVAILABLE"; |
$l_required_domain = "Required WEB site"; |
$l_explain_access_deny = "Your portal has just detected that the Internet access is down"; |
$l_explain_net_pb = "Your portal has just detected that the Internet access is down"; |
$l_contact_access_deny = "Contact your security system manager if you think this filtering is abusive."; |
$l_contact_net_pb = "Contact your network responsive or your Internet provider for more information"; |
$l_explain = "Your portal has just detected that the Internet access is down"; |
$l_contact = "Contact your Internet provider responsive for more information"; |
$l_welcome = "Welcome on the captive portal ALCASAR"; |
$l_acc_access = "<a href=\"https://$private_ip/acc\">go to the ALCASAR Control Center (ACC)</A>"; |
$l_acc_access_explain = "Access to the ALCASAR Control Center. You must have an administrative login and password"; |
$l_acc_access_explain = "Admin. access. You must have administrator login and password to modify ALCASAR's properties"; |
$l_logout = "<a href=\"http://$private_ip:3990/logoff\">Loging off</A>"; |
$l_logout_explain = "Logoff if your session is open."; |
$l_paasword_change = "<a href=\"https://$private_ip/pass\">Change your password</A>"; |
60,11 → 53,10 |
<DIV id=\"cadre_titre\" class=\"titre_controle\"> |
<P id=\"acces_controle\" class=\"titre_controle\">$l_access_controled</P>"; |
} |
else { |
else{ |
echo" |
<DIV id=\"cadre_titre\" class=\"titre_refus\"> |
<P id=\"acces_controle\" class=\"titre_refus\">"; |
if ($network_pb) { echo "$l_access_unavailable </P>" } else { echo "$l_access_denied </P>" } |
<P id=\"acces_controle\" class=\"titre_refus\">$l_access_denied</P>"; |
} |
?> |
<DIV id="boite_logo"> |
/web/index-network-pb.php |
---|
0,0 → 1,73 |
<html> |
<? |
$private_ip = "192.168.182.1"; |
# 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_access_denied = "ACCÈS RÈGLEMENTÉ"; |
$l_access_unavailable= "ACCÈS INDISPONIBLE"; |
$l_required_domain = "Site WEB demandé"; |
$l_explain = "Votre portail détecte que l'accès à Internet est indisponible."; |
$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 votre responsable informatique ou votre prestataire Internet pour plus d'information"; |
$l_contact_alcasar = "<a href=\"https://$private_ip\">Accès au centre de gestion</A>"; |
} |
else { |
$l_access_denied = "ACCESS DENIED"; |
$l_access_unavailable= "ACCESS UNAVAILABLE"; |
$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 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://$private_ip\">ALCASAR Control Center access</A>"; |
} |
?> |
<head> |
<title><? echo "ALCASAR - $l_access_denied";?></title> |
</head> |
<body bgcolor=#FFFFFF> |
<center> |
<table border=0 cellspacing=0 cellpadding=2 height=540 width=700> |
<tr> |
<td colspan=2 bgcolor=#FEA700 height=100 align=center> |
<font face=arial,helvetica size=6> |
<? |
# on traite les accès directs sur Alcasar par rapport aux redirections |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar")){ |
echo "<b>$l_access_denied</b>";} |
else {echo "<b>$l_access_unavailable</b>";} |
?> |
</td> |
</tr> |
<tr> |
<td colspan=2 bgcolor=#FFFACD height=30 align=right> |
<font face=arial,helvetica size=3 color=black> |
<b><? echo "$l_required_domain : $_SERVER[HTTP_HOST]";?></b> |
</td> |
</tr> |
<tr> |
<td align=center valign=bottom width=150 bgcolor=#B0C4DE> |
<font face=arial,helvetica size=1 color=black> |
<img height="150" src="images/logo-alcasar.png"> |
</td> |
<td width=550 bgcolor=#FFFFFF align=center 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";} |
else {echo "$l_explain <br><br> $l_contact";} |
?> |
<br><br><br><br> |
</td> |
</tr> |
</table> |
</body> |
</html> |