Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/users.php
<?php // 6/3/02 12:46PM
	$users=$sec_sys->getUsers();
?>
  <h2><?php echo $sec_sys->PHPSECURITYADMIN_SYS_USERS ?></h2>
  <a href="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=user_add"><?php echo $sec_sys->PHPSECURITYADMIN_CREATE_NEW_USER ?></a>
  <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=user_edit">
   <table cellpadding="4" cellspacing="0" border="0" width="90%">
	<tr>
	 <td style="background-color: #000099; color: #ffffff;"><?php echo $sec_sys->PHPSECURITYADMIN_USERNAME ?></td>
	 <td style="background-color: #000099; color: #ffffff;"><?php echo $sec_sys->PHPSECURITYADMIN_REAL_NAME ?></td>
	 <td style="background-color: #000099; color: #ffffff;"><?php echo $sec_sys->PHPSECURITYADMIN_EMAIL ?></td>
	 <td style="background-color: #000099; color: #ffffff;"><?php echo $sec_sys->PHPSECURITYADMIN_ACTIVE ?></td>
	 <td style="background-color: #000099; color: #ffffff;">&nbsp;</td>
	</tr>
<?php
	$i=0;
	while(list($username,$details)=@each($users)){
		echo '<tr><td';

		if($i%2) echo ' style="background-color: #dfdfdf"';
		echo '>'.$username.'</td><td';

		if($i%2) echo ' style="background-color: #dfdfdf"';
		echo '>'.$details['name'].'</td><td';

		if($i%2) echo ' style="background-color: #dfdfdf"';
		echo '><a href=mailto:'.$details['email'].'>'.$details['email'].'</a></td><td';

		if($i%2) echo ' style="background-color: #dfdfdf"';
		echo '>';
		if($details['active'])
			echo $sec_sys->PHPSECURITYADMIN_YES;
		else
			echo $sec_sys->PHPSECURITYADMIN_NO;
		echo '</td><td';

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