Subversion Repositories ALCASAR

Rev

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

Rev 2510 Rev 2512
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2510 2018-03-11 14:38:39Z tom.houdayer $
2
# $Id: user_edit.php 2512 2018-03-11 15:19:43Z 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
 
Line 257... Line 257...
257
					$grp_maxweek = $val;
257
					$grp_maxweek = $val;
258
					break;
258
					break;
259
				case 'Max-Monthly-Session' :
259
				case 'Max-Monthly-Session' :
260
					$grp_maxmonth = $val;
260
					$grp_maxmonth = $val;
261
					break;
261
					break;
262
				case 'ChilliSpot-Max-Input-Octets' :
262
				case 'CoovaChilli-Max-Input-Octets' :
263
					$grp_maxio = $val;
263
					$grp_maxio = $val;
264
					break;
264
					break;
265
				case 'ChilliSpot-Max-Output-Octets' :
265
				case 'CoovaChilli-Max-Output-Octets' :
266
					$grp_maxoo = $val;
266
					$grp_maxoo = $val;
267
					break;
267
					break;
268
				case 'ChilliSpot-Max-Total-Octets' :
268
				case 'CoovaChilli-Max-Total-Octets' :
269
					$grp_maxto = $val;
269
					$grp_maxto = $val;
270
					break;
270
					break;
271
				case 'ChilliSpot-Bandwidth-Max-Up' :
271
				case 'CoovaChilli-Bandwidth-Max-Up' :
272
					$grp_bwup = $val;
272
					$grp_bwup = $val;
273
					break;
273
					break;
274
				case 'ChilliSpot-Bandwidth-Max-Down' :
274
				case 'CoovaChilli-Bandwidth-Max-Down' :
275
					$grp_bwdown = $val;
275
					$grp_bwdown = $val;
276
					break;
276
					break;
277
				case 'WISPr-Redirection-URL' :
277
				case 'WISPr-Redirection-URL' :
278
					$grp_redir = $val;
278
					$grp_redir = $val;
279
					break;
279
					break;
Line 463... Line 463...
463
				case 'Expiration' :
463
				case 'Expiration' :
464
					$advanced = false;
464
					$advanced = false;
465
					$help_link = "help/expiration_help.html";
465
					$help_link = "help/expiration_help.html";
466
					$desc = $l_expiration;
466
					$desc = $l_expiration;
467
					break;
467
					break;
468
				case 'ChilliSpot-Max-Input-Octets' :
468
				case 'CoovaChilli-Max-Input-Octets' :
469
					$advanced = true;
469
					$advanced = true;
470
					$help_link = "help/chillispot_max_input_octets_help.html";
470
					$help_link = "help/coovachilli_max_input_octets_help.html";
471
					$desc = $l_max_input_octets;
471
					$desc = $l_max_input_octets;
472
					break;
472
					break;
473
				case 'ChilliSpot-Max-Output-Octets' :
473
				case 'CoovaChilli-Max-Output-Octets' :
474
					$advanced = true;
474
					$advanced = true;
475
					$help_link = "help/chillispot_max_output_octets_help.html";
475
					$help_link = "help/coovachilli_max_output_octets_help.html";
476
					$desc = $l_max_output_octets;
476
					$desc = $l_max_output_octets;
477
					break;
477
					break;
478
				case 'ChilliSpot-Max-Total-Octets' :
478
				case 'CoovaChilli-Max-Total-Octets' :
479
					$advanced = true;
479
					$advanced = true;
480
					$help_link = "help/chillispot_max_total_octets_help.html";
480
					$help_link = "help/coovachilli_max_total_octets_help.html";
481
					$desc = $l_max_total_octets;
481
					$desc = $l_max_total_octets;
482
					break;
482
					break;
483
				case 'ChilliSpot-Bandwidth-Max-Up' :
483
				case 'CoovaChilli-Bandwidth-Max-Up' :
484
					$advanced = true;
484
					$advanced = true;
485
					$help_link = "help/chillispot_bandwidth_max_up_help.html";
485
					$help_link = "help/coovachilli_bandwidth_max_up_help.html";
486
					$desc = $l_max_bandwidth_up;
486
					$desc = $l_max_bandwidth_up;
487
					break;
487
					break;
488
				case 'ChilliSpot-Bandwidth-Max-Down' :
488
				case 'CoovaChilli-Bandwidth-Max-Down' :
489
					$advanced = true;
489
					$advanced = true;
490
					$help_link = "help/chillispot_bandwidth_max_down_help.html";
490
					$help_link = "help/coovachilli_bandwidth_max_down_help.html";
491
					$desc = $l_max_bandwidth_down;
491
					$desc = $l_max_bandwidth_down;
492
					break;
492
					break;
493
				case 'WISPr-Redirection-URL' :
493
				case 'WISPr-Redirection-URL' :
494
					$advanced = true;
494
					$advanced = true;
495
					$help_link = "help/wispr_redirection_url_help.html";
495
					$help_link = "help/wispr_redirection_url_help.html";
