Subversion Repositories ALCASAR

Rev

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

Rev 2394 Rev 2402
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2394 2017-08-27 13:28:59Z tom.houdayer $
2
# $Id: user_edit.php 2402 2017-08-28 18:06:19Z 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 13... Line 13...
13
	$statusOpenRequired = (int)($_POST['Status-Open-Required'].'000');
13
	$statusOpenRequired = (int)($_POST['Status-Open-Required'].'000');
14
	$filterId = $filterId+$FilterProto+$statusOpenRequired;
14
	$filterId = $filterId+$FilterProto+$statusOpenRequired;
15
	$_POST['Filter-Id0'] = str_pad($filterId, 8, '0', STR_PAD_LEFT);
15
	$_POST['Filter-Id0'] = str_pad($filterId, 8, '0', STR_PAD_LEFT);
16
}
16
}
17
if (isset($_POST['Status-Open-Required'])) {
17
if (isset($_POST['Status-Open-Required'])) {
18
	if ($_POST['Status-Open-Required'] === '0') {
18
	if ($_POST['Status-Open-Required'] === '1') {
19
		$_POST['Idle-Timeout0'] = '600'; // 10 minutes
19
		$_POST['Idle-Timeout0'] = '600'; // 10 minutes
20
	} else {
20
	} else {
21
		$_POST['Idle-Timeout0'] = '';
21
		$_POST['Idle-Timeout0'] = '';
22
	}
22
	}
23
	$_POST['Idle-Timeout0_op'] = '=';
23
	$_POST['Idle-Timeout0_op'] = '=';
Line 310... Line 310...
310
						$grp_proto = $l_proto_1;
310
						$grp_proto = $l_proto_1;
311
					} else {
311
					} else {
312
						$grp_proto = $l_proto_0;
312
						$grp_proto = $l_proto_0;
313
					}
313
					}
314
 
314
 
315
					if ($val[4] === '1') {
315
					if ($val[4] === '0') {
316
						$grp_statusOpenRequired = $l_yes;
316
						$grp_statusOpenRequired = $l_yes;
317
					} else {
317
					} else {
318
						$grp_statusOpenRequired = $l_no;
318
						$grp_statusOpenRequired = $l_no;
319
					}
319
					}
320
					
320
					
Line 763... Line 763...
763
	</td>
763
	</td>
764
EOM;
764
EOM;
765
	if(isset($member_groups) && $user_type != 'group') {
765
	if(isset($member_groups) && $user_type != 'group') {
766
		echo "<td bgcolor=\"#BEBEBE\">$grp_statusOpenRequired</td>";
766
		echo "<td bgcolor=\"#BEBEBE\">$grp_statusOpenRequired</td>";
767
	}
767
	}
768
	if ($val[4] === '1') {
768
	if ($val[4] === '0') {
769
		$selected = true;
769
		$selected = true;
770
	} else {
770
	} else {
771
		$selected = false;
771
		$selected = false;
772
	}
772
	}
773
	echo "<td width=20>
773
	echo "<td width=20>
774
		<label><input type=\"radio\" name=\"Status-Open-Required\" value=\"1\"".(($selected) ? ' checked' : '').">$l_yes</label>
774
		<label><input type=\"radio\" name=\"Status-Open-Required\" value=\"0\"".(($selected) ? ' checked' : '').">$l_yes</label>
775
		<label><input type=\"radio\" name=\"Status-Open-Required\" value=\"0\"".((!$selected) ? ' checked' : '').">$l_no</label>
775
		<label><input type=\"radio\" name=\"Status-Open-Required\" value=\"1\"".((!$selected) ? ' checked' : '').">$l_no</label>
776
		</select></td>
776
		</select></td>
777
	</tr>";
777
	</tr>";
778
 
778
 
779
 
779
 
780
	if ($user_type != 'group') {
780
	if ($user_type != 'group') {