Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 924 → Rev 925

/web/acc/admin/auth_exceptions.php
52,7 → 52,7
$l_remove = "Remove from list";
$l_trusted_ip = "Trusted Internet domain and IP addresses";
$l_trusted_equipments = "Trusted consultation equipements";
$l_trusted_equipments_explain = "To manage consultation equipments allowed to be connected to Internet withoout interception, read exploitation documentation (ch.4.7c)";
$l_trusted_equipments_explain = "To manage consultation equipments allowed to be connected to Internet without interception, read exploitation documentation (ch.4.7c)";
$l_comment = "Comments";
$l_trusted_domain_explain = "Manage Internet domain names that can be joined without authentication";
$l_trusted_ip_explain = "Manage systems or networks IP addresses that can be joined without authentication";
232,7 → 232,7
<tr align='center'><td bgcolor='#d0ddb0'><?echo "$l_domain<td bgcolor='#d0ddb0'>$l_comment_explain";?>
<td></tr>
<tr><td>exemple1 : www.mydomain.com <br>exemple2 : .yourdomain.net
<td>My domain<br><?echo "$l_comment_explain2";?><td></tr>
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
<tr><td><input type='text' name='add_uamdomain' size='20'>
<td><input type='text' name='add_domain_comment' size='15'>
<input type='hidden' name='choix' value='new_uamdomain'>
/web/acc/manager/htdocs/user_edit.php
62,7 → 62,7
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
<?php
if ($user_type != 'group')
{
77,11 → 77,11
print <<<EOM
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=75%>&nbsp;</td>
<td bgcolor="black" width=25% align=right>
<table border=0 width="200" cellpadding=2 cellspacing=0>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=center valign=top><th>
<font color="white">$titre : $login ($cn)</font>
</th></tr>
135,9 → 135,9
echo <<<EOM
</td>
<td>
<input type=password name=passwd value="" size=40>
<input type=password name=passwd value="" size=20>
<br /><input type="button" value="$l_passwd_gen" onclick="password(8)">
<input type="text" value="" name="pwdgene" size=20 readonly>
<input type="text" value="" name="pwdgene" size=10 readonly>
</td>
</tr>
EOM;
270,46 → 270,46
switch ($key)
{
case 'Simultaneous-Use' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Login-Time' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Expiration' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Max-All-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Session-Timeout' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Max-Daily-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Max-Weekly-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'Max-Monthly-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'ChilliSpot-Max-Input-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'ChilliSpot-Max-Output-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'ChilliSpot-Max-Total-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'ChilliSpot-Bandwidth-Max-Up' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'ChilliSpot-Bandwidth-Max-Down' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
case 'WISPr-Redirection-URL' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=</td><td><input type=text name=\"$name1\" value=\"$val\" size=20></td>";
break;
default :
print <<<EOM
330,7 → 330,7
<option $selected[$op_nexst] value="!*">!*
</select>
</td>
<td><input type=text name="$name1" value="$val" size=40></td>
<td><input type=text name="$name1" value="$val" size=20></td>
EOM;
break;
}
/web/acc/manager/htdocs/voucher_new.php
3,7 → 3,6
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
 
require('/etc/freeradius-web/config.php');
if ($show == 1){
header("Location: user_admin.php?login=$login");
11,7 → 10,6
}
require('../lib/attrshow.php');
require('../lib/defaults.php');
 
if ($config[general_lib_type] == 'sql' && $config[sql_use_operators] == 'true'){
$colspan=2;
$show_ops=1;
20,7 → 18,6
$colspan=1;
}
?>
 
<html><head><title>Voucher creation</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
48,10 → 45,10
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=550 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><?php echo "$l_user_create"; ?></font>
138,7 → 135,7
<td class="etiquette" colspan=$colspan>
$l_login
</td><td>
<input type=text name="login" value="$login" size=35>
<input type=text name="login" value="$login" size=20>
</td>
</tr>
<tr>
145,9 → 142,9
<td class="etiquette" colspan=$colspan>
$l_password
</td><td>
<input type=password name="passwd" size=35>
<input type=password name="passwd" size=20>
<br><input type="button" value="$l_passwd_gen" onclick="password(8,'newuser')">
<input type="text" value="" name="pwdgene" size=20 readonly>
<input type="text" value="" name="pwdgene" size=10 readonly>
</td>
</tr>
EOM;
178,7 → 175,7
<td class="etiquette" colspan=$colspan>
$l_name
</td><td>
<input type=text name="Fcn" value="$cn" size=35>
<input type=text name="Fcn" value="$cn" size=20>
</td>
</tr>
<tr>
185,7 → 182,7
<td class="etiquette" colspan=$colspan>
$l_email
</td><td>
<input type=text name="Fmail" value="$mail" size=35>
<input type=text name="Fmail" value="$mail" size=20>
</td>
</tr>
EOM;
294,7 → 291,7
case 'Simultaneous-Use' :
/*Pré-remplissage avec la valeur '1' pour empécher plusieurs connexions silmutanées*/
$val=1;//<--cette valeur correspond au nombre de session simultanée en commentant cette ligne la valeur n'est plus pré-remplie
echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
break;
/*
Choix de l'unité heures, minutes ou secondes
305,7 → 302,7
case 'Max-Daily-Session' :
case 'Max-Monthly-Session' :
/*valeur d'origine de durée limite */
echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=20>";
/* Choix d'unité*/
echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
<option value=\"s\" selected>s</option>
317,15 → 314,15
/*Pré-remplissage avec la date du lendemain*/
$val=date("d F Y",strtotime("+1 day"));//<--en commentant cette ligne la valeur n'est plus pré-remplie
/*Ajout du calendrier pour choisir la date*/
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
break;
default :
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
break;
}
}else{
/*Pas de gestion de remplissage lors de la visualisation*/
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
/*fin Ajout*/
}
336,7 → 333,7
<td class="etiquette" colspan=$colspan>
$l_lang_ticket
</td>
<td width=35>
<td width=20>
EOM;
/*Choix de la langue du ticket d'impression*/
echo" <select name=\"$langue_imp\" onchange=\"lang_imp(this,'newuser')\">
/web/acc/manager/htdocs/user_new.php
47,10 → 47,10
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=550 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><? echo "$l_user_create"; ?></font>
107,16 → 107,9
/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
else { $Expiration=$v_without;}
//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
//Appel du ticket d'impression , passage en paramètres des valeurs à afficher
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'">
<input type="hidden" name="l_max_all_session_imp" value="'.$l_max_all_session_imp.'">
<input type="hidden" name="l_session_timeout_imp" value="'.$l_session_timeout_imp.'">
<input type="hidden" name="l_max_daily_session_imp" value="'.$l_max_daily_session_imp.'">
<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'">
<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
<input type="hidden" name="langue_imp" value="'.$langue_imp.'">
<input type="hidden" name="log_imp" value="'.$login.'">
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
144,7 → 137,7
<td class="etiquette" colspan=$colspan>
$l_login
</td><td>
<input type=text name="login" value="$login" size=35>
<input type=text name="login" value="$login" size=20>
</td>
</tr>
<tr>
151,9 → 144,9
<td class="etiquette" colspan=$colspan>
$l_password
</td><td>
<input type=password name="passwd" size=35>
<br /><input type="button" value="$l_passwd_gen" onclick="password(8,'newuser')">
<input type="text" value="" name="pwdgene" size=20 readonly>
<input type=password name="passwd" size=20>
<br><input type="button" value="$l_passwd_gen" onclick="password(8,'newuser')">
<input type="text" value="" name="pwdgene" size=10 readonly>
</td>
</tr>
EOM;
184,7 → 177,7
<td class="etiquette" colspan=$colspan>
$l_name
</td><td>
<input type=text name="Fcn" value="$cn" size=35>
<input type=text name="Fcn" value="$cn" size=20>
</td>
</tr>
<tr>
191,7 → 184,7
<td class="etiquette" colspan=$colspan>
$l_email
</td><td>
<input type=text name="Fmail" value="$mail" size=35>
<input type=text name="Fmail" value="$mail" size=20>
</td>
</tr>
EOM;
340,7 → 333,7
case 'Max-Monthly-Session' :
case 'Max-All-Session' :
/*valeur d'origine de durée limite */
echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
echo"<input type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
/* Choix d'unité*/
echo" <select name=\"$name"."_opt"."\" onchange=\"temps(this,'$name','newuser')\">
<option value=\"s\" selected>s</option>
352,15 → 345,15
/*Pré-remplissage avec la date du lendemain*/
//$val=date("d F Y",strtotime("+1 day"));// utilisée pour le voucher uniquement
/*Ajout du calendrier pour choisir la date*/
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>";
break;
default :
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
break;
}
}else{
/*Pas de gestion de remplissage lors de la visualisation*/
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=20>";
/*fin Ajout*/
}
371,7 → 364,7
<td class="etiquette" colspan=$colspan>
$l_lang_ticket
</td>
<td width=35>
<td width=20>
EOM;
/*Choix de la langue du ticket d'impression*/
echo" <select name=\"$langue_imp\" onchange=\"lang_imp(this,'newuser')\">
381,6 → 374,7
<option value=\"de\" >Deutsch</option>
<option value=\"es\" >Espa&ntilde;ol</option>
<option value=\"it\" >Italiano</option>
<option value=\"pt\" >Portugês</option>
</select></td></tr>";
}
echo "</table><BR>";
/web/acc/manager/htdocs/user_accounting.php
54,7 → 54,7
echo <<<EOM
<html>
<head>
<title>iUser accounting</title>
<title>User accounting</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
69,7 → 69,7
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
EOM;
 
