Line 87... |
Line 87... |
87 |
}
|
87 |
}
|
88 |
else{
|
88 |
else{
|
89 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
89 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
90 |
include("../lib/$config[general_lib_type]/create_user.php");
|
90 |
include("../lib/$config[general_lib_type]/create_user.php");
|
91 |
/* Petit traitement pré-impression pour la lisibilité */
|
91 |
/* Petit traitement pré-impression pour la lisibilité */
|
92 |
/* Gestion des cas sans limitation */
|
- |
|
93 |
if ($sto_imp=='' && $mds_imp=='' && $mms_imp==''){
|
- |
|
94 |
/*Recherche de l'existence d'un groupe et récupération des attributs le cas échéant*/
|
92 |
/* Récupération des attributs du groupe le cas échéant */
|
95 |
if ($group!=''){
|
93 |
if ($group!=''){
|
96 |
$saved_login = $login;
|
94 |
$saved_login = $login;
|
97 |
$login = $group;
|
95 |
$login = $group;
|
98 |
if (is_file("../lib/sql/group_info.php"))
|
96 |
if (is_file("../lib/sql/group_info.php"))
|
99 |
include("../lib/sql/group_info.php");
|
97 |
include("../lib/sql/group_info.php");
|
100 |
$login = $saved_login;
|
98 |
$login = $saved_login;}
|
- |
|
99 |
/* Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
101 |
/* formatage des secondes sous le format H min s*/
|
100 |
/* et formatage des secondes sous le format Heure min ses*/
|
102 |
$sto_imp=sec_imp($sto_imp);
|
101 |
if ($sto_imp==''){ $sto_imp=$v_illimit;}
|
103 |
$mds_imp=sec_imp($mds_imp);
|
102 |
else { $sto_imp=sec_imp($sto_imp);}
|
104 |
$mms_imp=sec_imp($mms_imp);
|
103 |
if ($mas_imp==''){ $mas_imp=$v_illimit;}
|
105 |
} else {
|
- |
|
106 |
/*Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
- |
|
107 |
$sto_imp=$v_illimit;
|
- |
|
108 |
$mds_imp=$v_illimit;
|
104 |
else { $mas_imp=sec_imp($mas_imp);}
|
109 |
$mms_imp=$v_illimit;
|
105 |
if ($mds_imp==''){ $mds_imp=$v_illimit;}
|
110 |
}
|
- |
|
111 |
}else{
|
- |
|
112 |
/* formatage des secondes sous le format H min s*/
|
- |
|
113 |
$sto_imp=sec_imp($sto_imp);
|
106 |
else { $mds_imp=sec_imp($mds_imp);}
|
114 |
$mds_imp=sec_imp($mds_imp);
|
107 |
if ($mms_imp==''){ $mms_imp=$v_illimit;}
|
115 |
$mms_imp=sec_imp($mms_imp);
|
108 |
else { $mms_imp=sec_imp($mms_imp);}
|
116 |
}
|
- |
|
117 |
/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
|
109 |
/*Formatage de la date afin d'être lisible dans toute les langues 'jj mm yyyy'*/
|
118 |
if ($Expiration!=''){
|
- |
|
119 |
$Expiration=date("d - m - Y",strtotime($Expiration));
|
110 |
if ($Expiration!=''){ $Expiration=date("d - m - Y",strtotime($Expiration));}
|
120 |
} else {
|
- |
|
121 |
$Expiration=$v_illimit;
|
111 |
else { $Expiration=$v_without;}
|
122 |
}
|
- |
|
123 |
//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
|
112 |
//Appel du ticket d'impression , passage en paramètres des étiquettes et des valeurs à afficher
|
124 |
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
|
113 |
echo' <form name="impression" method="post" action="ticket_user.php" target=_blank>
|
125 |
<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
|
114 |
<input type="hidden" name="l_title_imp" value="'.$l_title_imp.'">
|
126 |
<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
|
115 |
<input type="hidden" name="l_login_imp" value="'.$l_login_imp.'">
|
127 |
<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'">
|
116 |
<input type="hidden" name="l_password_imp" value="'.$l_password_imp.'">
|
Line 131... |
Line 120... |
131 |
<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'">
|
120 |
<input type="hidden" name="l_max_monthly_session_imp" value="'.$l_max_monthly_session_imp.'">
|
132 |
<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
|
121 |
<input type="hidden" name="l_expiration_imp" value="'.$l_expiration_imp.'">
|
133 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
122 |
<input type="hidden" name="log_imp" value="'.$login.'">
|
134 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
123 |
<input type="hidden" name="passwd_imp" value="'.$passwd_imp.'">
|
135 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
124 |
<input type="hidden" name="sto_imp" value="'.$sto_imp.'">
|
- |
|
125 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
136 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
126 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
137 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
127 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
138 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
128 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
139 |
</form>';
|
129 |
</form>';
|
140 |
echo' <script type="text/javascript"> document.forms["impression"].submit();</script>';
|
130 |
echo' <script type="text/javascript"> document.forms["impression"].submit();</script>';
|
Line 258... |
Line 248... |
258 |
<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>
|
248 |
<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>
|
259 |
</td>
|
249 |
</td>
|
260 |
EOM;
|
250 |
EOM;
|
261 |
switch ($key){
|
251 |
switch ($key){
|
262 |
case 'Simultaneous-Use' :
|
252 |
case 'Simultaneous-Use' :
|
263 |
case 'Expiration' :
|
- |
|
264 |
case 'Max-All-Session' :
|
253 |
case 'Max-All-Session' :
|
265 |
case 'Max-Daily-Session' :
|
254 |
case 'Max-Daily-Session' :
|
266 |
case 'Max-Weekly-Session' :
|
255 |
case 'Max-Weekly-Session' :
|
- |
|
256 |
case 'Max-Monthly-Session' :
|
- |
|
257 |
case 'Login-Time' :
|
- |
|
258 |
case 'Expiration' :
|
267 |
echo "<input type=\"hidden\" name=$oper_name value=\":=\">";
|
259 |
echo "<input type=\"hidden\" name=$oper_name value=\":=\">";
|
268 |
break;
|
260 |
break;
|
269 |
case 'Session-Timeout' :
|
261 |
case 'Session-Timeout' :
|
270 |
case 'ChilliSpot-Max-Input-Octets' :
|
262 |
case 'ChilliSpot-Max-Input-Octets' :
|
271 |
case 'ChilliSpot-Max-Output-Octets' :
|
263 |
case 'ChilliSpot-Max-Output-Octets' :
|
Line 364... |
Line 356... |
364 |
<option value=\"it\" >Italiano</option>
|
356 |
<option value=\"it\" >Italiano</option>
|
365 |
</select></td></tr>";
|
357 |
</select></td></tr>";
|
366 |
}
|
358 |
}
|
367 |
echo "</table><BR>";
|
359 |
echo "</table><BR>";
|
368 |
if ($create == 1)
|
360 |
if ($create == 1)
|
369 |
echo "<input type=submit class=button value=\"Afficher le profil de l'utilisateur\" OnClick=\"this.form.show.value=1\">";
|
361 |
echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
|
370 |
else{
|
362 |
else{
|
371 |
echo "<input type=submit class=button value=\"Créer\" OnClick=\"return formControl('newuser');\">";
|
363 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|
372 |
}
|
364 |
}
|
373 |
?>
|
365 |
?>
|
374 |
</form>
|
366 |
</form>
|
375 |
|
367 |
|
376 |
</td></tr>
|
368 |
</td></tr>
|