Subversion Repositories ALCASAR

Rev

Rev 2841 | Rev 3170 | 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: group_new.php 2841 2020-06-28 21:49:00Z rexy $
2
# $Id: group_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 ($login)) $login='';
19
if (!isset ($login)) $login='';
Line 474... Line 474...
474
				echo "</select>";
474
				echo "</select>";
475
				break;
475
				break;
476
			case 'Alcasar-Status-Page-Must-Stay-Open' :
476
			case 'Alcasar-Status-Page-Must-Stay-Open' :
477
				echo "<select name=\"$name\">";
477
				echo "<select name=\"$name\">";
478
				echo "<option value=\"\"></option>";
478
				echo "<option value=\"\"></option>";
479
				echo "<option value=\"1\">$l_yes</option>";
479
				echo "<option value=\"1\">$l_no</option>";
480
				echo "<option value=\"2\">$l_no</option>";
480
				echo "<option value=\"2\">$l_yes</option>";
481
				echo "</select>";
481
				echo "</select>";
482
				break;
482
				break;
483
			case 'Login-Time':
483
			case 'Login-Time':
484
				echo "<input type=\"text\" name=\"$name\" id=\"$name\" value=\"$val\" size=\"20\">";
484
				echo "<input type=\"text\" name=\"$name\" id=\"$name\" value=\"$val\" size=\"20\">";
485
				echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";
485
				echo "<a id=\"login-time-calendar\" href=\"#\"><img alt=\"schedule\" src=\"images/calendar.png\"/></a>";