Subversion Repositories ALCASAR

Rev

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

Rev 2501 Rev 2505
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_new.php 2501 2018-02-28 00:34:14Z tom.houdayer $
2
# $Id: user_new.php 2505 2018-03-11 13:41:00Z 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
// Update Alcasar-Status-Open-Required
8
// Update Alcasar-Status-Page-Must-Stay-Open
9
if ((isset($_POST['Alcasar-Status-Open-Required'])) && ($_POST['Alcasar-Status-Open-Required'] === '2')) {
9
if ((isset($_POST['Alcasar-Status-Page-Must-Stay-Open'])) && ($_POST['Alcasar-Status-Page-Must-Stay-Open'] === '2')) {
10
	$_POST['Idle-Timeout'] = '600'; // 10 minutes
10
	$_POST['Idle-Timeout'] = '600'; // 10 minutes
11
} else {
11
} else {
12
	$_POST['Idle-Timeout'] = '';
12
	$_POST['Idle-Timeout'] = '';
13
}
13
}
14
$_POST['Idle-Timeout_op'] = '=';
14
$_POST['Idle-Timeout_op'] = '=';
Line 328... Line 328...
328
			case 'Alcasar-Filter' :
328
			case 'Alcasar-Filter' :
329
				$advanced = false;
329
				$advanced = false;
330
				$help_link = "help/filtering_help.html";
330
				$help_link = "help/filtering_help.html";
331
				$desc = $l_filtering;
331
				$desc = $l_filtering;
332
				break;
332
				break;
333
			case 'Alcasar-Filter-Proto' :
333
			case 'Alcasar-Protocols-Filter' :
334
				$advanced = false;
334
				$advanced = false;
335
				$help_link = "help/protocols_help.html";
335
				$help_link = "help/protocols_help.html";
336
				$desc = $l_proto;
336
				$desc = $l_proto;
337
				break;
337
				break;
338
			case 'Alcasar-Status-Open-Required' :
338
			case 'Alcasar-Status-Page-Must-Stay-Open' :
339
				$advanced = false;
339
				$advanced = false;
340
				$help_link = "help/statusOpenRequired_help.html";
340
				$help_link = "help/statusOpenRequired_help.html";
341
				$desc = $l_statusOpenRequired;
341
				$desc = $l_statusOpenRequired;
342
				break;
342
				break;
343
			default:
343
			default:
Line 370... Line 370...
370
				case 'ChilliSpot-Max-Total-Octets' :
370
				case 'ChilliSpot-Max-Total-Octets' :
371
				case 'ChilliSpot-Bandwidth-Max-Up' :
371
				case 'ChilliSpot-Bandwidth-Max-Up' :
372
				case 'ChilliSpot-Bandwidth-Max-Down' :
372
				case 'ChilliSpot-Bandwidth-Max-Down' :
373
				case 'WISPr-Redirection-URL' :
373
				case 'WISPr-Redirection-URL' :
374
				case 'Alcasar-Filter' :
374
				case 'Alcasar-Filter' :
375
				case 'Alcasar-Filter-Proto' :
375
				case 'Alcasar-Protocols-Filter' :
376
				case 'Alcasar-Status-Open-Required' :
376
				case 'Alcasar-Status-Page-Must-Stay-Open' :
377
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=</option></select></td>";
377
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=</option></select></td>";
378
					break;
378
					break;
379
				default :
379
				default :
380
					print <<<EOM
380
					print <<<EOM
381
						<td>
381
						<td>
Line 420... Line 420...
420
				case 'ChilliSpot-Max-Total-Octets' :
420
				case 'ChilliSpot-Max-Total-Octets' :
421
				case 'ChilliSpot-Bandwidth-Max-Up' :
421
				case 'ChilliSpot-Bandwidth-Max-Up' :
422
				case 'ChilliSpot-Bandwidth-Max-Down' :
422
				case 'ChilliSpot-Bandwidth-Max-Down' :
423
				case 'WISPr-Redirection-URL' :
423
				case 'WISPr-Redirection-URL' :
424
				case 'Alcasar-Filter' :
424
				case 'Alcasar-Filter' :
425
				case 'Alcasar-Filter-Proto' :
425
				case 'Alcasar-Protocols-Filter' :
426
				case 'Alcasar-Status-Open-Required' :
426
				case 'Alcasar-Status-Page-Must-Stay-Open' :
427
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
427
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
428
					break;
428
					break;
429
				default :
429
				default :
430
					print <<<EOM
430
					print <<<EOM
431
						<select name=\"$oper_name\">
431
						<select name=\"$oper_name\">
Line 494... Line 494...
494
					echo "<option value=\"2\">$l_filtering_havp</option>";
494
					echo "<option value=\"2\">$l_filtering_havp</option>";
495
					echo "<option value=\"3\">$l_filtering_havp_bl</option>";
495
					echo "<option value=\"3\">$l_filtering_havp_bl</option>";
496
					echo "<option value=\"4\">$l_filtering_havp_wl</option>";
496
					echo "<option value=\"4\">$l_filtering_havp_wl</option>";
497
					echo "</select>";
497
					echo "</select>";
498
					break;
498
					break;
499
				case 'Alcasar-Filter-Proto' :
499
				case 'Alcasar-Protocols-Filter' :
500
					echo "<select name=\"$name\">";
500
					echo "<select name=\"$name\">";
501
					echo "<option value=\"\"></option>";
501
					echo "<option value=\"\"></option>";
502
					echo "<option value=\"1\">$l_proto_0</option>";
502
					echo "<option value=\"1\">$l_proto_0</option>";
503
					echo "<option value=\"2\">$l_proto_1</option>";
503
					echo "<option value=\"2\">$l_proto_1</option>";
504
					echo "<option value=\"3\">$l_proto_2</option>";
504
					echo "<option value=\"3\">$l_proto_2</option>";
505
					echo "<option value=\"4\">$l_proto_3</option>";
505
					echo "<option value=\"4\">$l_proto_3</option>";
506
					echo "</select>";
506
					echo "</select>";
507
					break;
507
					break;
508
				case 'Alcasar-Status-Open-Required' :
508
				case 'Alcasar-Status-Page-Must-Stay-Open' :
509
					echo "<label><input type=\"radio\" name=\"$name\" value=\"\" checked>$l_yes</label>
509
					echo "<label><input type=\"radio\" name=\"$name\" value=\"\" checked>$l_yes</label>
510
						<label><input type=\"radio\" name=\"$name\" value=\"2\">$l_no</label>";
510
						<label><input type=\"radio\" name=\"$name\" value=\"2\">$l_no</label>";
511
					break;
511
					break;
512
				default :
512
				default :
513
					echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
513
					echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";