Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/profiles.php
<?php // 6/3/02 12:46PM
	$profiles=$sec_sys->getProfiles();
?>
  <h2><?php echo $sec_sys->PHPSECURITYADMIN_USER_PROFILES ?></h2>
  <a href="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=profile_add">
   <?php echo $sec_sys->PHPSECURITYADMIN_CREATE_NEW_PROFILE ?></a>
  <form method=post action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=profile_edit">
<?php
	if($profiles){
?>
   <table cellpadding=4 cellspacing=0 border=0>
	<tr>
	<td style="background-color: #000099; color: #ffffff;"><?php echo $sec_sys->PHPSECURITYADMIN_PROFILE_NAME ?></td>
	<td style="background-color: #000099; color: #ffffff;">&nbsp;</td>
	</tr>
<?php
        $i=0;
		while(list($id,$name)=@each($profiles)){
			echo '<tr><td';
			if($i%2)echo ' style="background-color: #dfdfdf"';
			echo '>'.$name.'</td><td';

			if($i%2)echo ' style="background-color: #dfdfdf"';
			echo '>[<a href="'.$_SERVER['PHP_SELF'].'?language='.$sec_sys->LANGUAGE.
			    '&a=profile_edit&id='.$id.'">'.$sec_sys->PHPSECURITYADMIN_EDIT.'</a>] '.
				'[<a href="'.$_SERVER['PHP_SELF'].'?language='.$sec_sys->LANGUAGE.'&a=profile_delete&id='.$id.'"'.
				'>'.$sec_sys->PHPSECURITYADMIN_DELETE.'</a>]</td></tr>'."\n";
    		$i++;
		}
?>
   </table>
  </form>
<?php
	}else{
		echo $sec_sys->PHPSECURITYADMIN_NO_PROFILES_DEFINED.'<br>'."\n";
	}
?>
Return current item: phpSecurityAdmin