Subversion Repositories ALCASAR

Rev

Rev 2998 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2998 Rev 3173
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: user_edit.php 2998 2022-03-15 16:44:20Z rexy $
2
# $Id: user_edit.php 3173 2024-02-23 18:38:01Z 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
 
Line 410... Line 410...
410
	</td>
410
	</td>
411
	</tr>
411
	</tr>
412
EOM;
412
EOM;
413
}
413
}
414
 
414
 
415
	foreach($show_attrs as $key => $desc){
415
	foreach ($show_attrs as $key => $desc){
416
		if ($key === 'Idle-Timeout') continue;
416
		if ($key === 'Idle-Timeout') continue;
417
		$name = $attrmap["$key"];
417
		$name = $attrmap["$key"];
418
		$generic = (isset($attrmap['generic']["$key"])) ? $attrmap['generic']["$key"] : '';
418
		$generic = (isset($attrmap['generic']["$key"])) ? $attrmap['generic']["$key"] : '';
419
		if ($name == 'none')
419
		if ($name == 'none')
420
			continue;
420
			continue;
Line 450... Line 450...
450
			$vals[] = $default_vals["$key"][0];
450
			$vals[] = $default_vals["$key"][0];
451
			$ops[] = ($default_vals["$key"]['operator'][0] != '') ? $default_vals["$key"]['operator'][0] : '=';
451
			$ops[] = ($default_vals["$key"]['operator'][0] != '') ? $default_vals["$key"]['operator'][0] : '=';
452
		}
452
		}
453
 
453
 
454
		$i = 0;
454
		$i = 0;
455
		foreach($vals as $val) {
455
		foreach ($vals as $val) {
456
			$name1 = $name . $i;
456
			$name1 = $name . $i;
457
			$val = preg_replace('/\"/','&quot;',$val);
457
			$val = preg_replace('/\"/','&quot;',$val);
458
			$oper_name = $name1 . '_op';
458
			$oper_name = $name1 . '_op';
459
			$oper = $ops[$i];
459
			$oper = $ops[$i];
460
			$selected[$oper] = 'selected';
460
			$selected[$oper] = 'selected';