Subversion Repositories ALCASAR

Rev

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

Rev 2885 Rev 2896
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2885 2020-11-22 23:16:01Z rexy $
2
# $Id: user_edit.php 2896 2020-12-10 23:29:21Z rexy $
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-Page-Must-Stay-Open --> TO TEST (Idle-Timeout)
8
// Update Alcasar-Status-Page-Must-Stay-Open --> TO TEST (Idle-Timeout)
9
if ((isset($_POST['Alcasar-Status-Page-Must-Stay-Open0'])) && ($_POST['Alcasar-Status-Page-Must-Stay-Open0'] === '2')) {
9
//if ((isset($_POST['Alcasar-Status-Page-Must-Stay-Open'])) && ($_POST['Alcasar-Status-Page-Must-Stay-Open'] === '2')) {
10
	$_POST['Idle-Timeout0'] = '600'; // 10 minutes
10
//	$_POST['Idle-Timeout'] = '600'; // 10 minutes
11
} else {
11
//} else {
12
	$_POST['Idle-Timeout0'] = '';
12
//	$_POST['Idle-Timeout'] = '';
13
}
13
//}
14
$_POST['Idle-Timeout0_op'] = '=';
14
//$_POST['Idle-Timeout_op'] = '=';
15
 
15
 
16
require('/etc/freeradius-web/config.php');
16
require('/etc/freeradius-web/config.php');
17
require('../lib/attrshow.php');
17
require('../lib/attrshow.php');
18
require('../lib/defaults.php');
18
require('../lib/defaults.php');
19
require("../lib/operators.php");
19
require("../lib/operators.php");
Line 335... Line 335...
335
						$grp_filterProto = '';
335
						$grp_filterProto = '';
336
					}
336
					}
337
					break;
337
					break;
338
				case 'Alcasar-Status-Page-Must-Stay-Open' :
338
				case 'Alcasar-Status-Page-Must-Stay-Open' :
339
					if ($val === '2') {
339
					if ($val === '2') {
340
						$grp_statusOpenRequired = $l_no;
-
 
341
					} else if ($val === '1') {
-
 
342
						$grp_statusOpenRequired = $l_yes;
340
						$grp_statusOpenRequired = $l_yes;
-
 
341
					} else if ($val === '1') {
-
 
342
						$grp_statusOpenRequired = $l_no;
343
					} else {
343
					} else {
344
						$grp_statusOpenRequired = '';
344
						$grp_statusOpenRequired = '';
345
					}
345
					}
346
					break;
346
					break;
347
				case 'Alcasar-Expire-After' :
347
				case 'Alcasar-Expire-After' :
Line 795... Line 795...
795
					echo "</select>";
795
					echo "</select>";
796
					break;
796
					break;
797
				case 'Alcasar-Status-Page-Must-Stay-Open' :
797
				case 'Alcasar-Status-Page-Must-Stay-Open' :
798
					echo "<select name=\"$name1\">";
798
					echo "<select name=\"$name1\">";
799
					echo "<option value=\"\"".(($val === '') ? ' selected' : '')."></option>";
799
					echo "<option value=\"\"".(($val === '') ? ' selected' : '')."></option>";
800
					echo "<option value=\"1\"".(($val === '1') ? ' selected' : '').">$l_yes</option>";
800
					echo "<option value=\"1\"".(($val === '1') ? ' selected' : '').">$l_no</option>";
801
					echo "<option value=\"2\"".(($val === '2') ? ' selected' : '').">$l_no</option>";
801
					echo "<option value=\"2\"".(($val === '2') ? ' selected' : '').">$l_yes</option>";
802
					echo "</select>";
802
					echo "</select>";
803
					break;
803
					break;
804
				case 'Login-Time':
804
				case 'Login-Time':
805
					echo "<input type=\"text\" name=\"$name1\" id=\"$name\" value=\"$val\" size=\"20\">";
805
					echo "<input type=\"text\" name=\"$name1\" id=\"$name\" value=\"$val\" size=\"20\">";
806
					echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";
806
					echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";