Location: PHPKode > scripts > phpSecurityAdmin > phpsecurityadmin/include/settings.php
<?php // 6/6/02 4:39PM
	if(isset($_POST['submit']))
		$sec_sys->updateSettings($_POST);

	$query='SELECT `name`,`value` FROM `security_settings` ORDER BY `id`';
	$sec_sys->Query($query);
	for($i=0;$i<$sec_sys->rows;$i++){
		$sec_sys->GetRow($i);
		$name=$sec_sys->data['name'];
		$value=$sec_sys->data['value'];
		$$name=$value;
	}
?>
<form method=post action=<?php echo $_SERVER['PHP_SELF'] ?>?language=<?php echo $sec_sys->LANGUAGE?>&a=settings>
 <table cellpadding=0 border=0 cellspacing=3>
  <tr>
   <td><b><?php echo $sec_sys->PHPSECURITYADMIN_USERNAME_MIN_LENGTH ?>:</b></td>
   <td><input type=text name=min_username_length value="<?php echo $min_username_length ?>">
  </tr>
  <tr>
   <td><b><?php echo $sec_sys->PHPSECURITYADMIN_USERNAME_MAX_LENGTH ?>:</b></td>
   <td><input type=text name=max_username_length value="<?php echo $max_username_length ?>">
  </tr>
  <tr>
   <td><b><?php echo $sec_sys->PHPSECURITYADMIN_PASSWORD_MIN_LENGTH ?>:</b></td>
   <td><input type=text name=min_password_length value="<?php echo $min_password_length ?>">
  </tr>
  <tr>
   <td><b><?php echo $sec_sys->PHPSECURITYADMIN_PASSWORD_MAX_LENGTH ?>:</b></td>
   <td><input type=text name=max_password_length value="<?php echo $max_password_length ?>">
  </tr>
  <tr>
   <td><b><?php echo $sec_sys->PHPSECURITYADMIN_ALLOWED_FAILS ?>:</b></td>
   <td><input type=text name=lockcount value="<?php echo $lockcount ?>">
  </tr>
  <tr>
   <td colspan=2>
	<b><?php echo $sec_sys->PHPSECURITYADMIN_ALLOW_CONNS ?><br>
	<textarea name=connection rows=3 wrap=virtual cols=37><?php echo $connection ?></textarea>
   </td>
  </tr>
 </table>
 <input type=submit name=submit value="<?php echo $sec_sys->PHPSECURITYADMIN_SET_BUTTON ?>">
</form>
Return current item: phpSecurityAdmin