Subversion Repositories ALCASAR

Rev

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

Rev 2841 Rev 2896
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_new.php 2841 2020-06-28 21:49:00Z rexy $
2
# $Id: user_new.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
8
// Update Alcasar-Status-Page-Must-Stay-Open --> TO TEST (Idle-Timeout)
9
if ((isset($_POST['Alcasar-Status-Page-Must-Stay-Open'])) && ($_POST['Alcasar-Status-Page-Must-Stay-Open'] === '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'] = '=';
15
 
15
 
16
require('/etc/freeradius-web/config.php');
16
require('/etc/freeradius-web/config.php');
17
 
17
 
18
if(!isset($create)) $create=0;
18
if(!isset($create)) $create=0;
19
if(!isset($show)) $show=0;
19
if(!isset($show)) $show=0;
Line 478... Line 478...
478
					echo "</select>";
478
					echo "</select>";
479
					break;
479
					break;
480
				case 'Alcasar-Status-Page-Must-Stay-Open' :
480
				case 'Alcasar-Status-Page-Must-Stay-Open' :
481
					echo "<select name=\"$name\">";
481
					echo "<select name=\"$name\">";
482
					echo "<option value=\"\"></option>";
482
					echo "<option value=\"\"></option>";
483
					echo "<option value=\"1\">$l_yes</option>";
483
					echo "<option value=\"1\">$l_no</option>";
484
					echo "<option value=\"2\">$l_no</option>";
484
					echo "<option value=\"2\">$l_yes</option>";
485
					echo "</select>";
485
					echo "</select>";
486
					break;
486
					break;
487
				case 'Login-Time':
487
				case 'Login-Time':
488
					echo "<input type=\"text\" name=\"$name\" id=\"$name\" value=\"$val\" size=\"20\">";
488
					echo "<input type=\"text\" name=\"$name\" id=\"$name\" value=\"$val\" size=\"20\">";
489
					echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";
489
					echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";