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: group_new.php 2501 2018-02-28 00:34:14Z tom.houdayer $
2
# $Id: group_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 253... Line 253...
253
			case 'Alcasar-Filter' :
253
			case 'Alcasar-Filter' :
254
				$advanced = false;
254
				$advanced = false;
255
				$help_link = "help/filtering_help.html";
255
				$help_link = "help/filtering_help.html";
256
				$desc = $l_filtering;
256
				$desc = $l_filtering;
257
				break;
257
				break;
258
			case 'Alcasar-Filter-Proto' :
258
			case 'Alcasar-Protocols-Filter' :
259
				$advanced = false;
259
				$advanced = false;
260
				$help_link = "help/protocols_help.html";
260
				$help_link = "help/protocols_help.html";
261
				$desc = $l_proto;
261
				$desc = $l_proto;
262
				break;
262
				break;
263
			case 'Alcasar-Status-Open-Required' :
263
			case 'Alcasar-Status-Page-Must-Stay-Open' :
264
				$advanced = false;
264
				$advanced = false;
265
				$help_link = "help/statusOpenRequired_help.html";
265
				$help_link = "help/statusOpenRequired_help.html";
266
				$desc = $l_statusOpenRequired;
266
				$desc = $l_statusOpenRequired;
267
				break;
267
				break;
268
			default:
268
			default:
Line 295... Line 295...
295
				case 'ChilliSpot-Max-Total-Octets' :
295
				case 'ChilliSpot-Max-Total-Octets' :
296
				case 'ChilliSpot-Bandwidth-Max-Up' :
296
				case 'ChilliSpot-Bandwidth-Max-Up' :
297
				case 'ChilliSpot-Bandwidth-Max-Down' :
297
				case 'ChilliSpot-Bandwidth-Max-Down' :
298
				case 'WISPr-Redirection-URL' :
298
				case 'WISPr-Redirection-URL' :
299
				case 'Alcasar-Filter' :
299
				case 'Alcasar-Filter' :
300
				case 'Alcasar-Filter-Proto' :
300
				case 'Alcasar-Protocols-Filter' :
301
				case 'Alcasar-Status-Open-Required' :
301
				case 'Alcasar-Status-Page-Must-Stay-Open' :
302
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=";
302
					echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=";
303
					break;
303
					break;
304
				default :
304
				default :
305
					print <<<EOM
305
					print <<<EOM
306
					<td>
306
					<td>
Line 336... Line 336...
336
				case 'Max-Weekly-Session' :
336
				case 'Max-Weekly-Session' :
337
				case 'Max-Monthly-Session' :
337
				case 'Max-Monthly-Session' :
338
				case 'Login-Time' :
338
				case 'Login-Time' :
339
				case 'Expiration' :
339
				case 'Expiration' :
340
				case 'Alcasar-Filter' :
340
				case 'Alcasar-Filter' :
341
				case 'Alcasar-Filter-Proto' :
341
				case 'Alcasar-Protocols-Filter' :
342
				case 'Alcasar-Status-Open-Required' :
342
				case 'Alcasar-Status-Page-Must-Stay-Open' :
343
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
343
					echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
344
					break;
344
					break;
345
				case 'Session-Timeout' :
345
				case 'Session-Timeout' :
346
				case 'ChilliSpot-Max-Input-Octets' :
346
				case 'ChilliSpot-Max-Input-Octets' :
347
				case 'ChilliSpot-Max-Output-Octets' :
347
				case 'ChilliSpot-Max-Output-Octets' :
Line 420... Line 420...
420
				echo "<option value=\"2\">$l_filtering_havp</option>";
420
				echo "<option value=\"2\">$l_filtering_havp</option>";
421
				echo "<option value=\"3\">$l_filtering_havp_bl</option>";
421
				echo "<option value=\"3\">$l_filtering_havp_bl</option>";
422
				echo "<option value=\"4\">$l_filtering_havp_wl</option>";
422
				echo "<option value=\"4\">$l_filtering_havp_wl</option>";
423
				echo "</select>";
423
				echo "</select>";
424
				break;
424
				break;
425
			case 'Alcasar-Filter-Proto' :
425
			case 'Alcasar-Protocols-Filter' :
426
				echo "<select name=\"$name\">";
426
				echo "<select name=\"$name\">";
427
				echo "<option value=\"\"></option>";
427
				echo "<option value=\"\"></option>";
428
				echo "<option value=\"1\">$l_proto_0</option>";
428
				echo "<option value=\"1\">$l_proto_0</option>";
429
				echo "<option value=\"2\">$l_proto_1</option>";
429
				echo "<option value=\"2\">$l_proto_1</option>";
430
				echo "<option value=\"3\">$l_proto_2</option>";
430
				echo "<option value=\"3\">$l_proto_2</option>";
431
				echo "<option value=\"4\">$l_proto_3</option>";
431
				echo "<option value=\"4\">$l_proto_3</option>";
432
				echo "</select>";
432
				echo "</select>";
433
				break;
433
				break;
434
			case 'Alcasar-Status-Open-Required' :
434
			case 'Alcasar-Status-Page-Must-Stay-Open' :
435
				echo "<label><input type=\"radio\" name=\"$name\" value=\"\" checked>$l_yes</label>
435
				echo "<label><input type=\"radio\" name=\"$name\" value=\"\" checked>$l_yes</label>
436
					<label><input type=\"radio\" name=\"$name\" value=\"2\">$l_no</label>";
436
					<label><input type=\"radio\" name=\"$name\" value=\"2\">$l_no</label>";
437
				break;
437
				break;
438
			default :
438
			default :
439
				echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";
439
				echo "<input type=\"text\" name=\"$name\" value=\"$val\" size=\"20\">";