Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/user_edit_rights.php
<?php // 6/6/02 11:30AM
	if(isset($_POST['submit'])){
		$sec_sys->changeProfile($_POST);
		echo '<span style="color: #0000cc;">'.$sec_sys->PHPSECURITYADMIN_RIGHTS_UPDATED.'</span><br><br>'."\n";
	}

	$users=$sec_sys->getUsers();
	$user=$users[$id];
?>
<form method=post action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=user_edit_rights">
 <input type=hidden name=uid value="<?php echo $user['uid'] ?>">
 <input type=hidden name=id value="<?php echo $id ?>">
 <h3><?php printf($sec_sys->PHPSECURITYADMIN_RIGHTS_FOR_USER,$user['id']); ?></h3>
<?php
	$profiles=$sec_sys->getProfiles();
	echo $sec_sys->PHPSECURITYADMIN_APPLY_PROFILE.': <select name=profile>\n<option></option>';
	while(list($gid,$name)=@each($profiles)){
		echo '<option value='.$gid;
		if($user['gid']==$gid) echo ' selected';
		echo '>'.$name.'</option>'."\n";
	}
	echo '</select>'."\n";
?>
 <input type=submit name=submit value="<?php echo $sec_sys->PHPSECURITYADMIN_UPDATE_RIGHTS ?>">
</form>
Return current item: phpSecurityAdmin