Subversion Repositories ALCASAR

Rev

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

Rev 2312 Rev 2319
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_new.php 2312 2017-06-26 15:56:20Z tom.houdayer $
2
# $Id: user_new.php 2319 2017-07-04 23:21:40Z tom.houdayer $
3
 
3
 
4
//gestion de la langue
4
//gestion de la langue
5
if (is_file("../lib/langues.php"))
5
if (is_file("../lib/langues.php"))
6
	include("../lib/langues.php");
6
	include("../lib/langues.php");
7
 
7
 
8
require('../lib/operators.php');
-
 
9
 
-
 
10
if(!isset($create)) $create=0;
8
if(!isset($create)) $create=0;
11
if(!isset($show)) $show=0;
9
if(!isset($show)) $show=0;
12
if(!isset($login)) $login = '';
10
if(!isset($login)) $login = '';
13
if(!isset($cn)) $cn = '';
11
if(!isset($cn)) $cn = '';
14
if(!isset($mail)) $mail = '';
12
if(!isset($mail)) $mail = '';
Line 31... Line 29...
31
require('../lib/defaults.php');
29
require('../lib/defaults.php');
32
 
30
 
33
if (false && /* Hide operator column */ $config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true') {
31
if (false && /* Hide operator column */ $config['general_lib_type'] == 'sql' && $config['sql_use_operators'] == 'true') {
34
	$colspan = 2;
32
	$colspan = 2;
35
	$show_ops = 1;
33
	$show_ops = 1;
-
 
34
	require('../lib/operators.php');
36
} else {
35
} else {
37
	$show_ops = 0;
36
	$show_ops = 0;
38
	$colspan = 1;
37
	$colspan = 1;
39
}
38
}
40
?>
39
?>
Line 260... Line 259...
260
		}
259
		}
261
		switch ($key)
260
		switch ($key)
