Subversion Repositories ALCASAR

Rev

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

Rev 886 Rev 899
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
//gestion de la langue
-
 
3
$origine='user_edit';
-
 
4
if (is_file("../lib/langues.php"))
-
 
5
	include("../lib/langues.php");
-
 
6
echo "$l_simultaneous_use";
2
require('/etc/freeradius-web/config.php');
7
require('/etc/freeradius-web/config.php');
3
require('../lib/attrshow.php');
8
require('../lib/attrshow.php');
4
require('../lib/defaults.php');
9
require('../lib/defaults.php');
5
$extra_text = '';
10
$extra_text = '';
6
if ($user_type != 'group'){
11
if ($user_type != 'group'){
Line 202... Line 207...
202
			$val = ereg_replace('"','&quot;',$val);
207
			$val = ereg_replace('"','&quot;',$val);
203
			$oper_name = $name1 . '_op';
208
			$oper_name = $name1 . '_op';
204
			$oper = $ops[$i];
209
			$oper = $ops[$i];
205
			$selected[$oper] = 'selected';
210
			$selected[$oper] = 'selected';
206
			$i++;
211
			$i++;
-
 
212
		switch ($key)
-
 
213
		{
-
 
214
				// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.) 
-
 
215
			case 'Simultaneous-Use' : 
-
 
216
				$advanced=1;
-
 
217
				$help_link="help/simultaneous_use_help.html";
-
 
218
				$desc=$l_simultaneous_use;
-
 
219
				break;
-
 
220
			case 'Max-All-Session' :
-
 
221
				$advanced=1;
-
 
222
				$help_link="help/max_all_session_help.html";
-
 
223
				$desc=$l_max_all_session;
-
 
224
				break;
-
 
225
			case 'Session-Timeout' : 
-
 
226
				$advanced=1;
-
 
227
				$help_link="help/session_timeout_help.html";
-
 
228
				$desc=$l_session_timeout;
-
 
229
				break;
-
 
230
			case 'Max-Daily-Session' :
-
 
231
				$advanced=1;
-
 
232
				$help_link="help/session_timeout_help.html";
-
 
233
				$desc=$l_daily_timeout;
-
 
234
				break;
-
 
235
			case 'Max-Monthly-Session' :
-
 
236
				$advanced=1;
-
 
237
				$help_link="help/session_timeout_help.html";
-
 
238
				$desc=$l_monthly_timeout;
-
 
239
				break;
-
 
240
			case 'Login-Time' : 
-
 
241
				$advanced=1;
-
 
242
				$help_link="help/login_time_help.html";
-
 
243
				$desc=$l_login_time;
-
 
244
				break;
-
 
245
			case 'Expiration' :
-
 
246
				$advanced=1;
-
 
247
				$help_link="help/expiration_help.html";
-
 
248
				$desc=$l_expiration;
-
 
249
				break;
-
 
250
			case 'ChilliSpot-Max-Input-Octets' :
-
 
251
				$advanced=1;
-
 
252
				$help_link="help/chillispot_max_input_octets_help.html";
-
 
253
				$desc=$l_max_input_octets;
-
 
254
				break;
-
 
255
			case 'ChilliSpot-Max-Output-Octets' :
-
 
256
				$advanced=1;
-
 
257
				$help_link="help/chillispot_max_output_octets_help.html";
-
 
258
				$desc=$l_max_output_octets;
-
 
259
				break;
-
 
260
			case 'ChilliSpot-Max-Total-Octets' :
-
 
261
				$advanced=1;
-
 
262
				$help_link="help/chillispot_max_total_octets_help.html";
-
 
263
				$desc=$l_max_total_octets;
-
 
264
				break;
-
 
265
			case 'ChilliSpot-Bandwidth-Max-Up' :
-
 
266
				$advanced=1;
-
 
267
				$help_link="help/chillispot_bandwidth_max_up_help.html";
-
 
268
				$desc=$l_max_bandwidth_up;
-
 
269
				break;
-
 
270
			case 'ChilliSpot-Bandwidth-Max-Down' :
-
 
271
				$advanced=1;
-
 
272
				$help_link="help/chillispot_bandwidth_max_down_help.html";
-
 
273
				$desc=$l_max_bandwidth_down;
-
 
274
				break;
-
 
275
			case 'WISPr-Redirection-URL' :
-
 
276
				$advanced=1;
-
 
277
				$help_link="help/wispr_redirection_url_help.html";
-
 
278
				$desc=$l_wispr_redirection;
-
 
279
				break;
-
 
280
			default:
-
 
281
				$advanced=1;
-
 
282
				break;
-
 
283
		}
207
			print <<<EOM
284
			print <<<EOM
208
<tr>
285
			<tr>
209
<td align=right bgcolor="#d0ddb0">
286
			<td class="etiquette">
-
 
287
			<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>
210
EOM;
288
EOM;
211
			$desc = addslashes($desc);
-
 
212
			eval("\$desc = \"$desc\";");
-
 
213
			$desc = stripslashes($desc);
-
 
214
			if ($i == 1)
-
 
215
				echo "$desc\n";
-
 
216
			else
-
 
217
				echo "$desc ($i)\n";
-
 
218
			echo "</td>";
-
 
219
			if ($show_ops){
289
			if ($show_ops){
220
				switch ($key)
290
				switch ($key)
221
					{
291
					{
222
					case 'Simultaneous-Use' : 
292
					case 'Simultaneous-Use' : 
223
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";
293
						echo "<td><select name=$oper_name><option $selected[$op_eq] value=\":=\">:=</td><td><input type=text name=\"$name1\" value=\"$val\" size=40></td>";