Line 540... Line 540...
540
					case 'Expiration' :
540
					case 'Expiration' :
541
					case 'Alcasar-Expire-After' :
541
					case 'Alcasar-Expire-After' :
542
						echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\":=\">:=</option></select></td>";
542
						echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\":=\">:=</option></select></td>";
543
						break;
543
						break;
544
					case 'Session-Timeout' :
544
					case 'Session-Timeout' :
545
					case 'ChilliSpot-Max-Input-Octets' :
545
					case 'CoovaChilli-Max-Input-Octets' :
546
					case 'ChilliSpot-Max-Output-Octets' :
546
					case 'CoovaChilli-Max-Output-Octets' :
547
					case 'ChilliSpot-Max-Total-Octets' :
547
					case 'CoovaChilli-Max-Total-Octets' :
548
					case 'ChilliSpot-Bandwidth-Max-Up' :
548
					case 'CoovaChilli-Bandwidth-Max-Up' :
549
					case 'ChilliSpot-Bandwidth-Max-Down' :
549
					case 'CoovaChilli-Bandwidth-Max-Down' :
550
					case 'WISPr-Redirection-URL' :
550
					case 'WISPr-Redirection-URL' :
551
					case 'Alcasar-Filter' :
551
					case 'Alcasar-Filter' :
552
					case 'Alcasar-Protocols-Filter' :
552
					case 'Alcasar-Protocols-Filter' :
553
					case 'Alcasar-Status-Page-Must-Stay-Open' :
553
					case 'Alcasar-Status-Page-Must-Stay-Open' :
554
						echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=</option></select></td>";
554
						echo "<td><select name=\"$oper_name\"><option $selected[$op_eq] value=\"=\">=</option></select></td>";
Line 591... Line 591...
591
					case 'Expiration' :
591
					case 'Expiration' :
592
					case 'Alcasar-Expire-After' :
592
					case 'Alcasar-Expire-After' :
593
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
593
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
594
						break;
594
						break;
595
					case 'Session-Timeout' :
595
					case 'Session-Timeout' :
596
					case 'ChilliSpot-Max-Input-Octets' :
596
					case 'CoovaChilli-Max-Input-Octets' :
597
					case 'ChilliSpot-Max-Output-Octets' :
597
					case 'CoovaChilli-Max-Output-Octets' :
598
					case 'ChilliSpot-Max-Total-Octets' :
598
					case 'CoovaChilli-Max-Total-Octets' :
599
					case 'ChilliSpot-Bandwidth-Max-Up' :
599
					case 'CoovaChilli-Bandwidth-Max-Up' :
600
					case 'ChilliSpot-Bandwidth-Max-Down' :
600
					case 'CoovaChilli-Bandwidth-Max-Down' :
601
					case 'WISPr-Redirection-URL' :
601
					case 'WISPr-Redirection-URL' :
602
					case 'Alcasar-Filter' :
602
					case 'Alcasar-Filter' :
603
					case 'Alcasar-Protocols-Filter' :
603
					case 'Alcasar-Protocols-Filter' :
604
					case 'Alcasar-Status-Page-Must-Stay-Open' :
604
					case 'Alcasar-Status-Page-Must-Stay-Open' :
605
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
605
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\"=\">";
Line 652... Line 652...
652
						echo "$grp_maxweek";
652
						echo "$grp_maxweek";
653
						break;
653
						break;
654
					case 'Max-Monthly-Session' :
654
					case 'Max-Monthly-Session' :
655
						echo "$grp_maxmonth";
655
						echo "$grp_maxmonth";
656
						break;
656
						break;
657
					case 'ChilliSpot-Max-Input-Octets' :
657
					case 'CoovaChilli-Max-Input-Octets' :
658
						echo "$grp_maxio";
658
						echo "$grp_maxio";
659
						break;
659
						break;
660
					case 'ChilliSpot-Max-Output-Octets' :
660
					case 'CoovaChilli-Max-Output-Octets' :
661
						echo "$grp_maxoo";
661
						echo "$grp_maxoo";
662
						break;
662
						break;
663
					case 'ChilliSpot-Max-Total-Octets' :
663
					case 'CoovaChilli-Max-Total-Octets' :
664
						echo "$grp_maxto";
664
						echo "$grp_maxto";
665
						break;
665
						break;
666
					case 'ChilliSpot-Bandwidth-Max-Up' :
666
					case 'CoovaChilli-Bandwidth-Max-Up' :
667
						echo "$grp_bwup";
667
						echo "$grp_bwup";
668
						break;
668
						break;
669
					case 'ChilliSpot-Bandwidth-Max-Down' :
669
					case 'CoovaChilli-Bandwidth-Max-Down' :
670
						echo "$grp_bwdown";
670
						echo "$grp_bwdown";
671
						break;
671
						break;
672
					case 'WISPr-Redirection-URL' :
672
					case 'WISPr-Redirection-URL' :
673
						echo "$grp_redir";
673
						echo "$grp_redir";
674
						break;
674
						break;