262
		{
261
		{
263
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
262
		// $advanced = 1 : champs de saisie amélioré (calendrier, convertisseur, etc.)
264
			case 'Simultaneous-Use' :
263
			case 'Simultaneous-Use' :
265
				$advanced=false;
264
				$advanced = false;
266
				$help_link="help/simultaneous_use_help.html";
265
				$help_link = "help/simultaneous_use_help.html";
267
				$desc=$l_simultaneous_use;
266
				$desc = $l_simultaneous_use;
268
				break;
267
				break;
269
			case 'Max-All-Session' :
268
			case 'Max-All-Session' :
270
				$advanced=false;
269
				$advanced = false;
271
				$help_link="help/max_all_session_help.html";
270
				$help_link = "help/max_all_session_help.html";
272
				$desc=$l_max_all_session;
271
				$desc = $l_max_all_session;
273
				break;
272
				break;
274
			case 'Session-Timeout' :
273
			case 'Session-Timeout' :
275
				$advanced=true;
274
				$advanced = true;
276
				$help_link="help/session_timeout_help.html";
275
				$help_link = "help/session_timeout_help.html";
277
				$desc=$l_session_timeout;
276
				$desc = $l_session_timeout;
278
				break;
277
				break;
279
			case 'Max-Daily-Session' :
278
			case 'Max-Daily-Session' :
280
				$advanced=true;
279
				$advanced = true;
281
				$help_link="help/session_timeout_help.html";
280
				$help_link = "help/session_timeout_help.html";
282
				$desc=$l_daily_timeout;
281
				$desc = $l_daily_timeout;
283
				break;
282
				break;
284
			case 'Max-Monthly-Session' :
283
			case 'Max-Monthly-Session' :
285
				$advanced=true;
284
				$advanced = true;
286
				$help_link="help/session_timeout_help.html";
285
				$help_link = "help/session_timeout_help.html";
287
				$desc=$l_monthly_timeout;
286
				$desc = $l_monthly_timeout;
288
				break;
287
				break;
289
			case 'Login-Time' :
288
			case 'Login-Time' :
290
				$advanced=true;
289
				$advanced = true;
291
				$help_link="help/login_time_help.html";
290
				$help_link = "help/login_time_help.html";
292
				$desc=$l_login_time;
291
				$desc = $l_login_time;
293
				break;
292
				break;
294
			case 'Expiration' :
293
			case 'Expiration' :
295
				$advanced=false;
294
				$advanced = false;
296
				$help_link="help/expiration_help.html";
295
				$help_link = "help/expiration_help.html";
297
				$desc=$l_expiration;
296
				$desc = $l_expiration;
298
				break;
297
				break;
299
			case 'ChilliSpot-Max-Input-Octets' :
298
			case 'ChilliSpot-Max-Input-Octets' :
300
				$advanced=true;
299
				$advanced = true;
301
				$help_link="help/chillispot_max_input_octets_help.html";
300
				$help_link = "help/chillispot_max_input_octets_help.html";
302
				$desc=$l_max_input_octets;
301
				$desc = $l_max_input_octets;
303
				break;
302
				break;
304
			case 'ChilliSpot-Max-Output-Octets' :
303
			case 'ChilliSpot-Max-Output-Octets' :
305
				$advanced=true;
304
				$advanced = true;
306
				$help_link="help/chillispot_max_output_octets_help.html";
305
				$help_link = "help/chillispot_max_output_octets_help.html";
307
				$desc=$l_max_output_octets;
306
				$desc = $l_max_output_octets;
308
				break;
307
				break;
309
			case 'ChilliSpot-Max-Total-Octets' :
308
			case 'ChilliSpot-Max-Total-Octets' :
310
				$advanced=true;
309
				$advanced = true;
311
				$help_link="help/chillispot_max_total_octets_help.html";
310
				$help_link = "help/chillispot_max_total_octets_help.html";
312
				$desc=$l_max_total_octets;
311
				$desc = $l_max_total_octets;
313
				break;
312
				break;
314
			case 'ChilliSpot-Bandwidth-Max-Up' :
313
			case 'ChilliSpot-Bandwidth-Max-Up' :
315
				$advanced=true;
314
				$advanced = true;
316
				$help_link="help/chillispot_bandwidth_max_up_help.html";
315
				$help_link = "help/chillispot_bandwidth_max_up_help.html";
317
				$desc=$l_max_bandwidth_up;
316
				$desc = $l_max_bandwidth_up;
318
				break;
317
				break;
319
			case 'ChilliSpot-Bandwidth-Max-Down' :
318
			case 'ChilliSpot-Bandwidth-Max-Down' :
320
				$advanced=true;
319
				$advanced = true;
321
				$help_link="help/chillispot_bandwidth_max_down_help.html";
320
				$help_link = "help/chillispot_bandwidth_max_down_help.html";
322
				$desc=$l_max_bandwidth_down;
321
				$desc = $l_max_bandwidth_down;
323
				break;
322
				break;
324
			case 'WISPr-Redirection-URL' :
323
			case 'WISPr-Redirection-URL' :
325
				$advanced=true;
324
				$advanced = true;
326
				$help_link="help/wispr_redirection_url_help.html";
325
				$help_link = "help/wispr_redirection_url_help.html";
327
				$desc=$l_wispr_redirection;
326
				$desc = $l_wispr_redirection;
328
				break;
327
				break;
329
			case 'Filter-Id' :
328
			case 'Filter-Id' :
330
				$advanced=false;
329
				$advanced = false;
331
				$help_link="help/filtering_help.html";
330
				$help_link = "help/filtering_help.html";
332
				$desc=$l_filtering;
331
				$desc = $l_filtering;
333
				break;
332
				break;
334
			default:
333
			default:
335
				$advanced=1;
334
				$advanced = true;
336
				break;
335
				break;
337
		}
336
		}
338
 
337
 
339
		$advancedField = ($advanced) ? ' class="advanced-field"' : '';
338
		$advancedField = ($advanced) ? ' class="advanced-field"' : '';
340
 
339
 
Line 492... Line 491...
492
			}
491
			}
493
		}
492
		}
494
		echo '</td>';
493
		echo '</td>';
495
	}
494
	}
496
 
495
 
497
	/*Network protocole filtering*/
496
/*Network protocole filtering*/
498
	print <<<EOM
497
print <<<EOM
499
	<tr>
498
	<tr>
500
		<td class="etiquette" colspan="$colspan">
499
		<td class="etiquette" colspan="$colspan">
501
		<a href="help/protocols_help.html" target="help" onclick="window.open('help/protocols_help.html','help','width=600,height=250,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$l_proto</font></a>
500
		<a href="help/protocols_help.html" target="help" onclick="window.open('help/protocols_help.html','help','width=600,height=250,toolbar=no,scrollbars=no,resizable=yes')" title="$l_click_for_help"><font color="blue">$l_proto</font></a>
502
		</td>
501
		</td>
503
		<td width=20>
502
		<td width=20>