| Line 36... |
Line 36... |
| 36 |
}else{
|
36 |
}else{
|
| 37 |
$show_ops = 0;
|
37 |
$show_ops = 0;
|
| 38 |
$colspan=1;
|
38 |
$colspan=1;
|
| 39 |
}
|
39 |
}
|
| 40 |
?>
|
40 |
?>
|
| - |
|
41 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
|
| - |
|
42 |
<head>
|
| 41 |
<html><head><title>Voucher creation</title>
|
43 |
<title>Voucher creation</title>
|
| 42 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
|
44 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
|
| 43 |
<link rel="stylesheet" href="/css/style.css">
|
45 |
<link rel="stylesheet" href="/css/style.css">
|
| 44 |
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css" />
|
46 |
<link rel="stylesheet" type="text/css" href="/css/epoch_styles.css">
|
| 45 |
<script type="text/javascript" src="/js/epoch_classes.js"></script>
|
47 |
<script type="text/javascript" src="/js/epoch_classes.js"></script>
|
| 46 |
<script type="text/javascript" src="/js/fonctions.js"></script>
|
48 |
<script type="text/javascript" src="/js/fonctions.js"></script>
|
| 47 |
<script language="javascript" type="text/javascript">
|
49 |
<script language="javascript" type="text/javascript">
|
| 48 |
|
50 |
|
| 49 |
/*Insertion du calendrier */
|
51 |
/*Insert a calendar */
|
| 50 |
var dp_cal;
|
52 |
var dp_cal;
|
| 51 |
window.onload = function () {
|
53 |
window.onload = function () {
|
| 52 |
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
|
54 |
dp_cal = new Epoch('epoch_popup','popup',document.getElementById('popup_container'));
|
| 53 |
};
|
55 |
};
|
| 54 |
</script>
|
56 |
</script>
|
| Line 102... |
Line 104... |
| 102 |
echo <<<EOM
|
104 |
echo <<<EOM
|
| 103 |
<b><i>$login</i> $l_user_exists</b>
|
105 |
<b><i>$login</i> $l_user_exists</b>
|
| 104 |
EOM;
|
106 |
EOM;
|
| 105 |
}
|
107 |
}
|
| 106 |
else{
|
108 |
else{
|
| 107 |
|
- |
|
| 108 |
/*création de l'utilisateur*/
|
109 |
/*création de l'utilisateur*/
|
| 109 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
110 |
if (is_file("../lib/$config[general_lib_type]/create_user.php"))
|
| 110 |
include("../lib/$config[general_lib_type]/create_user.php");
|
111 |
include("../lib/$config[general_lib_type]/create_user.php");
|
| 111 |
/* Petit traitement pré-impression pour la lisibilité */
|
112 |
/* Petit traitement pré-impression pour la lisibilité */
|
| 112 |
/* Récupération des attributs du groupe le cas échéant */
|
113 |
/* Récupération des attributs du groupe le cas échéant */
|
| Line 116... |
Line 117... |
| 116 |
$saved_login = $login;
|
117 |
$saved_login = $login;
|
| 117 |
$login = $group;
|
118 |
$login = $group;
|
| 118 |
if (is_file("../lib/sql/group_info.php"))
|
119 |
if (is_file("../lib/sql/group_info.php"))
|
| 119 |
include("../lib/sql/group_info.php");
|
120 |
include("../lib/sql/group_info.php");
|
| 120 |
$login = $saved_login;}
|
121 |
$login = $saved_login;}
|
| 121 |
|
- |
|
| 122 |
|
122 |
|
| 123 |
/* Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
123 |
/* Si les valeurs de durée sont vide remplissage avec la valeur 'Illimitée'*/
|
| 124 |
/* et formatage des secondes sous le format Heure min ses*/
|
124 |
/* et formatage des secondes sous le format Heure min ses*/
|
| 125 |
if ($sto_imp==''){ $sto_imp='-';}
|
125 |
if ($sto_imp==''){ $sto_imp='-';}
|
| 126 |
else { $sto_imp=sec_imp($sto_imp);}
|
126 |
else { $sto_imp=sec_imp($sto_imp);}
|
| Line 144... |
Line 144... |
| 144 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
144 |
<input type="hidden" name="mas_imp" value="'.$mas_imp.'">
|
| 145 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
145 |
<input type="hidden" name="mds_imp" value="'.$mds_imp.'">
|
| 146 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
146 |
<input type="hidden" name="mms_imp" value="'.$mms_imp.'">
|
| 147 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
147 |
<input type="hidden" name="exp_imp" value="'.$Expiration.'">
|
| 148 |
</form>';
|
148 |
</form>';
|
| 149 |
echo' <a href="#" onclick="document.forms[\'impression\'].submit();">Ticket</a>';
|
149 |
echo' <a href="#" onclick="document.forms[\'impression\'].submit();">';echo "$l_create_ticket</a>";
|
| 150 |
//fin ticket impression
|
150 |
//fin ticket impression
|
| 151 |
}
|
151 |
}
|
| 152 |
else //utilisateur = adresse mac
|
152 |
else //utilisateur = adresse mac
|
| 153 |
{
|
153 |
{
|
| 154 |
exec("sudo /usr/bin/systemctl reload chilli.service");
|
154 |
exec("sudo /usr/bin/systemctl reload chilli.service");
|
| Line 161... |
Line 161... |
| 161 |
?>
|
161 |
?>
|
| 162 |
<form name="newuser" method=post>
|
162 |
<form name="newuser" method=post>
|
| 163 |
<input type=hidden name=create value="0">
|
163 |
<input type=hidden name=create value="0">
|
| 164 |
<input type=hidden name=show value="0">
|
164 |
<input type=hidden name=show value="0">
|
| 165 |
<input type=hidden name=langue_imp value='fr'>
|
165 |
<input type=hidden name=langue_imp value='fr'>
|
| 166 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
- |
|
| 167 |
<?php
|
166 |
<?php
|
| 168 |
if($create==0){
|
167 |
if($create==0){
|
| 169 |
echo <<<EOM
|
168 |
echo <<<EOM
|
| - |
|
169 |
<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
|
| 170 |
<tr>
|
170 |
<tr>
|
| 171 |
<td class="etiquette" colspan=$colspan>
|
171 |
<td class="etiquette" colspan=$colspan>
|
| 172 |
$l_login
|
172 |
$l_login
|
| 173 |
</td><td>
|
173 |
</td><td>
|
| 174 |
<input type=text name="login" value="$login" size=20>
|
174 |
<input type=text name="login" value="$login" size=20>
|
| Line 279... |
Line 279... |
| 279 |
}
|
279 |
}
|
| 280 |
if ($show_ops && $advanced){
|
280 |
if ($show_ops && $advanced){
|
| 281 |
print <<<EOM
|
281 |
print <<<EOM
|
| 282 |
<tr>
|
282 |
<tr>
|
| 283 |
<td class="etiquette" colspan=$colspan>
|
283 |
<td class="etiquette" colspan=$colspan>
|
| 284 |
<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>
|
284 |
<a href="$help_link" target="help" onclick="window.open('$help_link','help','width=600,height=350,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$desc</font></a>
|
| 285 |
</td>
|
285 |
</td>
|
| 286 |
EOM;
|
286 |
EOM;
|
| 287 |
switch ($key){
|
287 |
switch ($key){
|
| 288 |
case 'Simultaneous-Use' :
|
288 |
case 'Simultaneous-Use' :
|
| 289 |
case 'Max-All-Session' :
|
289 |
case 'Max-All-Session' :
|
| Line 306... |
Line 306... |
| 306 |
case 'WISPr-Redirection-URL' :
|
306 |
case 'WISPr-Redirection-URL' :
|
| 307 |
echo "<input type=\"hidden\" name=$oper_name value=\"=\">";
|
307 |
echo "<input type=\"hidden\" name=$oper_name value=\"=\">";
|
| 308 |
break;
|
308 |
break;
|
| 309 |
default :
|
309 |
default :
|
| 310 |
print <<<EOM
|
310 |
print <<<EOM
|
| 311 |
<td>
|
311 |
<td>
|
| 312 |
<select name=$oper_name>
|
312 |
<select name=$oper_name>
|
| 313 |
<option $selected[$op_eq] value="=">=
|
313 |
<option $selected[$op_eq] value="=">=
|
| 314 |
<option $selected[$op_set] value=":=">:=
|
314 |
<option $selected[$op_set] value=":=">:=
|
| 315 |
<option $selected[$op_add] value="+=">+=
|
315 |
<option $selected[$op_add] value="+=">+=
|
| 316 |
<option $selected[$op_eq2] value="==">==
|
316 |
<option $selected[$op_eq2] value="==">==
|
| Line 421... |
Line 421... |
| 421 |
<option value=\"es\" >Español</option>
|
421 |
<option value=\"es\" >Español</option>
|
| 422 |
<option value=\"it\" >Italiano</option>
|
422 |
<option value=\"it\" >Italiano</option>
|
| 423 |
<option value=\"pt\" >Portugês</option>
|
423 |
<option value=\"pt\" >Portugês</option>
|
| 424 |
<option value=\"ar\" >العربية</option>
|
424 |
<option value=\"ar\" >العربية</option>
|
| 425 |
</select></td></tr>";
|
425 |
</select></td></tr>";
|
| - |
|
426 |
echo "</table>";
|
| 426 |
}
|
427 |
}
|
| 427 |
echo "</table>";
|
- |
|
| 428 |
if($create == 1)
|
428 |
if($create == 1)
|
| 429 |
{
|
429 |
{
|
| 430 |
echo "<center><a href=\"user_admin.php?login=$login\">$l_show_profile</a></center>";
|
430 |
echo "<a href=\"user_admin.php?login=$login\">$l_show_profile</a>";
|
| 431 |
}
|
431 |
}
|
| 432 |
else
|
432 |
else
|
| 433 |
{
|
433 |
{
|
| 434 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|
434 |
echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newuser');\">";
|
| 435 |
echo "<input type='hidden' name='nbtickets' value=''>";
|
435 |
echo "<input type='hidden' name='nbtickets' value=''>";
|