Subversion Repositories ALCASAR

Rev

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

Rev 2505 Rev 2510
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2505 2018-03-11 13:41:00Z tom.houdayer $
2
# $Id: user_edit.php 2510 2018-03-11 14:38:39Z 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 310... Line 310...
310
						$grp_statusOpenRequired = $l_yes;
310
						$grp_statusOpenRequired = $l_yes;
311
					} else {
311
					} else {
312
						$grp_statusOpenRequired = '';
312
						$grp_statusOpenRequired = '';
313
					}
313
					}
314
					break;
314
					break;
-
 
315
				case 'Alcasar-Expire-After' :
-
 
316
					$grp_expireAfter = $val;
-
 
317
					break;
315
			}
318
			}
316
		}
319
		}
317
	}
320
	}
318
 
321
 
319
	/*on charge les attributs utilisateurs afin de montrer les groupes disponibles*/
322
	/*on charge les attributs utilisateurs afin de montrer les groupes disponibles*/
Line 505... Line 508...
505
				case 'Alcasar-Status-Page-Must-Stay-Open' :
508
				case 'Alcasar-Status-Page-Must-Stay-Open' :
506
					$advanced = false;
509
					$advanced = false;
507
					$help_link = "help/statusOpenRequired_help.html";
510
					$help_link = "help/statusOpenRequired_help.html";
508
					$desc = $l_statusOpenRequired;
511
					$desc = $l_statusOpenRequired;
509
					break;
512
					break;
-
 
513
				case 'Alcasar-Expire-After' :
-
 
514
					$advanced = false;
-
 
515
					$help_link = "help/max_all_session_help.html";
-
 
516
					$desc = $l_max_all_session;
-
 
517
					break;
510
				default:
518
				default:
511
					$advanced = true;
519
					$advanced = true;
512
					break;
520
					break;
513
			}
521
			}
514
 
522
 
Line 528... Line 536...
528
					case 'Max-Daily-Session' :
536
					case 'Max-Daily-Session' :
529
					case 'Max-Weekly-Session' :
537
					case 'Max-Weekly-Session' :
530
					case 'Max-Monthly-Session' :
538
					case 'Max-Monthly-Session' :
531
					case 'Login-Time' :
539
					case 'Login-Time' :
532
					case 'Expiration' :
540
					case 'Expiration' :
-
 
541
					case 'Alcasar-Expire-After' :
533
						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>";
534
						break;
543
						break;
535
					case 'Session-Timeout' :
544
					case 'Session-Timeout' :
536
					case 'ChilliSpot-Max-Input-Octets' :
545
					case 'ChilliSpot-Max-Input-Octets' :
537
					case 'ChilliSpot-Max-Output-Octets' :
546
					case 'ChilliSpot-Max-Output-Octets' :
Line 578... Line 587...
578
					case 'Max-Daily-Session' :
587
					case 'Max-Daily-Session' :
579
					case 'Max-Weekly-Session' :
588
					case 'Max-Weekly-Session' :
580
					case 'Max-Monthly-Session' :
589
					case 'Max-Monthly-Session' :
581
					case 'Login-Time' :
590
					case 'Login-Time' :
582
					case 'Expiration' :
591
					case 'Expiration' :
-
 
592
					case 'Alcasar-Expire-After' :
583
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
593
						echo "<input type=\"hidden\" name=\"$oper_name\" value=\":=\">";
584
						break;
594
						break;
585
					case 'Session-Timeout' :
595
					case 'Session-Timeout' :
586
					case 'ChilliSpot-Max-Input-Octets' :
596
					case 'ChilliSpot-Max-Input-Octets' :
587
					case 'ChilliSpot-Max-Output-Octets' :
597
					case 'ChilliSpot-Max-Output-Octets' :
Line 669... Line 679...
669
						echo "$grp_filterProto";
679
						echo "$grp_filterProto";
670
						break;
680
						break;
671
					case 'Alcasar-Status-Page-Must-Stay-Open' :
681
					case 'Alcasar-Status-Page-Must-Stay-Open' :
672
						echo "$grp_statusOpenRequired";
682
						echo "$grp_statusOpenRequired";
673
						break;
683
						break;
-
 
684
					case 'Alcasar-Expire-After' :
-
 
685
						echo "$grp_expireAfter";
-
 
686
						break;
674
					default :
687
					default :
675
						break;
688
						break;
676
				}
689
				}
677
				echo '</td>';
690
				echo '</td>';
678
			}
691
			}
Line 694... Line 707...
694
							<option value=\"H\" >H</option>
707
							<option value=\"H\" >H</option>
695
						</select>";
708
						</select>";
696
					break;
709
					break;
697
				case 'Max-Monthly-Session' :
710
				case 'Max-Monthly-Session' :
698
				case 'Max-All-Session' :
711
				case 'Max-All-Session' :
-
 
712
				case 'Alcasar-Expire-After' :
699
					/*valeur d'origine de durée limite */
713
					/*valeur d'origine de durée limite */
700
					echo"<input type=\"text\" name=\"$name1\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
714
					echo"<input type=\"text\" name=\"$name1\" onfocus=\"this.value=''\" value=\"$val\" size=10>";
701
					/* Choix d'unité*/
715
					/* Choix d'unité*/
702
					echo" <select onchange=\"temps(this,'$name1','edituser')\">
716
					echo" <select onchange=\"temps(this,'$name1','edituser')\">
703
							<option value=\"s\" selected>s</option>
717
							<option value=\"s\" selected>s</option>