include("../html/user_toolbar.html.php");
77,10 → 77,10
print <<<EOM
</table>
<br>
<table border=0 width=840 cellpadding=1 cellspacing=1>
<table border=0 width=720 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=65%></td>
<td bgcolor="black" width=35%>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">$l_user : $login ($cn)</font>
/web/acc/manager/htdocs/user_info.php
22,7 → 22,7
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
<?php
include("../html/user_toolbar.html.php");
?>
41,10 → 41,10
?>
 
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white"><?php echo "$l_user : $login ($cn)"?></font>&nbsp;
/web/acc/manager/htdocs/clear_opensessions.php
40,13 → 40,7
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=550 cellpadding=0 cellspacing=0>
<tr valign=top>
<!--<td align=center><img src="images/title2.gif"></td>-->
</tr>
</table>
 
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
EOM;
 
include("../html/user_toolbar.html.php");
55,10 → 49,10
</table>
 
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">$l_user : $login ($cn)</font>&nbsp;
/web/acc/manager/htdocs/user_delete.php
42,13 → 42,7
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=550 cellpadding=0 cellspacing=0>
<tr valign=top>
<!--<td align=center><img src="images/title2.gif"></td>-->
</tr>
</table>
 
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
EOM;
 
if ($user_type != 'group')
60,10 → 54,10
</table>
 
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">$util : $login ($cn)</font>&nbsp;
/web/acc/manager/htdocs/password.php
2,10 → 2,10
<input type=hidden name=login value=<?php echo $login ?>>
<input type=hidden name=action value=checkpass>
<br>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">Check Password</font>&nbsp;
/web/acc/manager/htdocs/group_admin.php
1,4 → 1,7
<?php
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
if ($show == 1 && isset($del_members)){
header("Location: user_admin.php?login=$del_members[0]");
6,7 → 9,7
}
if ($config[general_lib_type] != 'sql'){
echo <<<EOM
<title>Page de gestion des groupes</title>
<title>Admin_groups</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
24,7 → 27,7
include("../lib/$config[general_lib_type]/group_info.php");
if ($group_exists == 'no'){
echo <<<EOM
<title>Page de gestion des groupes</title>
<title>Admin_groups</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
45,13 → 48,13
 
<html>
<head>
<title>Page de gestion des groupes</title>
<title>Admin_groups</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config[general_charset]?>">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Gestion des groupes</th></tr>
<tr><th><?php echo "$l_groups_managment"; ?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
60,26 → 63,19
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<center>
<table border=0 width=550 cellpadding=0 cellspacing=0>
<tr valign=top>
<!--<td align=center><img src="images/title2.gif"></td>-->
</tr>
</table>
<table border=0 width=400 cellpadding=0 cellspacing=2>
 
<table border=0 width=640 cellpadding=0 cellspacing=2>
<?php
include("../html/group_toolbar.html.php");
?>
 
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=620 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">Gestion du groupe <?php echo $login ?></font>&nbsp;
<font color="white"><?php echo "$l_group : $login";?></font>
</th></tr>
</table>
</td></tr>
103,7 → 99,7
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
<tr>
<td align=right bgcolor="#d0ddb0">
<b>Membre(s) &agrave; effacer</b><br> (les membres s&eacute;lectionn&eacute;s seront effac&eacute;s du groupe<br>utilisez 'shift' ou 'Ctrl' pour une s&eacute;lection multiple)
<?php echo "$l_group_members_to_remove";?>
</td>
<td>
<select name=del_members[] multiple size=5>
117,7 → 113,7
</tr>
<tr>
<td align=right bgcolor="#d0ddb0">
<b>Membre(s) &agrave; ajouter</b><br>(s&eacute;parez les membres par un espace ou un 'retour chariot')
<?php echo "$l_group_members_to_add";?>
</td>
<td>
<textarea name=new_members cols="15" wrap="PHYSICAL" rows=5></textarea>
125,9 → 121,9
</tr>
</table>
<br>
<input type=submit class=button value="Effectuer les changements" OnClick="this.form.do_changes.value=1">
<input type=submit class=button value="<?php echo "$l_change";?>" OnClick="this.form.do_changes.value=1">
<br><br>
<input type=submit class=button value="G&eacute;rer l'utilisateur s&eacute;lectionn&eacute;" OnClick="this.form.show.value=1">
<input type=submit class=button value="<?php echo "$l_manage_selected_user";?>" OnClick="this.form.show.value=1">
</form>
</td></tr>
</table>
/web/acc/manager/html/user_admin.html.php
62,12 → 62,7
 
print <<<EOM
<center>
<table border=0 width=550 cellpadding=0 cellspacing=0>
<tr valign=top>
<!--<td align=center><img src="images/title2.gif"></td>-->
</tr>
</table>
<table border=0 width=400 cellpadding=0 cellspacing=2>
<table border=0 width=640 cellpadding=0 cellspacing=2>
EOM;
 
include("../html/user_toolbar.html.php");
75,10 → 70,10
print <<<EOM
</table>
<br>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">$l_user : $login ($cn)</font>&nbsp;
156,10 → 151,10
 
echo <<<EOM
<br>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">Analyse</font>&nbsp;
187,10 → 182,10
</table></table>
</table>
<br>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=200>
<td width=400></td>
<td bgcolor="black">
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">$l_last7days_status</font>&nbsp;
225,7 → 220,7
/*
if ($user_info){
echo <<<EOM
<table border=0 width=640 cellpadding=1 cellspacing=1>
<table border=0 width=620 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
/web/acc/manager/lib/langues.php
50,6 → 50,9
$l_group_name = "Nom du groupe";
$l_group_members = "Membres du groupe :<br>(séparé par un espace ou un 'retour chariot')";
$l_group_members_remove = "Supprimer tous les membres de ce groupe";
$l_group_members_to_remove = "<b>Membres à effacer :</b><br>Les membres sélectionnés seront effacés du groupe.<br>Utilisez 'shift' ou 'Ctrl' pour une sélection multiple.";
$l_group_members_to_add = "<b>Membres à ajouter :</b><br>Separez les membres avec un 'espace' ou un 'retour chariot'.";
$l_manage_selected_user= "Gérer l'usager sélectionné";
$l_group_member = "Membre du groupe";
$l_group_empty = "La liste des groupes est vide";
$l_main_group = "Le groupe principal est surligné";
138,6 → 141,9
$l_group_name = "Group name";
$l_group_members = "Members of group :<br>(separate by a 'space' or a 'carriage return')";
$l_group_members_remove = "Remove all members of this group";
$l_group_members_to_remove = "<b>Members to remove :</b><br>The selected members will be remove from the group.<br>Use 'shift' or 'Ctrl' for multiple selection.";
$l_group_members_to_add = "<b>Members to add :</b><br>Separate the members with a 'space' or a 'carriage return'.";
$l_manage_selected_user= "Manage the selected user";
$l_group_member = "Member of group";
$l_group_empty = "The group list is empty";
$l_main_group = "The main group is highlighted";
/web/intercept.php
68,7 → 68,7
$organisme = $conf["ORGANISM"];
 
# Shared secret used to encrypt challenge with radius.
$uamsecret = "ZHoGm7No";
$uamsecret = "q8bxGdIg";
 
# URL loaded after success authenticates (let blank for browser defaults)
$adminurl = "";
119,7 → 119,7
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Tiempo en linea";
$l_remaining_time = "Tiempo restante";
$l_uam_domain = "acceso directo : ";}
$l_uam_domain = "Sitios web autorizados : ";}
else if ($Language == 'pt'){
$l_ChilliError = "A autenticação deve ser bem sucedido através do serviço de portal cativo.";
$l_login = "Sucesso na autenticação.<HR>Não feche essa janela para não interromper a conexão";
151,7 → 151,7
$l_reply_6 = "Seu tempo de conexão autorizada finalizou";
$l_online_time = "Tempo Online";
$l_remaining_time = "Tempo restante";
$l_uam_domain = "acesso directo : ";}
$l_uam_domain = "Sites autorizados : ";}
else if($Language == 'de'){
$l_ChilliError = "Die Authentifizierung ist erfolgreich durch die Nutzung des Portals erfolgt.";
$l_login = "Erfolgreiche Authentifizierung.<HR>Schlißen dieses fensters unterbricht die sitzung";
183,7 → 183,7
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online-zeit";
$l_remaining_time = "Restzeit";
$l_uam_domain = "accès direkten : ";}
$l_uam_domain = "Autorisierten websites : ";}
else if($Language == 'nl'){
$l_ChilliError = "De authenticatie moet een succes worden via de captive portal dienst.";
$l_login = "Succesvolle authenticatie.<HR>Dit venster te sluiten onderbreekt uw sessie.";
215,14 → 215,14
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online tijd";
$l_remaining_time = "Reterende tijd";
$l_uam_domain = "Direct access : ";}
$l_uam_domain = "Geautoriseerde website : ";}
else if($Language == 'fr'){
$l_ChilliError = "L'authentification doit &ecirc;tre r&eacute;ussie au travers du service du portail captif.";
$l_login = "Authentification r&eacute;ussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
$l_ChilliError = "L'authentification doit être réussie sur le portail captif.";
$l_login = "Authentification réussie.<HR>La fermeture de cette fenêtre interrompt votre session.";
$l_logout = "Fermeture de la session";
$l_loginfailed = "Echec d'authentification";
$l_loggingin = "Identification sur le portail captif";
$l_loggedcont = "Contr&ocirc;le d'acc&egrave;s";
$l_loggedcont = "Contrôle d'accès";
$l_loggedout = "Votre session est fermée";
$l_user = "Identifiant";
$l_password = "Mot de passe";
229,25 → 229,25
$l_wait = "Patientez un instant ...";
$l_onlinetime = "Temps de connexion:";
$l_remainingtime = "Deconnexion dans :";
$l_encrypted = "La connexion avec le portail doit &ecirc;tre chiffr&eacute;e";
$l_encrypted = "La connexion avec le portail doit être chiffrée";
$l_boutonO = "Authentification";
$l_boutonF = "Fermer";
$l_loggedin_stringl1 = "S&eacute;curit&eacute; des Syst&egrave;mes d'Information";
$l_loggedin_stringl2 = "Ce contr&ocirc;le a &eacute;t&eacute; mis en place pour assurer r&eacute;glementairement la tra&ccedil;abilit&eacute;, l'imputabilit&eacute; et la non-r&eacute;pudiation des connexions.";
$l_loggedin_stringl3 = "Votre activit&eacute; sur le r&eacute;seau est enregistr&eacute;e conform&eacute;ment au respect de la vie priv&eacute;e.";
$l_loggedin_stringl4 = "Les donn&eacute;es enregistr&eacute;es ne pourront &ecirc;tre exploit&eacute;es que par une autorit&eacute judiciaire dans le cadre d'une enqu&ecirc;te.";
$l_loggedin_stringl5 = "Ces donn&eacute;es seront automatiquement supprim&eacute;es au bout d'un an.";
$l_loggedin_stringl1 = "Sécurité des Systèmes d'Information";
$l_loggedin_stringl2 = "Ce contrôle a été mis en place pour assurer réglementairement la traçabilité, l'imputabilité et la non-répudiation des connexions.";
$l_loggedin_stringl3 = "Votre activité sur le réseau est enregistrée conformément au respect de la vie privée.";
$l_loggedin_stringl4 = "Les données enregistrées ne pourront être exploitées que par une autorité judiciaire dans le cadre d'une enquête.";
$l_loggedin_stringl5 = "Ces données seront automatiquement supprimées au bout d'un an.";
$l_loggedin_stringl6 = "Cliquez <a href='$alcasarpath'>ici</a> pour changer votre mot de passe ou pour intégrer le certificat de sécurité à votre navigateur";
$l_loggedout_string = "D&eacute;connexion du portail captif effectu&eacute;e !";
$l_reply_1 = "Votre dur&eacute;e de connexion journali&egrave;re a &eacute;t&eacute; atteinte";
$l_reply_2 = "Votre dur&eacute;e de connexion mensuelle a &eacute;t&eacute; atteinte";
$l_reply_3 = "Vous tentez de vous connecter en dehors de votre p&eacute;riode autoris&eacute;e";
$l_reply_4 = "Votre compte a expir&eacute";
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultan&eacute;es";
$l_reply_6 = "Votre dur&eacute;e de connexion autoris&eacute;e a &eacute;t&eacute; atteinte";
$l_loggedout_string = "Déconnexion du portail captif effectuée !";
$l_reply_1 = "Votre durée de connexion journaliè a été atteinte";
$l_reply_2 = "Votre durée de connexion mensuelle a été atteinte";
$l_reply_3 = "Vous tentez de vous connecter en dehors de votre période autorisée";
$l_reply_4 = "Votre compte a expiré";
$l_reply_5 = "Vous avez atteint le nombre maximum de connexions simultanées";
$l_reply_6 = "Votre durée de connexion autorisée a été atteinte";
$l_online_time = "Temps de connexion";
$l_remaining_time = "Temps restant";
$l_uam_domain = "Acc&egrave;s dirrect : ";}
$l_uam_domain = "Sites autorisés : ";}
else{
$l_ChilliError = "The authentication must be successful through the captive portal service.";
$l_login = "Successful authentication.<HR>Closing this window interrupts your session";
279,11 → 279,11
$l_reply_6 = "Your authorized connexion time has been reached";
$l_online_time = "Online time";
$l_remaining_time = "Remaining time";
$l_uam_domain = "Direct access : ";}
$l_uam_domain = "Authorized websites : ";}
 
# If https not use, tell it's wrong
if (!(isset($_SERVER['HTTPS'])&&($_SERVER['HTTPS'] == 'on'))) {
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
341,7 → 341,7
$response = md5("\0" . $password . $newchal);
$newpwd = pack("a32", $password);
$pappassword = implode ("", unpack("H32", ($newpwd ^ $newchal)));
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
372,7 → 372,7
# Otherwise it was not a form request
# Send out an error message
if ($result == 0) { //erreur
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
391,7 → 391,7
exit(0);
}
# Generate the output
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
echo "<!DOCTYPE html>
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
457,63 → 457,57
<input type=\"hidden\" name=\"uamip\" value=\"$uamip\">
<input type=\"hidden\" name=\"uamport\" value=\"$uamport\">
<input type=\"hidden\" name=\"userurl\" value=\"$userurl\">
<table id=\"boite-logon\">
<tr>
<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
<td width=\"30%\" align=\"right\">$l_user</td>
<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
</tr>
<tr>
<td align=\"right\">$l_password</td>
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
</tr>
<tr>
<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
</tr>
</table>
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
<tr>
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
</tr>
<tr>
<td align=\"left\">
<ul>
<LI>$l_loggedin_stringl2</LI>
<LI>$l_loggedin_stringl4</LI>
<LI>$l_loggedin_stringl3</LI>
<LI>$l_loggedin_stringl5</LI>
<LI>$l_loggedin_stringl6</LI>
</ul>
</td>
</tr>
</table>";
<table id=\"boite-logon\">
<tr>
<td width=\"20%\" rowspan=\"3\"><img id=\"logo-organ\" src=\"/images/organisme.png\"></td>
<td width=\"30%\" align=\"right\">$l_user</td>
<td width=\"50%\" align=\"left\"><INPUT type=\"text\" maxLength=\"32\" name=\"UserName\" autocomplete=\"off\"></td>
</tr>
<tr>
<td align=\"right\">$l_password</td>
<td align=\"left\"><INPUT maxLength=\"32\" type=\"password\" name=\"Password\" autocomplete=\"off\"></td>
</tr>
<tr>
<td height=\"23\" colSpan=\"2\" align=\"center\"><INPUT value=\"$l_boutonO\" type=\"submit\" name=\"button\" onclick=\"javascript:popUp('$statuspath')\"></td>
</tr>
</table>
</form>
<table id=\"boite-info\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\">
<tr>
<td align=\"center\"><FONT color=\"red\"><B>$l_loggedin_stringl1</B></FONT></td>
</tr>
<tr>
<td align=\"left\">
<ul>
<LI>$l_loggedin_stringl2</LI>
<LI>$l_loggedin_stringl4</LI>
<LI>$l_loggedin_stringl3</LI>
<LI>$l_loggedin_stringl5</LI>
<LI>$l_loggedin_stringl6</LI>
</ul>
</td>
</tr>
</table>";
 
// Read the "Domain alowed" file
$tab=file(DOMAIN_ALLOWED_LIST);
if ($tab) # the file isn't empty
{
echo "<div id=\"authorized_domain\"><li>$l_uam_domain</li>";
echo "<div id=\"authorized_domain\">$l_uam_domain";
foreach ($tab as $line)
{
if (trim($line) != '') # the line isn't empty
{
{
$domain_allowed=explode("#", $line);
$uamdomain=trim($domain_allowed[0],"#");
$domain=explode("\"", $uamdomain);
if ((isset($domain_allowed[1])) && (trim($domain_allowed[1]) != '')){
echo "<li><a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a></li>";
}
else echo"<li><a href=\"http://".trim($domain[1])."\">".trim($domain[1])."</a></li>";
}
if (trim($domain_allowed[1]) != ''){
$domain=explode("\"", $domain_allowed[0]);
echo "<a href=\"http://".trim($domain[1])."\">".trim($domain_allowed[1])."</a> ";}
}
}
echo "</div>";
}
 
echo "
</form>
</div>
</center>
echo "
</div>
</center>
</body>
</html>";
}