Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/profile_add.php
<?php // 6/6/02 4:23PM
	if(isset($_POST['submit'])){
		$sec_sys->addProfile($_POST);
		echo $sec_sys->PHPSECURITYADMIN_PROFILE_ADDED."<br>\n";
	}
	$profile=$sec_sys->getProfile($id);
?>
<form method=post action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=profile_add">
 <b><?php echo $sec_sys->PHPSECURITYADMIN_NAME ?>:</b>
 <input type=text size=30 name=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_ADD_PROFILE ?>">
</form>
Return current item: phpSecurityAdmin