/web/index-network-pb.php |
---|
File deleted |
/web/acc/admin/network.php |
---|
157,7 → 157,7 |
// Fonction de test de connectivité internet |
function internetTest(){ |
$host = "www.google.fr"; |
$host = "74.125.230.83"; #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 = "www.google.fr"; |
$host = "74.125.230.83"; #www.google.fr |
$port = "80"; |
//var $num; //non utilisé |
//var $error; //non utilisé |
/web/css/style_intercept.css |
---|
1,10 → 1,48 |
/* |
Feuille de style pour les pages d'interceptions coté utilisateurs d'ALCASAR |
Auteur : Stéphane ERARD |
Licence : GNU GPL |
*/ |
/* règles générales */ |
:link, :visited, :hover:link, :hover:visited { |
FONT-FAMILY: "DejaVu Sans"; |
/* Couleurs de polices */ |
:link, :visited, :hover:link, :hover:visited, H2, #box_url, #box_refuse { |
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; |
13,26 → 51,18 |
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{ |
84,18 → 114,21 |
POSITION: relative; |
WIDTH: 620px; |
TOP: 20px; |
border: 1px #efefef solid; |
background-color: white; |
/* ombrage CSS3*/ |
-moz-box-shadow: 0px 0px 12px #000; |
-webkit-box-shadow: 0px 0px 12px #000; |
box-shadow: 0px 0px 12px #000; |
} |
#boite-logon { |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BORDER: #999999 1px solid; |
BACKGROUND-REPEAT: repeat-x; |
PADDING: 10px; |
WIDTH: 420px; |
BACKGROUND-REPEAT: repeat-x; |
HEIGHT: 189px; |
COLOR: black; |
} |
#boite-logon TD { |
PADDING-TOP: 10px; |
110,13 → 143,11 |
#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; |
129,9 → 160,18 |
.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{ |
142,14 → 182,18 |
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; |
} |
163,9 → 207,7 |
} |
#acces_controle { |
TEXT-ALIGN: center; |
COLOR: white; |
FONT-SIZE: 50px; |
FONT-STYLE: bold; |
PADDING-TOP: 20px; |
PADDING-BOTTOM: 20px; |
MARGIN: 0px; |
181,14 → 223,15 |
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; |
200,16 → 243,12 |
#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; |
217,13 → 256,11 |
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; |
252,7 → 289,7 |
#box_1 P, #box_2 P, #box_3 P { |
MARGIN-LEFT: 80px; |
MARGIN-RIGHT: 25px; |
MARGIN-TOP: 0px; |
MARGIN-TOP: 8px; |
FONT-SIZE: 10px; |
} |
#box_1 SPAN, #box_2 SPAN, #box_3 SPAN { |
260,7 → 297,7 |
MARGIN-LEFT: 75px; |
MARGIN-RIGHT: 10px; |
FONT-SIZE: 12px; |
TOP: -20px; |
TOP: 2px; |
} |
.box_menu_courte, .box_menu_large { |
POSITION: absolute; |
267,13 → 304,18 |
HEIGHT: 80px; |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
VERTICAL-ALIGN: Bbottom; |
VERTICAL-ALIGN: bottom; |
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: 170px; |
TOP: 150px; |
} |
.box_menu_courte IMG, .box_menu_large IMG { |
POSITION: absolute; |
/web/index-access-deny.php |
---|
1,7 → 1,8 |
<html> |
<? |
$private_ip = "192.168.182.1"; |
$network_pb = "false"; |
# 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'; |
11,12 → 12,15 |
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 = "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_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_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. Vous devez avoir le couple login / mot de passe vous autorisant à modifier les paramètres du portail captif."; |
$l_acc_access_explain = "Accès aux paramètres d'administration du portail. Vous devez posséder un compte d'administration."; |
$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>"; |
26,12 → 30,15 |
else { |
$l_access_denied = "ACCESS DENIED"; |
$l_access_controled = "ACESS CONTROLED"; |
$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_contact = "Contact your Internet provider responsive for more information"; |
$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_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 = "Admin. access. You must have administrator login and password to modify ALCASAR's properties"; |
$l_acc_access_explain = "Access to the ALCASAR Control Center. You must have an administrative login and password"; |
$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>"; |
53,10 → 60,11 |
<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\">$l_access_denied</P>"; |
<P id=\"acces_controle\" class=\"titre_refus\">"; |
if ($network_pb) { echo "$l_access_unavailable </P>" } else { echo "$l_access_denied </P>" } |
} |
?> |
<DIV id="boite_logo"> |
/web/index.php |
---|
0,0 → 1,109 |
<html> |
<? |
$private_ip = "192.168.182.1"; |
$network_pb = False; |
$direct_access = 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;} |
# 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 REFUSÉ"; |
$l_access_controled = "ACCÈS CONTROLÉ"; |
$l_access_unavailable = "ACCÈS INDISPONIBLE"; |
$l_required_domain = "Site WEB demandé"; |
$l_explain_acc_access = "Accès aux paramètres d'administration du portail. Vous devez posséder un compte d'administration."; |
$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_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_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>"; |
$l_password_change_explain = "Vous redirige sur la pages de changement du mot de passe de votre compte d'accès à internet."; |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>"; |
} |
else { |
$l_access_denied = "ACCESS DENIED"; |
$l_access_controled = "ACESS CONTROLED"; |
$l_access_unavailable = "ACCESS UNAVAILABLE"; |
$l_required_domain = "Required WEB site"; |
$l_explain_acc_access = "Access to the ALCASAR Control Center. You must have an administrative login and password"; |
$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_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_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>"; |
$l_password_change_explain = "Redirects you to the password change's page of your internet access account."; |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>"; |
} |
$l_title = ($direct_access ? $l_access_controled : ($network_pb ? $l_access_unavailable : $l_access_denied)); |
$l_explain = ($direct_access ? $l_explain_acc_access : ($network_pb ? $l_explain_net_pb : $l_explain_access_deny)); |
echo "<head><title>ALCASAR - $l_title"; |
?> |
</title> |
<LINK rel=stylesheet type=text/css href="css/style_intercept.css"> |
</head> |
<BODY> |
<? |
if ($direct_access){ |
echo " |
<DIV id=\"cadre_titre\" class=\"titre_controle\"> |
<P id=\"acces_controle\" class=\"titre_controle\">$l_title</P>"; |
} |
else { |
echo" |
<DIV id=\"cadre_titre\" class=\"titre_refus\"> |
<P id=\"acces_controle\" class=\"titre_refus\">$l_title</P>"; |
} |
?> |
<DIV id="boite_logo"> |
<IMG src="images/organisme.png"> |
</DIV> |
</DIV> |
<DIV id="contenu_acces"> |
<DIV id="box_url"> |
<? if (! $direct_access){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?> |
</DIV> |
<? if ($direct_access){ |
echo " |
<DIV id=\"box_bienvenue\"> |
$l_welcome |
</DIV> |
<DIV class=\"box_menu_courte\" id=\"box_1\"> |
<IMG src=\"images/cle.png\"> |
<SPAN>$l_password_change</SPAN> |
<P>$l_password_change_explain</P> |
</DIV> |
<DIV class=\"box_menu_courte\" id=\"box_2\"> |
<SPAN>$l_logout</SPAN> |
<IMG src=\"images/globe.png\"> |
<P>$l_logout_explain</P> |
</DIV> |
<DIV class=\"box_menu_large\" id=\"box_3\"> |
<SPAN>$l_acc_access</SPAN> |
<IMG src=\"images/logo-alcasar.png\"> |
<P>$l_explain</P> |
</DIV>";} |
else {echo " |
<DIV id=\"box_refuse\"> |
<img src=\"images/interdit.png\"> |
<P>$l_explain</P> |
</DIV> |
<DIV id=\"liens_redir\"> |
<P>$l_back_page</P> |
</DIV>";}?> |
</DIV> |
</BODY> |
</html> |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |