/alcasar.sh |
---|
506,30 → 506,22 |
echo "- URL d'accès au centre de gestion : https://$PRIVATE_IP" >> $FIC_PARAM |
echo " ou https://alcasar" >> $FIC_PARAM |
# Définition du premier compte lié au profil 'admin' |
if [ "$mode" = "install" ] |
then |
header_install |
echo "Pour administrer Alcasar via le centre de gestion WEB, trois profils de comptes ont été définis :" |
echo " - le profil 'admin' capable de réaliser toutes les opérations" |
echo " - le profil 'backup' lié uniquement aux fonctions d'archivage" |
echo " - le profil 'manager' lié uniquement aux fonctions de gestion des usagers" |
echo "" |
echo "Définissez le premier compte du profil 'admin' :" |
echo |
echo -n "Nom : " |
read admin_portail |
echo "- Nom du premier compte lié au profil 'admin' : $admin_portail" >> $FIC_PARAM |
header_install |
echo "Définissez un premier compte d'administration du portail" |
echo |
echo -n "Nom : " |
read admin_portail |
echo "- Nom du premier compte lié au profil 'admin' : $admin_portail" >> $FIC_PARAM |
# Création du fichier de clés de ce compte dans le profil "admin" |
[ -d $DIR_DEST_ETC/digest ] && rm -rf $DIR_DEST_ETC/digest |
mkdir -p $DIR_DEST_ETC/digest |
chmod 755 $DIR_DEST_ETC/digest |
until [ -s $DIR_DEST_ETC/digest/key_admin ] |
do |
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portail |
done |
[ -d $DIR_DEST_ETC/digest ] && rm -rf $DIR_DEST_ETC/digest |
mkdir -p $DIR_DEST_ETC/digest |
chmod 755 $DIR_DEST_ETC/digest |
until [ -s $DIR_DEST_ETC/digest/key_admin ] |
do |
/usr/sbin/htdigest -c $DIR_DEST_ETC/digest/key_admin $HOSTNAME $admin_portail |
done |
# Liste des comptes liés aux Création des fichiers de clés des deux autres profils (backup + manager) contenant ce compte |
$DIR_DEST_SBIN/alcasar-profil.sh --list |
fi |
$DIR_DEST_SBIN/alcasar-profil.sh --list |
# synchronisation horaire |
ntpd -q -g & |
# Sécurisation du centre |
/CHANGELOG |
---|
2,11 → 2,15 |
************ CHANGELOG *********** |
---- 2.1a ---- |
- exception au filtrage réseau et DNS (double instance de dnsmasq) |
- ajout d'un commentaire pour les exceptions à l'authentification |
- possibilité d'imprimer un ticket de session et simplification des champs de saisie (thank's to Geoffroy MUSITELLI) |
- nouveau look graphique (thank's to Stéphane Erard) |
- page de status via JSON (thank's to Stéphane Weber) |
- intégration du filtrage 'safesearch' (filtrage des réponses des moteurs de recherche). |
- installation à partir d'un mandriva 2010.2 |
- travail d'HAVP en mémoire plutôt que sur le disque |
- distinction des fichiers de log (traçabilité - ssh - accès exterieur) |
- sécurisation de la base "digest" |
- amélioration du processus de mise à jour |
---- 2.0.1 ---- |
- simplification du processus de mise à jour (prise en compte mdv 2010.2) |
/scripts/alcasar-conf.sh |
---|
50,32 → 50,20 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE |
cp -rf /etc/dansguardian/lists/blacklists/ossi $DIR_UPDATE |
# sauvegarde des fichiers de filtrage et d'exception |
# sauvegarde des fichiers : de filtrage, d'exception, digest, etc. |
mkdir $DIR_UPDATE/etc/ |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/ |
rm $DIR_UPDATE/etc/alcasar-dns-name # on supprime car changement de format à partir de la version 2.1 |
rm $DIR_UPDATE/etc/alcasar-macallowed # on supprime car changement de format à partir de la version 2.1 |
# Sauvegarde des comptes de gestion |
# à partir des versions > 2.0, tout est dans $DIR/ETC (cf. sauvegarde de ce répertoire) |
if [ -e $DIR_WEB/digest ] |
then |
cp -rf $DIR_WEB/digest $DIR_UPDATE/etc/ # versions < 2.x |
fi |
if [ -e $DIR_WEB/acc/digest ] |
then |
cp -rf $DIR_WEB/acc/digest $DIR_UPDATE/etc/ # version = 2.0 |
fi |
# sauvegarde du fichier alcasar-iptables.sh (et alcasar-iptables-local.sh si migration depuis V<2.x) |
# sauvegarde du fichier alcasar-iptables.sh (pour savoir si on filtre les protocoles) |
cp -f $DIR_BIN/alcasar-iptables.sh $DIR_UPDATE |
if [ -e /usr/local/bin/alcasar-iptables-local.sh ] |
then |
cp -f /usr/local/bin/alcasar-iptables-local.sh $DIR_UPDATE/etc/old-version_alcasar-iptables-local.sh |
fi |
# création de l'archive |
cd /tmp |
tar -cf alcasar-conf.tar conf/ |
gzip -f alcasar-conf.tar |
rm -rf $DIR_UPDATE |
# particularismes des versions |
rm $DIR_UPDATE/etc/alcasar-dns-name # changement du format à partir de la version 2.1 |
rm $DIR_UPDATE/etc/alcasar-macallowed # changement du format à partir de la version 2.1 |
# voir pour $DIR_UPDATE/etc/digest/ |
;; |
--load|-load) |
cd /tmp |
/scripts/alcasar-urpmi.sh |
---|
87,7 → 87,7 |
echo "Updated RPM download. Please wait ..." |
echo "Il est temps d'aller prendre un café :-) " |
echo "You should now take a Beer ;-) " |
urpmi --auto --auto-update --quiet --test --retry 2 |
urpmi --downloader wget --auto --auto-update --quiet --test --retry 2 |
if [ "$?" != "0" ] |
then |
echo |
/scripts/sbin/alcasar-profil.sh |
---|
19,6 → 19,7 |
# ajoute les comptes du profil "admin" aux autres profils |
# crée le fichier de clés contenant tous les compte (pour l'accès au centre de gestion) |
function concat () { |
> $DIR_KEY/key_all |
for i in $PROFILS |
do |
cp -f $DIR_KEY/key_only_$ADM_PROFIL $DIR_KEY/key_$i |
48,10 → 49,6 |
touch $DIR_KEY/key_only_$i |
fi |
done |
if [ ! -e $DIR_KEY/key_all ] |
then |
touch $DIR_KEY/key_all |
fi |
concat |
if [ $nb_args -eq 0 ] |
then |
/web/intercept.php |
---|
337,7 → 337,7 |
function popUp(URL) { |
if (self.name != \"alcasar_popup\") { |
alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=250,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no'); |
alcasar_popup = window.open(URL, 'alcasar_popup', 'width=500,height=400,directories=no,resizable=no,scrollbars=yes,location=no,toolbar=no,statusbar=no,menubar=no'); |
} |
} |
/web/images/globe_acces_70.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/globe_70.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/.directory |
---|
0,0 → 1,5 |
[Dolphin] |
AdditionalInfo=3 |
ShowPreview=true |
Timestamp=2011,3,15,23,49,25 |
ViewMode=1 |
/web/images/cle_70.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/fond-bdd.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
/web/images/certificat.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/cle_ombre.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/fond-bdd_grand.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/logo-alcasar_70.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/fond-bdd_rouge.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/globe_warning_70.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/images/bg.png |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
Added: svn:mime-type |
+image/png |
\ No newline at end of property |
/web/acc/manager/htdocs/group_new.php |
---|
44,8 → 44,8 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>"> |
<link rel="stylesheet" href="/css/style.css"> |
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" /> |
<script type="text/javascript" src="/javascript/epoch_classes.js"></script> |
<script type="text/javascript" src="/javascript/fonctions.js"></script> |
<script type="text/javascript" src="/js/epoch_classes.js"></script> |
<script type="text/javascript" src="/js/fonctions.js"></script> |
<script language="javascript" type="text/javascript"> |
/*Insertion du calendrier*/ |
var dp_cal; |
/web/acc/manager/htdocs/ticket_user.php |
---|
1,4 → 1,5 |
<?php |
// ticket d'impression (thank's to Geoffroy MUSITELLI) |
//--recupération des variables provenant du formulaire |
// Etiquettes |
$l_login_imp=$_POST["l_login_imp"]; |
/web/acc/manager/htdocs/user_new.php |
---|
1,4 → 1,5 |
<?php |
// ticket d'impression (thank's to Geoffroy MUSITELLI) |
//gestion de la langue |
$origine='user_new'; |
if (is_file("../lib/langues.php")) |
25,11 → 26,11 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>"> |
<link rel="stylesheet" href="/css/style.css"> |
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" /> |
<script type="text/javascript" src="/javascript/epoch_classes.js"></script> |
<script type="text/javascript" src="/javascript/fonctions.js"></script> |
<script type="text/javascript" src="/js/epoch_classes.js"></script> |
<script type="text/javascript" src="/js/fonctions.js"></script> |
<script language="javascript" type="text/javascript"> |
/*Insertion du calendrier*/ |
/*Insertion du calendrier */ |
var dp_cal; |
window.onload = function () { |
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container')); |
69,7 → 70,7 |
<tr><td> |
<?php |
function sec_imp($time) |
/*Formatage des secondes avant l'impression*/ |
/*Formatage des secondes avant l'impression */ |
{ |
$heure=0;$minute=0;$seconde=0; |
$heure = floor($time/3600); |
/web/acc/manager/lib/sql/create_user.php |
---|
17,7 → 17,7 |
if ($link){ |
if (is_file("../lib/crypt/$config[general_encryption_method].php")){ |
include("../lib/crypt/$config[general_encryption_method].php"); |
/*Ajout en vue de l'impression des données*/ |
/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/ |
$passwd_imp = $passwd; |
/*Fin Ajout*/ |
$passwd = da_encrypt($passwd); |
93,7 → 93,7 |
$type = 2; |
} |
$val = $$attrmap["$key"]; |
/*Ajout en vue de l'impression des données*/ |
/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/ |
if($key == "Session-Timeout") $sto_imp = $val; |
if($key == "Max-Daily-Session") $mds_imp = $val; |
if($key == "Max-Monthly-Session") $mms_imp = $val; |
/web/acc/manager/lib/sql/group_info.php |
---|
0,0 → 1,116 |
<?php |
require('../lib/sql/attrmap.php'); |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php")) |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php"); |
else{ |
echo "<b>Could not include SQL library</b><br>\n"; |
exit(); |
} |
if ($config[sql_use_operators] == 'true'){ |
$op = ',op'; |
$use_op = 1; |
}else{ |
$op = ""; |
$use_op = 0; |
} |
$group_exists = 'no'; |
$link = @da_sql_pconnect($config); |
if ($link){ |
if ($login == ''){ |
unset($existing_groups); |
$res = @da_sql_query($link,$config, |
"SELECT COUNT(*) as counter,groupname FROM $config[sql_usergroup_table] |
GROUP BY groupname;"); |
if ($res){ |
while(($row = @da_sql_fetch_array($res,$config))){ |
$name = $row[groupname]; |
$existing_groups["$name"] = $row[counter]; |
} |
if (isset($existing_groups)) |
ksort($existing_groups); |
} |
else |
echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n"; |
} |
else{ |
unset($item_vals); |
unset($tmp); |
unset($group_members); |
unset($existing_groups); |
$res = @da_sql_query($link,$config, |
"SELECT attribute,value $op FROM $config[sql_groupcheck_table] WHERE groupname = '$login';"); |
if ($res){ |
if (@da_sql_num_rows($res,$config)) |
$group_exists = 'yes'; |
while(($row = @da_sql_fetch_array($res,$config))){ |
$attr = $row[attribute]; |
$val = $row[value]; |
if ($use_op){ |
$oper = $row[op]; |
$tmp["$attr"][operator][]="$oper"; |
} |
$tmp["$attr"][]="$val"; |
$tmp["$attr"][count]++; |
} |
$res = @da_sql_query($link,$config, |
"SELECT attribute,value $op FROM $config[sql_groupreply_table] WHERE groupname = '$login';"); |
if ($res){ |
if (@da_sql_num_rows($res,$config)) |
$group_exists = 'yes'; |
while(($row = @da_sql_fetch_array($res,$config))){ |
$attr = $row[attribute]; |
$val = $row[value]; |
/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/ |
if($attr == "Session-Timeout") $sto_imp = $val; |
if($attr == "Max-Daily-Session") $mds_imp = $val; |
if($attr == "Max-Monthly-Session") $mms_imp = $val; |
/*Fin Ajout*/ |
if ($use_op){ |
$oper = $row[op]; |
$tmp["$attr"][operator][]="$oper"; |
} |
$tmp["$attr"][] = "$val"; |
$tmp["$attr"][count]++; |
} |
} |
else |
echo "<b>Database query failed partially: " . da_sql_error($link,$config) . "</b><br>\n"; |
$res = @da_sql_query($link,$config, |
"SELECT username FROM $config[sql_usergroup_table] WHERE groupname = '$login' ORDER BY username;"); |
if ($res){ |
if (@da_sql_num_rows($res,$config)) |
$group_exists = 'yes'; |
while(($row = @da_sql_fetch_array($res,$config))){ |
$member = $row[username]; |
$group_members[] = "$member"; |
} |
} |
else |
echo "<b>Database query failed partially: " . da_sql_error($link,$config) . "</b><br>\n"; |
if (isset($tmp)){ |
foreach(array_keys($tmp) as $val){ |
if ($val == '') |
continue; |
$key = $rev_attrmap["$val"]; |
if ($key == ''){ |
$key = $val; |
$attrmap["$key"] = $val; |
$attr_type["$key"] = 'replyItem'; |
$rev_attrmap["$val"] = $key; |
} |
$item_vals["$key"] = $tmp[$val]; |
$item_vals["$key"][count] = $tmp[$val][count]; |
if ($use_op) |
$item_vals["$key"][operator] = $tmp[$val][operator]; |
} |
} |
} |
else |
echo "<b>Database query failed: " . da_sql_error($link,$config) . "</b><br>\n"; |
} |
} |
else |
echo "<b>Could not connect to SQL database</b><br>\n"; |
?> |
/web/pass/index.php |
---|
21,7 → 21,7 |
$R_form_button = "Modify"; |
$R_form_result1 = "Your password has been successfuly changed"; |
$R_form_result2 = "Error when trying to change password"; |
} |
$R_retour = "ALCASAR home page";} |
if($Language == 'de'){ |
$R_title = "User password change"; |
$R_form_l1 = "User"; |
31,7 → 31,7 |
$R_form_button = "Modify"; |
$R_form_result1 = "Your password has been successfuly changed"; |
$R_form_result2 = "Error when trying to change password"; |
} |
$R_retour = "ALCASAR home page";} |
if($Language == 'nl'){ |
$R_title = "User password change"; |
$R_form_l1 = "User"; |
41,7 → 41,7 |
$R_form_button = "Modify"; |
$R_form_result1 = "Your password has been successfuly changed"; |
$R_form_result2 = "Error when trying to change password"; |
} |
$R_retour = "ALCASAR home page";} |
if($Language == 'en'){ |
$R_title = "User password change"; |
$R_form_l1 = "User"; |
51,7 → 51,7 |
$R_form_button = "Modify"; |
$R_form_result1 = "Your password has been successfuly changed"; |
$R_form_result2 = "Error when trying to change password"; |
} |
$R_retour = "ALCASAR home page";} |
if($Language == 'fr'){ |
$R_title = "Changement de mot de passe utilisateur"; |
$R_form_l1 = "Utilisateur"; |
61,44 → 61,45 |
$R_form_button = "Modifier"; |
$R_form_result1 = "Votre mot de passe a été modifié avec succès"; |
$R_form_result2 = "Erreur de changement de mot de passe"; |
$R_retour = "Retour à la page d'accueil ALCASAR"; |
} |
echo " |
<html> |
<head> |
<title>$R_title</title> |
<meta http-equiv=\"Cache-control\" content=\"no-cache\"> |
<meta http-equiv=\"Pragma\" content=\"no-cache\"> |
<link rel=\"stylesheet\" href=\"/css/style.css\" type=\"text/css\"> |
</head> |
<body> |
<center> |
<table border=0 width=400 cellpadding=0 cellspacing=2> |
<tr> |
<td> |
<form name=\"master\" action=\"$current_page\" method=\"post\"> |
<input type=hidden name=action value=checkpass> |
<br> |
<table border=0 width=540 cellpadding=1 cellspacing=1> |
<tr valign=top> |
<td width=340></td> |
<td bgcolor=\"black\" width=200> |
<table border=0 width=100% cellpadding=2 cellspacing=0> |
<tr bgcolor=\"#907030\" align=right valign=top><th> |
<font color=\"white\">$R_title</font> |
</th></tr> |
</table> |
</td></tr> |
<tr bgcolor=\"black\" valign=top><td colspan=2> |
<table border=0 width=100% cellpadding=12 cellspacing=0 bgcolor=\"#ffffd0\" valign=top> |
<tr><td> |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor=\"#ffffe0\" valign=top> |
<tr><td align=center bgcolor=\"#d0ddb0\">$R_form_l1</td><td><input type=\"text\" name=\"login\" value=\"\"></td></tr> |
<tr><td align=center bgcolor=\"#d0ddb0\">$R_form_l2</td><td><input type=\"password\" name=\"passwd\" value=\"\"></td></tr> |
<tr><td align=center bgcolor=\"#d0ddb0\">$R_form_l3</td><td><input type=\"password\" name=\"newpasswd\" value=\"\"></td></tr> |
<tr><td align=center bgcolor=\"#d0ddb0\">$R_form_l4</td><td><input type=\"password\" name=\"newpasswd2\" value=\"\"> <input type=\"submit\" class=button value=\"$R_form_button\"></td></tr> |
</table> |
</table> |
</table>"; |
<head> |
<title>$R_title</title> |
<meta http-equiv=\"Cache-control\" content=\"no-cache\"> |
<meta http-equiv=\"Pragma\" content=\"no-cache\"> |
<link rel=\"stylesheet\" href=\"../css/pass.css\" type=\"text/css\"> |
</head> |
<body> |
<div id=\"page\"> |
<div id=\"block_pass\"> |
<form name=\"master\" action=\"$current_page\" method=\"post\"> |
<input type=hidden name=action value=checkpass> |
<p id=\"titre_pass\">$R_title</p> |
<table id=\"champs_pass\"> |
<tr> |
<td class=\"first_item\">$R_form_l1</td> |
<td><input type=\"text\" name=\"login\" value=\"\" label=\"test\"></td> |
</tr> |
<tr> |
<td class=\"first_item\">$R_form_l2</td> |
<td><input type=\"password\" name=\"passwd\" value=\"\"></td> |
</tr> |
<tr> |
<td class=\"first_item\">$R_form_l3</td> |
<td><input type=\"password\" name=\"newpasswd\" value=\"\"></td> |
</tr> |
<tr> |
<td class=\"first_item\">$R_form_l4</td> |
<td><input type=\"password\" name=\"newpasswd2\" value=\"\"></td> |
</tr> |
</table> |
<span><a href=\"http://alcasar\">$R_retour</a></span> |
<input type=\"submit\" class=\"button\" id=\"btn_pass\" value=\"$R_form_button\"> |
</div> |
</div> |
"; |
if (is_file("sql/drivers/$config[sql_type]/functions.php")) |
include_once("sql/drivers/$config[sql_type]/functions.php"); |
133,7 → 134,7 |
echo "<b>Could not open encryption library file</b><br>\n"; |
} |
} |
echo "<tr><td colspan=3 align=center>$msg</td></tr>\n"; |
echo "<span align=center>$msg</span>\n"; |
} |
} |
?> |
/web/css/style_intercept.css |
---|
1,122 → 1,124 |
/* |
Feuille de style pour les pages d'interceptions coté utilisateurs d'ALCASAR |
Auteur : Stéphane ERARD |
Feuille de style pour les pages d'interceptions coté utilisateurs d'ALCASAR |
Auteur : Stéphane ERARD |
Licence : GNU GPL |
*/ |
/* règles générales */ |
/* règles générales */ |
/* Couleurs de polices */ |
:link, :visited, :hover:link, :hover:visited, H2, #box_url, #box_refuse { |
COLOR: #000000; |
color: #000000; |
} |
BODY, H, #boite-logon { |
COLOR: #666666; |
color: #666666; |
} |
#acces_controle, .log_out { |
COLOR: white; |
color: white; |
} |
/* Style de police */ |
BODY, :link, :visited, :hover:link, :hover:visited { |
FONT-FAMILY: "DejaVu Sans"; |
font-family: "DejaVu Sans"; |
} |
INPUT, #box_url { |
FONT-FAMILY: Arial; |
font-family: arial; |
} |
#acces_controle, #box_url, #box_bienvenue, #cadre_titre SPAN { |
FONT-WEIGHT: bold; |
font-weight: bold; |
} |
.box_menu :link , .box_menu :visited, .box_menu :hover:link, .box_menu :hover:visited { |
text-decoration: none; |
} |
/*Couleurs de fond */ |
BODY { |
BACKGROUND-COLOR: #666666; |
background-color: #666666; |
} |
INPUT, #contenu_acces, #logon, #auth_reussi { |
BACKGROUND-COLOR: #ffffff; |
background-color: #ffffff; |
} |
/* Règles des balises HTML */ |
/* R�gles des balises HTML */ |
H1, H2, #aide-certif { |
TEXT-ALIGN: center; |
text-align: center; |
padding: 0px; |
margin: 3px; |
} |
P, UL, LI{ |
TEXT-ALIGN: justify; |
text-align: justify; |
} |
BODY { |
BACKGROUND-IMAGE: url(/images/fond.png); |
BACKGROUND-REPEAT: repeat-x; |
TEXT-ALIGN: center; |
FONT-SIZE: 12px; |
MARGIN: 0px; |
background-image: url(../images/fond.png); |
background-repeat: repeat-x; |
text-align: center; |
font-size: 12px; |
margin: 0px; |
} |
H1 { |
FONT-SIZE: 55px; |
font-size: 55px; |
} |
H2 { |
FONT-SIZE: 30px; |
font-size: 30px; |
} |
H6, #aide-certif{ |
FONT-SIZE: 100%; |
font-size: 100%; |
} |
UL { |
MARGIN: 5px; |
PADDING-BOTTOM: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 115px; |
PADDING-TOP: 5px; |
margin: 5px; |
padding-bottom: 5px; |
padding-left: 10px; |
padding-right: 115px; |
padding-top: 5px; |
} |
LI { |
LIST-STYLE-TYPE: square; |
PADDING-TOP: 2px; |
list-style-type: square; |
padding-top: 2px; |
} |
TABLE { |
FONT-SIZE: 90%; |
font-size: 90%; |
} |
IMG { |
HEIGHT: 150px; |
height: 150px; |
} |
INPUT { |
BORDER: #666666 1px solid; |
PADDING: 2px; |
FONT-FAMILY: Arial; |
HEIGHT: 22px; |
border: #666666 1px solid; |
padding: 2px; |
font-family: arial; |
height: 22px; |
} |
/* Taille et position des logos */ |
/* taille et position des logos */ |
#logo-alcasar { |
POSITION: absolute; |
BOTTOM: 25px; |
RIGHT: 5px; |
HEIGHT: 130px; |
position: absolute; |
bottom: 25px; |
right: 5px; |
height: 130px; |
} |
#logo-organ { |
POSITION: relative; |
TOP: 0px; |
RIGHT: -10px; |
MAX-WIDTH: 150px; |
MAX-HEIGHT: 150px; |
position: relative; |
top: 0px; |
right: -10px; |
max-width: 150px; |
max-height: 150px; |
} |
/* Placement et proportion de la boite de saisie et de l'aide */ |
/* placement et proportion de la boite de saisie et de l'aide */ |
#logon { |
POSITION: relative; |
WIDTH: 620px; |
TOP: 20px; |
position: relative; |
width: 620px; |
top: 20px; |
/* ombrage CSS3*/ |
/* ombrage css3*/ |
-moz-box-shadow: 0px 0px 12px #000; |
-webkit-box-shadow: 0px 0px 12px #000; |
124,46 → 126,46 |
} |
#boite-logon { |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
PADDING: 10px; |
WIDTH: 420px; |
HEIGHT: 189px; |
background-image: url(../images/fond-bdd_grand.png); |
background-repeat: repeat-x; |
padding: 10px; |
width: 420px; |
height: 189px; |
} |
#boite-logon TD { |
PADDING-TOP: 10px; |
padding-top: 10px; |
} |
#boite-info { |
BORDER: 0px; |
MARGIN-TOP: 25px; |
WIDTH: 580px; |
PADDING-TOP: 10px; |
border: 0px; |
margin-top: 25px; |
width: 580px; |
padding-top: 10px; |
} |
/*Boite de dialogue de deconnection*/ |
/*boite de dialogue de deconnection*/ |
#auth_reussi { |
WIDTH: 450px; |
MARGIN-TOP: 12px; |
PADDING-TOP: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 10px; |
PADDING-BOTTOM: 0px; |
width: 450px; |
margin-top: 12px; |
padding-top: 5px; |
padding-left: 10px; |
padding-right: 10px; |
padding-bottom: 0px; |
} |
.text_auth { |
FONT-SIZE: 20px; |
font-size: 20px; |
} |
.lien_deco { |
TEXT-ALIGN: center; |
FONT-SIZE: 18px; |
MARGIN-BOTTOM: 15px; |
text-align: center; |
font-size: 18px; |
margin-bottom: 15px; |
} |
.log_out { |
FONT-SIZE: 24px; |
TEXT-ALIGN: center; |
MARGIN-TOP: 30px; |
font-size: 24px; |
text-align: center; |
margin-top: 30px; |
} |
#boite-logon, #auth_reussi, #logon { |
BORDER: 1px #efefef solid; |
border: 1px #efefef solid; |
/* ombrage css3*/ |
171,17 → 173,27 |
-webkit-box-shadow: 0px 0px 6px #000; |
box-shadow: 0px 0px 6px #000; |
} |
#liens_redir { |
position: relative; |
bottom: -100px; |
left: 90px; |
text-align: center; |
} |
#liens_redir P A { |
font-size: 12px; |
text-align: center; |
margin: 15px; |
} |
/* style de la page accès controlé*/ |
/* style de la page accès contrôlé*/ |
#cadre_titre{ |
POSITION: relative; |
WIDTH: 730px; |
HEIGHT: 98px; |
MARGIN-TOP: 40px; |
MARGIN-LEFT: auto; |
MARGIN-RIGHT: auto; |
Z-INDEX: 2; |
position: relative; |
width: 730px; |
height: 98px; |
margin-top: 40px; |
margin-left: auto; |
margin-right: auto; |
z-index: 2; |
/* ombrage css3 */ |
190,42 → 202,42 |
box-shadow: 1px 4px 10px #000; |
} |
#cadre_titre .titre_controle { |
BACKGROUND-IMAGE: url(/images/fond-bandeau.png); |
BACKGROUND-REPEAT: repeat-x; |
background-image: url(../images/fond-bandeau.png); |
background-repeat: repeat-x; |
} |
#cadre_titre .titre_refus { |
BACKGROUND-IMAGE: url(/images/fond-bandeau-rouge.png); |
BACKGROUND-REPEAT: repeat-x; |
background-image: url(../images/fond-bandeau-rouge.png); |
background-repeat: repeat-x; |
} |
#boite_logo{ |
POSITION: absolute; |
TOP: -30px; |
LEFT: -30px; |
WIDTH: 150px; |
HEIGHT: 150px; |
Z-INDEX: 2; |
position: absolute; |
top: -30px; |
left: -50px; |
width: 150px; |
height: 150px; |
z-index: 2; |
} |
#acces_controle { |
TEXT-ALIGN: center; |
FONT-SIZE: 40px; |
PADDING-TOP: 25px; |
PADDING-BOTTOM: 27px; |
MARGIN: 0px; |
text-align: center; |
font-size: 40px; |
padding-top: 25px; |
padding-bottom: 27px; |
margin: 0px; |
} |
#logo_acces { |
POSITION: relative; |
TOP: 0px; |
LEFT: 0px; |
position: relative; |
top: 0px; |
left: 0px; |
} |
#contenu_acces { |
POSITION: relative; |
WIDTH: 640px; |
HEIGHT: 400px; |
TOP: -20px; |
PADDING-TOP: 0px; |
MARGIN-LEFT: auto; |
MARGIN-RIGHT: auto; |
Z-INDEX: 1; |
position: relative; |
width: 640px; |
height: 400px; |
top: -20px; |
padding-top: 0px; |
margin-left: auto; |
margin-right: auto; |
z-index: 1; |
/* ombrage CSS3 */ |
234,87 → 246,74 |
box-shadow: 1px 1px 10px #000; |
} |
#logo_acces IMG, #box_refuse IMG { |
WIDTH: 95px; |
HEIGHT: 95px; |
width: 95px; |
height: 95px; |
} |
/* Boite des liens*/ |
#box_url { |
POSITION: relative; |
TOP: 35px; |
TEXT-ALIGN: right; |
FONT-SIZE: 14px; |
MARGIN-RIGHT: 20px; |
position: relative; |
top: 35px; |
text-align: right; |
font-size: 14px; |
margin-right: 20px; |
} |
#box_bienvenue { |
FONT-SIZE: 18px; |
font-size: 18px; |
} |
#cadre_titre SPAN { |
POSITION: absolute; |
TOP: 70px; |
WIDTH: 510px; |
LEFT: 110px; |
FONT-SIZE: 14px; |
COLOR: red; |
TEXT-ALIGN: center; |
BORDER: 2px red solid; |
PADDING: 2px; |
BACKGROUND-COLOR: white; |
position: absolute; |
top: 70px; |
width: 510px; |
left: 110px; |
font-size: 14px; |
color: red; |
text-align: center; |
border: 2px red solid; |
padding: 2px; |
background-color: white; |
} |
#contenu_acces SPAN { |
POSITION: relative; |
BOTTOM: -150px; |
FONT-FAMILY: "courier new"; |
position: relative; |
bottom: -150px; |
font-family: "courier new"; |
} |
#box_refuse { |
FONT-SIZE: 16px; |
MARGIN-LEFT: 130px; |
MARGIN-RIGHT: 20px; |
MARGIN-TOP: 40px; |
WIDTH: 460px; |
font-size: 16px; |
margin-left: 130px; |
margin-right: 20px; |
margin-top: 40px; |
width: 460px; |
} |
#box_refuse IMG { |
POSITION: absolute; |
TOP: -10px; |
LEFT: -110px; |
position: absolute; |
top: -10px; |
left: -110px; |
} |
#box_refuse, #box_bienvenue { |
POSITION: relative; |
TOP: 55px; |
position: relative; |
top: 55px; |
} |
#box_1 { |
LEFT: 40px; |
.box_menu IMG { |
position: absolute; |
width: 70px; |
height: 70px; |
top: -25px; |
} |
#box_2 { |
LEFT: 350px; |
.box_menu, #logon , #contenu_acces, #acces_controle, #cadre_titre, #box_info{ |
/* Arrondi CSS3 Firefox*/ |
-moz-border-radius: 10px; |
/* Arrondi CSS3 Autres Nav*/ |
border-radius: 10px; |
} |
#box_3 { |
WIDTH: 575px; |
LEFT: 40px; |
BOTTOM: 20px; |
} |
#box_1 P, #box_2 P, #box_3 P { |
MARGIN-LEFT: 80px; |
MARGIN-RIGHT: 25px; |
MARGIN-TOP: 8px; |
FONT-SIZE: 10px; |
} |
#box_1 SPAN, #box_2 SPAN, #box_3 SPAN { |
POSITION: relative; |
MARGIN-LEFT: 75px; |
MARGIN-RIGHT: 5px; |
FONT-SIZE: 12px; |
TOP: 2px; |
} |
.box_menu_courte, .box_menu_large { |
POSITION: absolute; |
HEIGHT: 80px; |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
VERTICAL-ALIGN: bottom; |
TEXT-ALIGN: left; |
BORDER: 2px #efefef solid; |
.box_menu { |
position: absolute; |
height: 35px; |
width: 310px; |
background-image: url(../images/fond-bdd.png); |
background-repeat: repeat-x; |
/* ombrage CSS3 */ |
-moz-box-shadow: 1px 1px 6px #666; |
321,31 → 320,94 |
-webkit-box-shadow: 1px 1px 6px #666; |
box-shadow: 1px 1px 6px #666; |
} |
.box_menu_courte { |
WIDTH: 265px; |
TOP: 150px; |
.div-cache { |
visibility: hidden; |
position: absolute; |
top: -1000px; |
} |
.box_menu_courte IMG, .box_menu_large IMG { |
POSITION: absolute; |
WIDTH: 100px; |
HEIGHT: 100px; |
TOP: -40px; |
LEFT: -30px; |
#box_conn { |
top: 120px; |
} |
.box_menu_courte, .box_menu_large, #logon , #contenu_acces, #acces_controle, #cadre_titre { |
/* Arrondi CSS3 Firefox*/ |
-moz-border-radius: 10px; |
/* Arrondi CSS3 Autres Nav*/ |
border-radius: 10px; |
#box_certif { |
top: 190px; |
} |
#liens_redir { |
POSITION: relative; |
BOTTOM: -100px; |
LEFT: 90px; |
TEXT-ALIGN: center; |
#box_mdp { |
top: 260px; |
} |
#liens_redir P A { |
FONT-SIZE: 12px; |
TEXT-ALIGN: center; |
MARGIN: 15px; |
#box_acc { |
top: 330px; |
} |
#box_certif, #box_acc { |
left: 60px; |
text-align: right; |
} |
#box_conn, #box_mdp { |
left: 20px; |
text-align: left; |
} |
#box_conn IMG, #box_mdp IMG { |
left: 5px; |
} |
#box_certif IMG, #box_acc IMG { |
right: 5px; |
} |
#box_conn SPAN, #box_certif SPAN, #box_mdp SPAN, #box_acc SPAN { |
position: relative; |
font-size: 12px; |
font-weight: bold; |
top: 10px; |
} |
#box_conn SPAN, #box_mdp SPAN { |
margin-left: 80px; |
} |
#box_certif SPAN, #box_acc SPAN { |
margin-right: 80px; |
} |
/*Animation visuel des cadres liens (Gecko et ie9)*/ |
#box_conn:hover, #box_certif:hover, #box_mdp:hover, #box_acc:hover { |
/* cursor: pointer;*/ |
background-image: url(../images/fond-bdd_rouge.png); |
background-repeat: repeat-x; |
/* ombrage CSS3 */ |
-moz-box-shadow: 0px 0px 0px #fff; |
-webkit-box-shadow: 0px 0px 0px #fff; |
box-shadow: 0px 0px 0px #fff; |
} |
#box_conn:hover a, #box_certif:hover a, #box_mdp:hover a, #box_acc:hover a .box_menu a:hover, .box_menu a:visited:hover, #box_info :link:hover, #box_info :visited:hover { |
color: red; |
} |
/*Mise en page de la bulle d'info (coté droit)*/ |
#box_info H2 { |
font-size: 14px; |
margin: 10px auto; |
} |
#box_info P { |
font-size: 11px; |
margin: 10px; |
} |
#box_info IMG { |
position: absolute; |
bottom: -60px; |
right: 10px; |
height: 120px; |
} |
#box_info { |
position: absolute; |
top: 118px; |
right: 20px; |
width: 230px; |
height: 250px; |
background-color: #efefef; |
/* ombrage CSS3 */ |
-moz-box-shadow: 1px 1px 6px #666; |
-webkit-box-shadow: 1px 1px 6px #666; |
box-shadow: 1px 1px 6px #666; |
} |
#box_info :link, #box_info :visited { |
text-decoration: none; |
} |
/web/css/status.css |
---|
1,355 → 1,91 |
/* |
Feuille de style pour les pages d'interceptions cot? utilisateurs d'ALCASAR |
Auteur : St?phane ERARD |
Feuille de style pour les pages d'interceptions coté utilisateurs d'ALCASAR |
Auteur : Stéphane ERARD |
Licence : GNU GPL |
*/ |
/* r?gles g?n?rales */ |
/* règles générales */ |
/* Couleurs de polices */ |
:link, :visited, :hover:link, :hover:visited, H2, #box_url, #box_refuse { |
COLOR: #000000; |
:link, :visited, :hover:link, :hover:visited { |
color: #000000; |
} |
BODY, H, #boite-logon { |
COLOR: #666666; |
BODY { |
color: #666666; |
} |
#acces_controle, .log_out { |
COLOR: white; |
} |
/* Style de police */ |
BODY, :link, :visited, :hover:link, :hover:visited { |
FONT-FAMILY: "DejaVu Sans"; |
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; |
background-color: #666666; |
} |
INPUT, #contenu_acces, #logon, #auth_reussi { |
BACKGROUND-COLOR: #ffffff; |
} |
/* R?gles des balises HTML */ |
/* Règles des balises HTML */ |
H1, H2, #aide-certif { |
TEXT-ALIGN: center; |
padding: 0px; |
margin: 3px; |
P { |
text-align: justify; |
} |
P, UL, LI{ |
TEXT-ALIGN: justify; |
} |
BODY { |
BACKGROUND-IMAGE: url(/images/fond.png); |
BACKGROUND-REPEAT: repeat-x; |
TEXT-ALIGN: center; |
FONT-SIZE: 12px; |
MARGIN: 0px; |
background-image: url(/images/fond.png); |
background-repeat: repeat-x; |
text-align: center; |
font-size: 12px; |
margin: 0px; |
} |
H1 { |
FONT-SIZE: 55px; |
} |
H2 { |
FONT-SIZE: 30px; |
} |
H6, #aide-certif{ |
FONT-SIZE: 100%; |
} |
UL { |
MARGIN: 5px; |
PADDING-BOTTOM: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 115px; |
PADDING-TOP: 5px; |
} |
LI { |
LIST-STYLE-TYPE: square; |
PADDING-TOP: 2px; |
} |
TABLE { |
FONT-SIZE: 90%; |
font-size: 90%; |
} |
IMG { |
HEIGHT: 150px; |
height: 150px; |
} |
INPUT { |
BORDER: #666666 1px solid; |
PADDING: 2px; |
FONT-FAMILY: Arial; |
HEIGHT: 22px; |
} |
/* Taille et position des logos */ |
/*Boite de dialogue de deconnection*/ |
#logo-alcasar { |
POSITION: absolute; |
BOTTOM: 25px; |
RIGHT: 5px; |
HEIGHT: 130px; |
#statusPage, #loggedOutPage { |
width: 450px; |
margin: 12px auto; |
} |
#logo-organ { |
POSITION: relative; |
TOP: 0px; |
RIGHT: -10px; |
MAX-WIDTH: 150px; |
MAX-HEIGHT: 150px; |
} |
/* Placement et proportion de la boite de saisie et de l'aide */ |
#logon { |
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; |
#Chilli { |
width: 450px; |
margin: 10px auto 10px auto; |
} |
#boite-logon { |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
PADDING: 10px; |
WIDTH: 420px; |
HEIGHT: 189px; |
} |
#boite-logon TD { |
PADDING-TOP: 10px; |
} |
#boite-info { |
BORDER: 0px; |
MARGIN-TOP: 25px; |
WIDTH: 580px; |
PADDING-TOP: 10px; |
} |
/*Boite de dialogue de deconnection*/ |
#auth_reussi { |
WIDTH: 450px; |
MARGIN-TOP: 12px; |
PADDING-TOP: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 10px; |
PADDING-BOTTOM: 0px; |
width: 450px; |
margin-top: 12px; |
padding-top: 5px; |
padding-left: 10px; |
padding-right: 10px; |
padding-bottom: 0px; |
} |
.text_auth { |
FONT-SIZE: 20px; |
font-size: 20px; |
} |
.lien_deco { |
TEXT-ALIGN: center; |
FONT-SIZE: 18px; |
MARGIN-BOTTOM: 15px; |
text-align: center; |
font-size: 18px; |
margin-bottom: 15px; |
} |
.log_out { |
FONT-SIZE: 24px; |
TEXT-ALIGN: center; |
MARGIN-TOP: 30px; |
font-size: 24px; |
text-align: center; |
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{ |
POSITION: relative; |
WIDTH: 730px; |
HEIGHT: 98px; |
MARGIN-TOP: 40px; |
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 { |
BACKGROUND-IMAGE: url(/images/fond-bandeau.png); |
BACKGROUND-REPEAT: repeat-x; |
} |
#cadre_titre .titre_refus { |
BACKGROUND-IMAGE: url(/images/fond-bandeau-rouge.png); |
BACKGROUND-REPEAT: repeat-x; |
} |
#boite_logo{ |
POSITION: absolute; |
TOP: -30px; |
LEFT: -30px; |
WIDTH: 150px; |
HEIGHT: 150px; |
Z-INDEX: 2; |
} |
#acces_controle { |
TEXT-ALIGN: center; |
FONT-SIZE: 40px; |
PADDING-TOP: 25px; |
PADDING-BOTTOM: 27px; |
MARGIN: 0px; |
} |
#logo_acces { |
POSITION: relative; |
TOP: 0px; |
LEFT: 0px; |
} |
#contenu_acces { |
POSITION: relative; |
WIDTH: 640px; |
HEIGHT: 400px; |
TOP: -20px; |
PADDING-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; |
HEIGHT: 95px; |
} |
/* Boite des liens*/ |
#box_url { |
POSITION: relative; |
TOP: 35px; |
TEXT-ALIGN: right; |
FONT-SIZE: 14px; |
MARGIN-RIGHT: 20px; |
} |
#box_bienvenue { |
FONT-SIZE: 18px; |
} |
#cadre_titre SPAN { |
POSITION: absolute; |
TOP: 70px; |
WIDTH: 510px; |
LEFT: 110px; |
FONT-SIZE: 14px; |
COLOR: red; |
TEXT-ALIGN: center; |
BORDER: 2px red solid; |
PADDING: 2px; |
BACKGROUND-COLOR: white; |
} |
#contenu_acces SPAN { |
POSITION: relative; |
BOTTOM: -150px; |
FONT-FAMILY: "courier new"; |
} |
#box_refuse { |
FONT-SIZE: 16px; |
MARGIN-LEFT: 130px; |
MARGIN-RIGHT: 20px; |
MARGIN-TOP: 40px; |
WIDTH: 460px; |
} |
#box_refuse IMG { |
POSITION: absolute; |
TOP: -10px; |
LEFT: -110px; |
} |
#box_refuse, #box_bienvenue { |
POSITION: relative; |
TOP: 55px; |
} |
#box_1 { |
LEFT: 40px; |
} |
#box_2 { |
LEFT: 350px; |
} |
#box_3 { |
WIDTH: 575px; |
LEFT: 40px; |
BOTTOM: 20px; |
} |
#box_1 P, #box_2 P, #box_3 P { |
MARGIN-LEFT: 80px; |
MARGIN-RIGHT: 25px; |
MARGIN-TOP: 8px; |
FONT-SIZE: 10px; |
} |
#box_1 SPAN, #box_2 SPAN, #box_3 SPAN { |
POSITION: relative; |
MARGIN-LEFT: 75px; |
MARGIN-RIGHT: 5px; |
FONT-SIZE: 12px; |
TOP: 2px; |
} |
.box_menu_courte, .box_menu_large { |
POSITION: absolute; |
HEIGHT: 80px; |
BACKGROUND-IMAGE: url(/images/fond-bdd.png); |
BACKGROUND-REPEAT: repeat-x; |
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: 150px; |
} |
.box_menu_courte IMG, .box_menu_large IMG { |
POSITION: absolute; |
WIDTH: 100px; |
HEIGHT: 100px; |
TOP: -40px; |
LEFT: -30px; |
} |
.box_menu_courte, .box_menu_large, #logon , #contenu_acces, #acces_controle, #cadre_titre { |
/* Arrondi CSS3 Firefox*/ |
-moz-border-radius: 10px; |
/* Arrondi CSS3 Autres Nav*/ |
border-radius: 10px; |
} |
#liens_redir { |
POSITION: relative; |
BOTTOM: -100px; |
LEFT: 90px; |
TEXT-ALIGN: center; |
} |
#liens_redir P A { |
FONT-SIZE: 12px; |
TEXT-ALIGN: center; |
MARGIN: 15px; |
} |
/* |
Ajout stephane weber |
*/ |
357,18 → 93,15 |
BACKGROUND-COLOR: #ffffff; |
} |
#errorTable, #statusTable, #waitTable, #disconnectTable { |
WIDTH: 450px; |
/* |
MARGIN-TOP: 12px; |
*/ |
MARGIN: 0px; |
PADDING-TOP: 5px; |
PADDING-LEFT: 10px; |
PADDING-RIGHT: 10px; |
PADDING-BOTTOM: 0px; |
width: 450px; |
margin: 0px; |
padding-top: 5px; |
padding-left: 10px; |
padding-right: 10px; |
padding-bottom: 0px; |
} |
#errorTable, #statusTable, #waitTable, #disconnectTable { |
BORDER: 1px #efefef solid; |
border: 1px #efefef solid; |
/* ombrage css3*/ |
388,8 → 121,8 |
/* A DEFINIR*/ |
} |
.wait { |
HEIGHT: 16px; |
height: 16px; |
} |
/* |
Fin Ajout stephane weber |
*/ |
*/ |
/web/css/pass.css |
---|
0,0 → 1,138 |
/* |
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 { |
color: #000000; |
} |
BODY { |
color: #666666; |
} |
/* Style de police */ |
BODY, :link, :visited, :hover:link, :hover:visited { |
font-family: "DejaVu Sans"; |
} |
/*Couleurs de fond */ |
BODY { |
background-color: #666; |
} |
/* R?gles des balises HTML */ |
P { |
text-align: justify; |
} |
BODY { |
background-image: url(../images/fond.png); |
background-repeat: repeat-x; |
text-align: center; |
font-size: 12px; |
margin: 0px; |
} |
TABLE { |
font-size: 90%; |
} |
IMG { |
height: 150px; |
} |
/*Boite de dialogue de deconnection*/ |
#page { |
width: 540px; |
margin: 12px auto; |
} |
#block_pass { |
background-color: white; |
width: 500px; |
margin: 15px; |
padding: 15px; |
/* ombrage css3*/ |
-moz-box-shadow: 0px 0px 12px #000; |
-webkit-box-shadow: 0px 0px 12px #000; |
box-shadow: 0px 0px 12px #000; |
} |
#block_pass SPAN { |
float: left; |
font-size: 80%; |
margin-top: 5px; |
} |
#titre_pass { |
font-size: 20px; |
} |
#btn_pass { |
cursor: pointer; |
float: right; |
margin-top: 20px; |
height: 30px; |
width: 180px; |
border: none; |
background: #666 url(../images/bg.png) 0 0 repeat-x; |
font-weight: bold; |
/* ombrage css3*/ |
-moz-box-shadow: 6px 6px 8px #000; |
-webkit-box-shadow: 6px 6px 8px #000; |
box-shadow: 6px 6px 8px #000; |
} |
#btn_pass:hover { |
background-color: red; |
/* ombrage css3*/ |
-moz-box-shadow: 6px 6px 6px #000; |
-webkit-box-shadow: 6px 6px 6px #000; |
box-shadow: 6px 6px 6px #000; |
} |
#champs_pass { |
border: 1px solid #666; |
width: 100%; |
background-color: #ffffe0; |
} |
#champs_pass TD { |
padding: 4px; |
} |
#champs_pass TD INPUT { |
border: 1px solid #aaa; |
width: 185px; |
} |
TD.first_item { |
background-color: #d0ddb0; |
text-align: center; |
width: 300px; |
} |
.lien_deco { |
text-align: center; |
font-size: 18px; |
margin-bottom: 15px; |
} |
.log_out { |
font-size: 24px; |
text-align: center; |
margin-top: 30px; |
} |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/web/index.php |
---|
2,6 → 2,8 |
$private_ip = "192.168.182.1"; |
$hostname = "alcasar"; |
$network_pb = False; |
$cert_add = "http://alcasar/certs"; |
$direct_access = False; |
$diagnostic = "eth0 link down"; |
$remote_ip = ($_SERVER['REMOTE_ADDR']); |
10,6 → 12,14 |
$user = explode (" ", $tab[0]); |
# on discrimine les accès directs sur Alcasar par rapport aux redirections |
if (($_SERVER['HTTP_HOST'] == $private_ip) || ($_SERVER['HTTP_HOST'] == "alcasar") || ($_SERVER['HTTP_HOST'] == $hostname)){$direct_access=True;} |
#### Connexion DB à faire ! |
#### Avec retour 3 dernière connexion de $user[5] |
$result_user = "3 dernières connexions :"; |
#### |
# Choice of language |
$Language = 'en'; |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){ |
24,17 → 34,21 |
$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_contact_net_pb = "Contactez votre responsable informatique ou votre prestataire Internet pour plus d'information."; |
$l_welcome = "Page principale de votre portail captif"; |
$l_acc_access = "<a href=\"https://$hostname/acc\">Accès au centre de gestion (ALCASAR Control Center)</A>"; |
$l_acc_access = "<a href=\"https://$hostname/acc\">Accès au centre de gestion</A>"; |
$l_install_certif = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installer le certificat racine</A>"; |
$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.crt\">Installation du certificat de l'autorité racine d'ALCASAR</A>"; |
$l_certif_explain = "Permet l'échange de données sécurisées entre voter station de consultation et le portail captif ALCASAR.<BR>Si ce certificat n'est pas enregistré sur votre station de consultation il est possible que des alertes de sécurités soient émises par votre navigateur.<br><br>"; |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Aide pour les certificats</a>"; |
if ($user[4] == "0") { |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système"; |
$l_logout_explain = "Aucune session de consultation Internet n'est actuellement ouverte sur votre système."; |
$l_logout = "<a href=\"http://www.google.fr\">Ouvrir une session Internet</A>";} |
else { |
$l_logout_explain = "Ferme la session de l'usager : <b>$user[5]</b>"; |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Déconnexion</A>";} |
$l_logout_explain = "Ferme la session de l'usager actuellement connecté. <br><br>Utilisateur connecté :<br><br><a href=\"http://$hostname:3990/logoff\" title=\"Deconnecter l'utilisateur $user[5]\"><b>$user[5]</b></a><br><br>$result_user"; |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Se déconnecter d'internet</A>";} |
$l_password_change = "<a href=\"https://$hostname/pass\">Changer votre mot de passe</A>"; |
$l_password_change_explain = "Vous devez posséder un compte de consultation Internet."; |
$l_password_change_explain = "Vous redirige sur la pages de changement du mot de passe de votre compte d'accès à internet.<br><br>Vous devez avoir un compte internet valide."; |
$l_back_page = "<a href=\"javascript:history.back()\">Page précédente</a>"; |
} |
else { |
48,41 → 62,76 |
$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 = "Your captive portal main page"; |
$l_acc_access = "<a href=\"https://$hostname/acc\">Access to the ALCASAR Control Center</A>"; |
if ($user[4] == "0") { |
$l_acc_access = "<a href=\"https://$hostname/acc\">ALCASAR Control Center</A>"; |
$l_install_certif = "<a href=\"$cert_add/certificate_alcasar_ca.crt\">Install ALCASAR AC Certificate</A>"; |
$l_install_certif_more = "<a href=\"$cert_add/certificat_alcasar_ca.cert\">Install ALCASAR AC Certificate</A>"; |
$l_certif_explain = "A TRADUIRE<br><br>"; |
$l_certif_explain_help = "<a href=\"alcasar-certificat.pdf\" target=\"_blank\">Help for ALCASAR certificate</a>"; |
if ($user[4] == "0") { |
$l_logout_explain = "No Internet consultation session is actualy open on your system"; |
$l_logout = "<a href=\"http://www.google.fr\">Open an Internet session</A>";} |
else { |
$l_logout_explain = "Close the session of the user : <b>$user[5]</b>"; |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff</A>";} |
$l_logout_explain = "Close the session of the user actualy connecterd.<br> User logged-on :<br><br><a href=\"http://$hostname:3990/logoff\" title=\"Disconnect user $user[5]\"><b>$user[5]</b></a><br><br>$result_user"; |
$l_logout = "<a href=\"http://$hostname:3990/logoff\">Logoff from internet</A>";} |
$l_password_change = "<a href=\"https://$hostname/pass\">Change your password</A>"; |
$l_password_change_explain = "You should already have an Internet access account."; |
$l_password_change_explain = "Ridirect you on password change page.<br><br> You should already have an Internet access account."; |
$l_back_page = "<a href=\"javascript:history.back()\">Previous page</a>"; |
} |
$l_title = ($direct_access ? $l_access_welcome : ($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)); |
# Attribution des icones / images |
$img_rep = "images/"; |
$img_organisme = "organisme.png"; |
$img_access = "globe_acces_70.png"; |
$img_connect = "globe_70.png"; |
$img_warning = "globe_warning_70.png"; |
$img_pwd = "cle_ombre.png"; |
$img_certificate = "certificat.png"; |
$img_acc = "logo-alcasar_70.png"; |
$img_false = "interdit.png"; |
$img_internet = $img_connect; |
if ($user[4] == "0") { |
if (! $network_pb) { |
$img_internet = $img_access; |
} |
else { |
$img_internet = $img_warning; |
} |
} |
else { |
$img_internet = $img_connect; |
} |
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 |
echo "<html><head><title>ALCASAR - $l_title"; |
?> |
</title> |
<LINK rel=stylesheet type=text/css href="css/style_intercept.css"> |
<script> |
function valoriserDiv5(param){ |
document.getElementById("box_info").innerHTML = param.innerHTML; |
} |
</script> |
</head> |
<BODY> |
<? |
<BODY onload="valoriserDiv5(text_conn);"> |
<?php |
if ($direct_access){ |
echo " |
<DIV id=\"cadre_titre\" class=\"titre_controle\"> |
<P id=\"acces_controle\" class=\"titre_controle\">$l_title</P>"; |
if ($network_pb) { |
echo " <SPAN>$l_explain_net_pb</SPAN>"; |
if ($network_pb) { |
echo " <SPAN>$l_explain_net_pb</SPAN>"; |
} |
} |
else { |
echo" |
<DIV id=\"cadre_titre\" class=\"titre_refus\"> |
<P id=\"acces_controle\" class=\"titre_refus\">$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"> |
90,50 → 139,67 |
</DIV> |
<DIV id="contenu_acces"> |
<DIV id="box_url"> |
<? if (! $direct_access){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?> |
<?php if (! $direct_access){echo "$l_required_domain : $_SERVER[HTTP_HOST]";}?> |
</DIV> |
<? if ($direct_access){ |
<?php |
if ($direct_access){ |
echo " <DIV id=\"box_bienvenue\"> |
$l_welcome |
</DIV> |
<DIV class=\"box_menu_courte\" id=\"box_1\"> |
<IMG src=\"images/cle.png\"> |
<DIV class=\"box_menu\" id=\"box_conn\" onmouseover=\"valoriserDiv5(text_conn);\"> |
<SPAN>$l_logout</SPAN> |
<IMG src=\"$img_rep$img_internet\"> |
</DIV> |
<DIV class=\"box_menu\" id=\"box_certif\" onmouseover=\"valoriserDiv5(text_certif);\"> |
<SPAN>$l_install_certif</SPAN> |
<IMG src=\"$img_rep$img_certificate\"> |
</DIV> |
<DIV class=\"box_menu\" id=\"box_mdp\" onmouseover=\"valoriserDiv5(text_mdp);\"> |
<IMG src=\"$img_rep$img_pwd\"> |
<SPAN>$l_password_change</SPAN> |
</DIV> |
<DIV class=\"box_menu\" id=\"box_acc\" onmouseover=\"valoriserDiv5(text_acc);\"> |
<SPAN>$l_acc_access</SPAN> |
<IMG src=\"$img_rep$img_acc\"> |
</DIV> |
<DIV class=\"div-cache\" id=\"text_conn\"> |
<H2>$l_logout</H2> |
<P>$l_logout_explain</P> |
<IMG src=\"$img_rep$img_internet\"> |
</DIV> |
<DIV class=\"div-cache\" id=\"text_certif\"> |
<H2>$l_install_certif_more</H2> |
<P>$l_certif_explain $l_certif_explain_help</P> |
<IMG src=\"$img_rep$img_certificate\"> |
</DIV> |
<DIV class=\"div-cache\" id=\"text_mdp\"> |
<H2>$l_password_change</H2> |
<P>$l_password_change_explain</P> |
<IMG src=\"$img_rep$img_pwd\"> |
</DIV> |
<DIV class=\"div-cache\" id=\"text_acc\"> |
<H2>$l_acc_access</H2> |
<P>$l_explain</P> |
<IMG src=\"$img_rep$img_acc\"> |
</DIV> |
<DIV id=\"box_info\"> |
</DIV>"; |
if ($user[4] == "0") { |
echo " |
<DIV class=\"box_menu_courte\" id=\"box_2\"> |
<SPAN>"; |
if (! $network_pb) { echo "$l_logout";} |
echo " </SPAN> |
<IMG src=\"images/globe_acces.png\"> |
<P>$l_logout_explain</P> |
</DIV>";} |
else { |
echo " |
<DIV class=\"box_menu_courte\" id=\"box_2\"> |
<SPAN>$l_logout</SPAN> |
<IMG src=\"images/globe.png\"> |
<P>$l_logout_explain</P> |
</DIV>";} |
echo " <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 " |
} |
else { |
echo " |
<DIV id=\"box_refuse\"> |
<img src=\"images/interdit.png\"> |
<img src=\"$img_rep$img_false\"> |
<P>$l_explain</P> |
</DIV> |
<DIV id=\"liens_redir\"> |
<P>$l_back_page</P> |
</DIV>";} |
if (($network_pb)&&(! $direct_access)) |
{ |
echo " <SPAN>Diagnostic : $diagnostic</SPAN>"; |
} |
</DIV>"; |
} |
if (($network_pb)&&(! $direct_access)) { |
echo " <SPAN>Diagnostic : $diagnostic</SPAN>"; |
} |
?> |
</DIV> |
</BODY> |