Subversion Repositories ALCASAR

Rev

Rev 911 | Rev 1566 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 911 Rev 1377
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
//Gestion de la langue
3
//Gestion de la langue
4
if (is_file("../lib/langues.php"))
4
if (is_file("../lib/langues.php"))
5
	include("../lib/langues.php");
5
	include("../lib/langues.php");
6
	
-
 
7
require('/etc/freeradius-web/config.php');
6
require('/etc/freeradius-web/config.php');
8
if ($show == 1){
-
 
9
	header("Location: group_admin.php?login=$login");
-
 
10
	exit;
-
 
11
}
-
 
12
 
7
 
13
if ($config[general_lib_type] != 'sql'){
8
if ($config[general_lib_type] != 'sql'){
14
	echo <<<EOM
9
	echo <<<EOM
15
<title>$l_title</title>
10
<title>$l_title</title>
16
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
11
<meta http-equiv="Content-Type" content="text/html; charset=$config[general_charset]">
Line 62... Line 57...
62
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
57
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
63
	<tr bgcolor="#666666"><td>
58
	<tr bgcolor="#666666"><td>
64
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
59
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
65
		<tr><td valign="middle" align="left">
60
		<tr><td valign="middle" align="left">
66
<center>
61
<center>
67
<table border=0 width=550 cellpadding=1 cellspacing=1>
62
<table border=0 width=750 cellpadding=1 cellspacing=1>
68
<tr valign=top>
63
<tr valign=top>
69
<td width=340></td>
64
<td width=340></td>
70
<td bgcolor="black" width=200>
65
<td bgcolor="black" width=200>
71
	<table border=0 width=100% cellpadding=2 cellspacing=0>
66
	<table border=0 width=100% cellpadding=2 cellspacing=0>
72
	<tr bgcolor="#907030" align=right valign=top><th>
67
	<tr bgcolor="#907030" align=right valign=top><th>
Line 92... Line 87...
92
			include("../lib/$config[general_lib_type]/create_group.php");
87
			include("../lib/$config[general_lib_type]/create_group.php");
93
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
88
		if (is_file("../lib/$config[general_lib_type]/group_info.php"))
94
			include("../lib/$config[general_lib_type]/group_info.php");
89
			include("../lib/$config[general_lib_type]/group_info.php");
95
	}
90
	}
96
}
91
}
-
 
92
if ($create == 0){
97
?>
93
?>
98
   <form name="newgroup" method=post>
94
   <form name="newgroup" method=post>
99
      <input type=hidden name=create value="0">
95
      <input type=hidden name=create value="0">
100
      <input type=hidden name=show value="0">
96
      <input type=hidden name=show value="0">
101
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
97
	<table border=1 bordercolordark=#ffffe0 bordercolorlight=#000000 width=100% cellpadding=2 cellspacing=0 bgcolor="#ffffe0" valign=top>
Line 126... Line 122...
126
	</tr>
122
	</tr>
127
	<tr>
123
	<tr>
128
		<td class="etiquette" colspan=$colspan>
124
		<td class="etiquette" colspan=$colspan>
129
		$l_group_members
125
		$l_group_members
130
		</td><td>
126
		</td><td>
131
		<textarea name=members cols="15" wrap="PHYSICAL" rows=5></textarea>
127
		<textarea name=members cols="50" wrap="PHYSICAL" rows=5></textarea>
132
		</td>
128
		</td>
133
	</tr>
129
	</tr>
134
		
130
		
135
EOM;
131
EOM;
136
	foreach($show_attrs as $key => $desc){
132
	foreach($show_attrs as $key => $desc){
Line 205... Line 201...
205
			case 'WISPr-Redirection-URL' :
201
			case 'WISPr-Redirection-URL' :
206
				$advanced=1;
202
				$advanced=1;
207
				$help_link="help/wispr_redirection_url_help.html";
203
				$help_link="help/wispr_redirection_url_help.html";
208
				$desc=$l_wispr_redirection;
204
				$desc=$l_wispr_redirection;
209
				break;
205
				break;
-
 
206
			case 'Filter-Id' :
-
 
207
				$advanced=1;
-
 
208
				$help_link="help/filtering_help.html";
-
 
209
				$desc=$l_filtering;
-
 
210
				break;
210
			default:
211
			default:
211
				$advanced=1;
212
				$advanced=1;
212
				break;
213
				break;
213
		}
214
		}
214
//		if ($advanced){
215
//		if ($advanced){
Line 234... Line 235...
234
				case 'Max-Monthly-Session' :
235
				case 'Max-Monthly-Session' :
235
				case 'Login-Time' : 
236
				case 'Login-Time' : 
236
				case 'Expiration' :
237
				case 'Expiration' :
237
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
238
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
238
					break;
239
					break;
-
 
240
				case 'Filter-Id' :
-
 
241
					echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=";
-
 
242
					break;
239
				case 'Session-Timeout' :
243
				case 'Session-Timeout' :
240
				case 'ChilliSpot-Max-Input-Octets' :
244
				case 'ChilliSpot-Max-Input-Octets' :
241
				case 'ChilliSpot-Max-Output-Octets' :
245
				case 'ChilliSpot-Max-Output-Octets' :
242
				case 'ChilliSpot-Max-Total-Octets' :
246
				case 'ChilliSpot-Max-Total-Octets' :
243
				case 'ChilliSpot-Bandwidth-Max-Up' :
247
				case 'ChilliSpot-Bandwidth-Max-Up' :
Line 266... Line 270...
266
					</td>
270
					</td>
267
EOM;
271
EOM;
268
					break;
272
					break;
269
			}
