Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 906 → Rev 907

/web/acc/manager/htdocs/user_edit.php
138,17 → 138,13
echo <<<EOM
<tr>
<td align=right colspan=$colspan bgcolor="#d0ddb0">
Nouveau mot de passe<br>
$l_new_password<br>
EOM;
if ($user_password_exists == 'yes')
echo "<font size=-2>Le mot de passe <font color=\"green\"><b>existe</b></font></font>\n";
else
echo "<font size=-2>Le mot de passe <font color=\"red\"><b> n'existe pas</b></font></font>\n";
echo <<<EOM
</td>
<td>
<input type=password name=passwd value="" size=40>
<br /><input type="button" value="g&eacute;n&eacute;rer" onclick="password(8)">
<br /><input type="button" value="$l_passwd_gen" onclick="password(8)">
<input type="text" value="" name="pwdgene" size=20 readonly>
</td>
</tr>
/web/acc/manager/htdocs/user_admin.php
1,4 → 1,8
<?php
//gestion de la langue
$origine='user_new';
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
require('/etc/freeradius-web/config.php');
?>
<html>
12,7 → 16,7
include("../lib/$config[general_lib_type]/user_info.php");
if ($user_exists == 'no'){
echo <<<EOM
<title>Page d'information d'utilisateur</title>
<title>User information page</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="/css/style.css">
</head>
34,7 → 38,7
include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
else{
echo <<<EOM
<title>Page d'information d'utilisateur</title>
<title>User information page</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
<link rel="stylesheet" href="style.css">
</head>
55,6 → 59,8
$daily_limit = ($daily_limit) ? $daily_limit : $config[counter_default_daily];
$session_limit = ($item_vals['Session-Timeout'][0] != '') ? $item_vals['Session-Timeout'][0] : $default_vals['Session-Timeout'][0];
$session_limit = ($session_limit) ? $session_limit : 'none';
$total_limit = ($item_vals['Max-All-Session'][0] != '') ? $item_vals['Max-All-Session'][0] : $default_vals['Max-All-Session'][0];
$total_limit = ($total_limit) ? $total_limit : 'none';
$remaining = 'unlimited time';
$log_color = 'green';
 
290,15 → 296,16
$weekly_limit = (is_numeric($weekly_limit)) ? time2str($weekly_limit) : $weekly_limit;
$daily_limit = (is_numeric($daily_limit)) ? time2str($daily_limit) : $daily_limit;
$session_limit = (is_numeric($session_limit)) ? time2str($session_limit) : $session_limit;
$total_limit = (is_numeric($total_limit)) ? time2str($total_limit) : $total_limit;
$remaining = (is_numeric($remaining)) ? time2str($remaining) : $remaining;
 
if ($item_vals['Dialup-Access'][0] == 'FALSE' || (!isset($item_vals['Dialup-Access'][0]) && $attrmap['Dialup-Access'] != '' && $attrmap['Dialup-Access'] != 'none'))
$msg =<<<EON
<font color=red><b> Le compte de l'utilisateur est verrouill&eacute; </b></font>
<font color=red><b> $l_locked_user </b></font>
EON;
else
$msg =<<<EON
L'utilisateur peut s'identifier pendant <font color="$log_color"> <b>$remaining $extra_msg</font>
$l_user_remain_login<font color="$log_color"> <b>$remaining $extra_msg</b></font>
EON;
$lock_msg = $item_vals['Dialup-Lock-Msg'][0];
if ($lock_msg != '')
315,7 → 322,7
$expiration = strtotime($expiration);
if ($expiration != -1 && $expiration < time())
$descr = <<<EOM
<font color=red><b>Le compte de l'utilisateur a expir&eacute</b></font>
<font color=red><b>$l_user_expired</b></font>
EOM;
}
 
/web/acc/manager/htdocs/password.php
0,0 → 1,22
<form name="master" action="user_admin.php#pass" method="post">
<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>
<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">Check Password</font>&nbsp;
</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">Password</td><td><input type="password" name="passwd" value="">&nbsp;<input type="submit" class=button value="check"></td></tr>
</table>
</table>
</table>
/web/acc/manager/htdocs/group_new.php
86,7 → 86,7
if ($create == 1){
if ($group_exists != "no"){
echo <<<EOM
<b>Le groupe <i>$login</i> existe d&eacute;j&agrave;.</b>
<b><i>$login</i> $l_already_exist</b>
EOM;
}
else{
105,11 → 105,11
echo <<<EOM
<tr>
<td class="etiquette" colspan=$colspan>
Groupe(s) d&eacute;j&agrave; cr&eacute;&eacute;(s)
$l_created_groups
</td><td>
EOM;
if (!isset($existing_groups))
echo "<b>Aucun groupe d&eacute;j&agrave; cr&eacute;&eacute;</b>\n";
echo "<b>$l_group_empty</b>\n";
else{
echo "<select name=\"existing_groups\">\n";
foreach ($existing_groups as $group => $count)
121,7 → 121,7
</tr>
<tr>
<td class="etiquette" colspan=$colspan>
Nom du groupe
$l_group_name
</td><td>
<input type=text name="login" value="$login" size=35>
</td>
128,7 → 128,7
</tr>
<tr>
<td class="etiquette" colspan=$colspan>
Membres du groupe : s&eacute;par&eacute;s par un espace ou un 'retour chariot'.
$l_group_members
</td><td>
<textarea name=members cols="15" wrap="PHYSICAL" rows=5></textarea>
</td>
141,74 → 141,109
continue;
$oper_name = $name . '_op';
$val = ($item_vals["$key"][0] != "") ? $item_vals["$key"][0] : $default_vals["$key"][0];
/*
Gestion d'un mode simple ou d'un mode avancé
Définition du mode avancé les attributs concernant la gestion des octets, de la bande passante
*/
switch ($key)
{
// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
case 'Simultaneous-Use' :
$advanced=1;
$help_link="help/simultaneous_use_help.html";
$desc=$l_simultaneous_use;
break;
case 'Max-All-Session' :
$advanced=1;
$help_link="help/max_all_session_help.html";
$desc=$l_max_all_session;
break;
case 'Session-Timeout' :
$advanced=1;
$help_link="help/session_timeout_help.html";
$desc=$l_session_timeout;
break;
case 'Max-Daily-Session' :
$advanced=1;
$help_link="help/session_timeout_help.html";
$desc=$l_daily_timeout;
break;
case 'Max-Monthly-Session' :
$advanced=1;
$help_link="help/session_timeout_help.html";
$desc=$l_monthly_timeout;
break;
case 'Login-Time' :
$advanced=1;
$help_link="help/login_time_help.html";
$desc=$l_login_time;
break;
case 'Expiration' :
$advanced=1;
$help_link="help/expiration_help.html";
$desc=$l_expiration;
break;
case 'ChilliSpot-Max-Input-Octets' :
$advanced=1;
$help_link="help/chillispot_max_input_octets_help.html";
$desc=$l_max_input_octets;
break;
case 'ChilliSpot-Max-Output-Octets' :
$advanced=1;
$help_link="help/chillispot_max_output_octets_help.html";
$desc=$l_max_output_octets;
break;
case 'ChilliSpot-Max-Total-Octets' :
$advanced=1;
$help_link="help/chillispot_max_total_octets_help.html";
$desc=$l_max_total_octets;
break;
case 'ChilliSpot-Bandwidth-Max-Up' :
$advanced=1;
$help_link="help/chillispot_bandwidth_max_up_help.html";
$desc=$l_max_bandwidth_up;
break;
case 'ChilliSpot-Bandwidth-Max-Down' :
$advanced=1;
$help_link="help/chillispot_bandwidth_max_down_help.html";
$desc=$l_max_bandwidth_down;
break;
case 'WISPr-Redirection-URL' :
$advanced=1; //<-- Valeur à mettre à '0' pour limiter les fonctionnalités
$advanced=1;
$help_link="help/wispr_redirection_url_help.html";
$desc=$l_wispr_redirection;
break;
default:
$advanced=1;
break;
}
if ($advanced){
print <<<EOM
// if ($advanced){
// print <<<EOM
// <tr>
// <td class="etiquette">
// $desc
// </td>
//EOM;
// }
if ($show_ops && $advanced){
print <<<EOM
<tr>
<td class="etiquette">
$desc
</td>
<td class="etiquette">
<a href="$help_link" target=help onclick=window.open("$help_link","help","width=600,height=250,toolbar=no,scrollbars=no,resizable=yes") title="$l_click_for_help"><font color="blue">$desc</font></a>
</td>
EOM;
}
if ($show_ops && $advanced){
switch ($key)
{
switch ($key){
case 'Simultaneous-Use' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Login-Time' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Expiration' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Max-All-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Session-Timeout' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'Max-Daily-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Max-Weekly-Session' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Max-Monthly-Session' :
case 'Login-Time' :
case 'Expiration' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
break;
case 'Session-Timeout' :
case 'ChilliSpot-Max-Input-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'ChilliSpot-Max-Output-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'ChilliSpot-Max-Total-Octets' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'ChilliSpot-Bandwidth-Max-Up' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'ChilliSpot-Bandwidth-Max-Down' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
case 'WISPr-Redirection-URL' :
echo "<td><select name=$oper_name><option $selected[$op_eq] value=\"=\">=";
break;
215,21 → 250,21
default :
print <<<EOM
<td>
<select name=$oper_name>
<option $selected[$op_eq] value="=">=
<option $selected[$op_set] value=":=">:=
<option $selected[$op_add] value="+=">+=
<option $selected[$op_eq2] value="==">==
<option $selected[$op_ne] value="!=">!=
<option $selected[$op_gt] value=">">&gt;
<option $selected[$op_ge] value=">=">&gt;=
<option $selected[$op_lt] value="<">&lt;
<option $selected[$op_le] value="<=">&lt;=
<option $selected[$op_regeq] value="=~">=~
<option $selected[$op_regne] value="!~">!~
<option $selected[$op_exst] value="=*">=*
<option $selected[$op_nexst] value="!*">!*
</select>
<select name=$oper_name>
<option $selected[$op_eq] value="=">=
<option $selected[$op_set] value=":=">:=
<option $selected[$op_add] value="+=">+=
<option $selected[$op_eq2] value="==">==
<option $selected[$op_ne] value="!=">!=
<option $selected[$op_gt] value=">">&gt;
<option $selected[$op_ge] value=">=">&gt;=
<option $selected[$op_lt] value="<">&lt;
<option $selected[$op_le] value="<=">&lt;=
<option $selected[$op_regeq] value="=~">=~
<option $selected[$op_regne] value="!~">!~
<option $selected[$op_exst] value="=*">=*
<option $selected[$op_nexst] value="!*">!*
</select>
</td>
EOM;
break;
250,6 → 285,7
case 'Session-Timeout' :
case 'Max-Daily-Session' :
case 'Max-Monthly-Session' :
case 'Max-All-Session' :
/*valeur d'origine de durée limite */
echo"<input id =\"$name\" type=text name=\"$name\" onfocus=\"this.value=''\" value=\"$val\" size=28>";
/* Choix d'unité*/
275,9 → 311,9
}
echo "</table><BR>";
if ($create == 1)
echo "<input type=submit class=button value=\"Afficher le groupe\" OnClick=\"this.form.show.value=1\">";
echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
else
echo "<input type=submit class=button value=\"Cr&eacute;er\" OnClick=\"return formControl('newgroup');\">";
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
?>
<br><br>
</form>
/web/acc/manager/html/user_admin.html.php
1,12 → 1,15
<?php
//gestion de la langue
if (is_file("../lib/langues.php"))
include("../lib/langues.php");
 
echo <<<EOM
<title>Informations de l'utilisateur $cn</title>
<title>$l_user : $cn</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>Gestion des usagers</th></tr>
<tr><th>$l_users_managment</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
</TABLE>
72,16 → 75,13
print <<<EOM
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
<table border=0 width=100% cellpadding=2 cellspacing=0>
<tr bgcolor="#907030" align=right valign=top><th>
<font color="white">Etat des connexions pour $login ($cn)</font>&nbsp;
<font color="white">$l_user : $login ($cn)</font>&nbsp;
</th></tr>
</table>
</td></tr>
95,12 → 95,12
print <<<EOM
<form name="online" onSubmit="return(false);">
<tr><td align=center bgcolor="#d0ddb0">
L'utilisateur est <b>en ligne</b> depuis
<b>$l_connected</b>
</td><td>
$lastlog_time
</td></tr>
<tr><td align=center bgcolor="#d0ddb0">
Dur&eacute;e des connexions
<b>$l_connection_time</b>
</td><td>
<input type="text" name="status" size=10 value="$lastlog_session_time">
</form>
110,7 → 110,7
 
}else if ($not_known) print <<<EOM
<tr><td align=center bgcolor="#d0ddb0">
Cet utilisateur ne s'est <b>jamais</b> connect&eacute;
$l_user_never_login
</td><td>-
</td></tr>
EOM;
117,16 → 117,16
else{
print <<<EOM
<tr><td align=center bgcolor="#d0ddb0">
L'utilisateur <b>n'est pas connect&eacute;</b> actuellement<br>
<b>$l_user_not_login_yet</b>
</td><td>-
</td></tr>
<tr><td align=center bgcolor="#d0ddb0">
Derni&egrave;re connexion
<b>$l_last_login</b>
</td><td>
$lastlog_time
</td></tr>
<tr><td align=center bgcolor="#d0ddb0">
Dur&eacute;e de la connexion
<b>$l_connection_time</b>
</td><td>
$lastlog_session_time
</td></tr>
136,15 → 136,15
 
print <<<EOM
<tr><td align=center bgcolor="#d0ddb0">
Sessions autoris&eacute;es
<b>$l_remain_time</b>
</td><td>
$msg
</td></tr>
<tr><td align=center bgcolor="#d0ddb0">
Description compl&egrave;te de l'utilisateur
<!-- <tr><td align=center bgcolor="#d0ddb0">
Complete user description
</td><td>
$descr
</td></tr>
</td></tr> -->
</table>
</table>
</table>
156,7 → 156,7
 
echo <<<EOM
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
170,30 → 170,30
<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">-</td><td align=center bgcolor="#d0ddb0"><b>mensuel</b></td><td align=center bgcolor="#d0ddb0"><b>hebdomadaire</b></td><td align=center bgcolor="#d0ddb0"><b>journalier</b></td><td align=center bgcolor="#d0ddb0"><b>par session</b></td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>limite</b></td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
<tr><td align=center bgcolor="#d0ddb0">&nbsp;</td><td align=center bgcolor="#d0ddb0"><b>total</b></td><td align=center bgcolor="#d0ddb0"><b>$l_monthly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_weekly</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily</b></td><td align=center bgcolor="#d0ddb0"><b>$l_by_session</b></td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_limit</b></td><td>$total_limit</td><td>$monthly_limit</td><td>$weekly_limit</td><td>$daily_limit</td><td>$session_limit</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><td>$tot_time</td><td>$monthly_used</td><td>$weekly_used</td><td>$daily_used</td><td>$lastlog_session_time</td></tr>
</table>
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" va
lign=top>
<tr><td align=center bgcolor="#d0ddb0"><b>Jour</b></td><td align=center bgcolor="#d0ddb0"><b>limite journali&egrave;re</b></td><td align=center bgcolor="#d0ddb0"><b>dur&eacute;e utilis&eacute;e</b></td><tr>
<tr><td align=center bgcolor="#d0ddb0">dimanche</td><td>$daily_limit</td><td>$used[0]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">lundi</td><td>$daily_limit</td><td>$used[1]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">mardi</td><td>$daily_limit</td><td>$used[2]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">mercredi</td><td>$daily_limit</td><td>$used[3]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">jeudi</td><td>$daily_limit</td><td>$used[4]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">vendredi</td><td>$daily_limit</td><td>$used[5]</td></tr>
<tr><td align=center bgcolor="#d0ddb0">samedi</td><td>$daily_limit</td><td>$used[6]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_day</b></td><td align=center bgcolor="#d0ddb0"><b>$l_daily_limit</b></td><td align=center bgcolor="#d0ddb0"><b>$l_used_time</b></td><tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_sunday</b></td><td>$daily_limit</td><td>$used[0]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_monday</b></td><td>$daily_limit</td><td>$used[1]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_tuesday</b></td><td>$daily_limit</td><td>$used[2]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_wednesday</b></td><td>$daily_limit</td><td>$used[3]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_thursday</b></td><td>$daily_limit</td><td>$used[4]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_friday</b></td><td>$daily_limit</td><td>$used[5]</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_saturday</b></td><td>$daily_limit</td><td>$used[6]</td></tr>
</table></table>
</table>
<br>
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=640 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">&Eacute;tat sur les 7 derniers jours</font>&nbsp;
<font color="white">$l_last7days_status</font>&nbsp;
</th></tr>
</table>
</td></tr>
201,31 → 201,31
<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">Nombre de connexions</td><td>
<b><font color="darkblue">$tot_conns</font></b></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Dur&eacute;e cumul&eacute;e des connexions</td><td>
<b><font color="darkblue">$tot_time</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
<b><font color="darkblue">$tot_badlogins</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Upload</td><td>
$tot_input</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Download</td><td>
$tot_output</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Dur&eacute; moyenne</td><td>
$avg_time</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Upload moyen</td><td>
$avg_input</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0">Download moyen</td><td>
$avg_output</td></tr></td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_connections_number</b></td><td>
$tot_conns</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_total_connections_time</b></td><td>
$tot_time</td></tr>
<!-- <tr><td align=center bgcolor="#d0ddb0">Identifications d&eacute;fectueuses</td><td>
$tot_badlogins</td></tr> -->
<tr><td align=center bgcolor="#d0ddb0"><b>$l_download</b></td><td>
$tot_input</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload</b></td><td>
$tot_output</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_connection_time ($l_average)</b></td><td>
$avg_time</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_download ($l_average)</b></td><td>
$avg_input</td></tr>
<tr><td align=center bgcolor="#d0ddb0"><b>$l_upload ($l_average)</b></td><td>
$avg_output</td></tr>
</table>
</table>
</table>
<br>
EOM;
 
/*
if ($user_info){
echo <<<EOM
<table border=0 width=540 cellpadding=1 cellspacing=1>
<table border=0 width=640 cellpadding=1 cellspacing=1>
<tr valign=top>
<td width=340></td>
<td bgcolor="black" width=250>
411,11 → 411,10
 
EOM;
}
?>
<tr> <td colspan=3 height=1></td></tr>
<tr> <td colspan=3>
</table>
<?php
*/
print <<<EOM
</tr></table>
EOM;
if ($logged_now)
print <<<EOM
<script Language="JavaScript">
423,10 → 422,5
</script>
EOM;
?>
</TD></TR>
</TABLE>
</td></tr>
</TABLE>
 
</body>
</html>
/web/acc/manager/html/user_admin_userinfo.html.php
1,17 → 1,17
<?php
echo <<<EOM
<tr><td align=center bgcolor="#d0ddb0">
Serveur
<!-- <tr><td align=center bgcolor="#d0ddb0">
Server
</td><td>
<b>$lastlog_server_name</b> ($lastlog_server_ip)
</td></tr>
<tr><td align=center bgcolor="#d0ddb0">
Port du serveur
Server port
</td><td>
$lastlog_server_port
</td></tr>
</td></tr> -->
<tr><td align=center bgcolor="#d0ddb0">
@MAC de la station cliente
@MAC
</td><td>
$lastlog_callerid
</td></tr>
/web/acc/manager/html/user_toolbar.html.php
26,6 → 26,5
<td align=center bgcolor="#FFCC66">
<a href="clear_opensessions.php?login=$Login"><font color="black"><b>$l_open_sessions</b></font></a></td>
</tr>
</font>
EOM;
?>
/web/acc/manager/lib/sql/password_check.php
20,11 → 20,9
$enc_passwd = $row[value];
$passwd = da_encrypt($passwd,$enc_passwd);
if ($passwd == $enc_passwd)
// $msg = '<font color=blue><b>YES It is that</b></font>';
$msg = '<font color=blue><b>Le mot de passe est correct</b></font>';
$msg = '<font color=blue><b>YES It is that</b></font>';
else
// $msg = '<font color=red><b>NO It is wrong</b></font>';
$msg = '<font color=red><b>Le mot de passe n\'est pas correct</b></font>';
$msg = '<font color=red><b>NO It is wrong</b></font>';
}
else
echo "<b>Could not open encryption library file</b><br>\n";
/web/acc/manager/lib/langues.php
15,6 → 15,17
switch ($Language){
case 'fr':
//Français
$l_monday="lundi"; $l_tuesday="mardi"; $l_wednesday="mercredi"; $l_thursday="jeudi"; $l_friday="vendredi"; $l_saturday="samedi"; $l_sunday="dimanche";
$l_monthly="mensuelle";$l_weekly="hebdomadaire";$l_daily="journalière";$l_by_session="par session";
$l_day = "Jour";
$l_limit="limite";
$l_daily_limit="limite journalière";
$l_used_time = "Temps utilisé";
$l_last7days_status = "&Eacute;tat sur les 7 derniers jours";
$l_connections_number = "Nombre de connexions";
$l_download = "Données téléchargées";
$l_upload = "Données envoyées";
$l_average = "moyenne";
$l_already_exist = "existe d&eacute;j&agrave;";
$l_user = "Usager";
$l_users_managment = "Gestion des usagers";
21,8 → 32,9
$l_groups_managment = "Gestion des groupes";
$l_login = "Identifiant";
$l_password = "Mot de passe";
$l_passwd_gen = "g&eacute;n&eacute;rer";
$l_group_create = "Cr&eacute;er un groupe";
$l_new_password = "Nouveau mot de passe";
$l_passwd_gen = "générer";
$l_group_create = "Créer un groupe";
$l_group = "Groupe";
$l_created_groups = "Groupe(s) déjà créé(s)";
$l_group_name = "Nom du groupe";
35,6 → 47,16
$l_members ="MEMBRES";
$l_attributes ="ATTRIBUTS";
$l_remove ="SUPPRIMER";
$l_locked_user ="Le compte usager est verrouillé";
$l_user_remain_login ="L'usager peut se connecter pendant ";
$l_user_expired ="Le compte usager a expiré";
$l_connected ="Connecté depuis";
$l_connection_time ="Durée de connexion";
$l_total_connections_time ="Durée cumulée des connexions";
$l_user_never_login ="Cet usager ne s'est jamais connecté";
$l_user_not_login_yet ="Cet usager n'est pas connecté actuellement";
$l_last_login ="Dernière connexion";
$l_remain_time ="Temps de connexion restant";
$l_name = "Nom et pr&eacute;nom";
$l_email = "Adresse de couriel";
$l_lang_ticket = "Langue du ticket";
41,9 → 63,9
$l_simultaneous_use = "Nombre de session simultanée";
$l_max_all_session = "Durée maximale de connexion<br>(en secondes)";
$l_expiration = "Date d'expiration";
$l_session_timout = "Durée maximale d'une session<br>(en secondes)";
$l_daily_timout = "Durée de connexion maximale journalière<br>(en secondes)";
$l_monthly_timout = "Durée de connexion maximale mensuelle<br>(en secondes)";
$l_session_timeout = "Durée maximale d'une session<br>(en secondes)";
$l_daily_timeout = "Durée de connexion maximale journalière<br>(en secondes)";
$l_monthly_timeout = "Durée de connexion maximale mensuelle<br>(en secondes)";
$l_login_time = "Période hebdomadaire";
$l_max_input_octets = "Maximum de données émises<br>(en octets)";
$l_max_output_octets = "Maximum de données reçues<br>(en octets)";
71,12 → 93,24
break;
default :
//English
$l_monday="monday"; $l_tuesday="tuesday"; $l_wednesday="wednesday"; $l_thursday="thursday"; $l_friday="friday"; $l_saturday="saturday"; $l_sunday="sunday";
$l_monthly="monthly";$l_weekly="weekly";$l_daily="daily";$l_by_session="by session";
$l_day = "Day";
$l_limit = "limit";
$l_daily_limit="daily limit";
$l_used_time = "Used time";
$l_last7days_status = "Last 7 days status";
$l_already_exist = "already exist";
$l_connections_number = "Connections number";
$l_download = "Downloaded data";
$l_upload = "Uploaded data";
$l_average = "average";
$l_user = "User";
$l_users_managment = "Users managment";
$l_groups_managment = "Groups managment";
$l_login = "Login";
$l_password = "Password";
$l_new_password = "New password";
$l_passwd_gen = "generate";
$l_group_create = "Create a group";
$l_group = "Group";
91,6 → 125,16
$l_members ="MEMBERS";
$l_attributes ="ATTRIBUTES";
$l_remove ="REMOVE";
$l_locked_user ="The user account is locked";
$l_user_remain_login ="The user can log in during ";
$l_user_expired ="The user account has expired";
$l_connected ="Connected from";
$l_connection_time ="Connection time";
$l_total_connections_time ="Total connections time";
$l_user_never_login ="This user has never logged in";
$l_user_not_login_yet ="This user isn't connected yet";
$l_last_login ="Last connection";
$l_remain_time ="Remain connection time";
$l_name = "Surname and name";
$l_email = "Email Address";
$l_lang_ticket = "Voucher language";