Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/profile_edit.php
<?php // 6/3/02 12:46PM
	if(isset($_POST['submit'])){
		$sec_sys->editProfile($_POST);
		echo '<span style="color: #0000cc;">'.$sec_sys->PHPSECURITYADMIN_UPDATED_USER_PROFILE.'</span><br><br>'."\n";
	}

	echo '<a href="'.$_SERVER['PHP_SELF'].'?language='.$sec_sys->LANGUAGE.'&a=profiles">'.$sec_sys->PHPSECURITYADMIN_BACK.'</a><br><br>'."\n";

	$profile=$sec_sys->getProfile($id);
?>
<form method=post action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=profile_edit">
 <input type=hidden name=id value="<?php echo $id ?>">
 <b><?php echo $sec_sys->PHPSECURITYADMIN_NAME ?>:</b>
  <input type=text size=30 name=name value="<?php echo $profile['name'] ?>"><br><br>
  <input type=checkbox name=admin value=1
 <?php if($profile['admin']) echo ' checked'; ?>><?php echo $sec_sys->PHPSECURITYADMIN_ADMIN_PRIV ?><br><br>
<?php
	$pages=$sec_sys->getPages();
	while(list($id,$val)=@each($pages)){
		echo ' <input type=checkbox name='.$id.' value=1';
		if($profile[$id]) echo ' checked';
		echo '>'.$val.'<br>'."\n";
	}
?>
 <input type=submit name=submit value="<?php echo $sec_sys->PHPSECURITYADMIN_UPDATE_USER_PROFILE ?>">
</form>
Return current item: phpSecurityAdmin