273
			}
270
		}
274
		}
-
 
275
	
271
/* 
276
/* 
272
Ajout du choix d'unité (pour les durées limites de session, journée et de mois) 
277
Ajout du choix d'unité (pour les durées limites de session, journée et de mois) 
273
et d'un calendrier pour la date d'expiration
278
et d'un calendrier pour la date d'expiration
274
Sauf dans le cas de la visualisation
279
Sauf dans le cas de la visualisation
275
*/
280
*/
Line 295... Line 300...
295
				break;
300
				break;
296
			case 'Expiration' :
301
			case 'Expiration' :
297
				/*Ajout du calendrier pour choisir la date*/
302
				/*Ajout du calendrier pour choisir la date*/
298
				echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
303
				echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=35>";
299
				break;
304
				break;
-
 
305
			case 'Filter-Id' :
-
 
306
				echo "<select name='Filter-Id'>";
-
 
307
				echo "<option>$l_filtering_none</option>";
-
 
308
				echo "<option value=\"00000001\">$l_filtering_havp</option>";
-
 
309
				echo "<option value=\"00000011\">$l_filtering_havp_bl</option>";
-
 
310
				echo "<option value=\"00000101\">$l_filtering_havp_wl</option>";
-
 
311
				echo "</select>";
-
 
312
				break;
300
			default :
313
			default :
301
				if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
314
				if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
302
				break;
315
				break;
303
			}
316
			}
304
	}else{
-
 
305
		/*Pas de gestion de remplissage lors de la visualisation*/
-
 
306
		if ($advanced) echo"<input type=text name=\"$name\" value=\"$val\" size=35>";
-
 
307
	}
317
	}
308
/*fin Ajout*/
318
/*fin Ajout*/
309
}
319
}
310
echo "</table><BR>";
320
echo "</table><BR>";
-
 
321
}
311
if ($create == 1)
322
if ($create == 1)
312
	echo "<input type=submit class=button value=\"$l_show_profile\" OnClick=\"this.form.show.value=1\">";
323
	echo "<br/><center><a href=\"group_admin.php?login=$login\">$l_show_profile</a></center>";
313
	else
324
else
314
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
325
	echo "<input type=submit class=button value=\"$l_create\" OnClick=\"return formControl('newgroup');\">";
315
?>
326
?>
316
<br><br>
327
<br><br>
317
</form>
328
</form>
318
	</td></tr>
329
	</td></tr>