Location: PHPKode > projects > SecurityAdmin for PHP > psa-4.0.3/include/settings.php
<?php
    if(isset($_POST['PSA_submit'])){
        $result=$PSA_SYS->settings_update($_POST);
        if($result===FALSE)
            $PSA_SYS->error();
    }
    $sets=$PSA_SYS->settings_get();
    if($sets===FALSE)
        $PSA_SYS->error();
?>
    <h2><?php echo _("System Settings") ?></h2>
    <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>?psaSec=settings">
     <fieldset>
      <table cellpadding="0" border="0" cellspacing="3">
       <tr>
        <th><?php echo _("Minimum Username Length") ?>:</th>
        <td><input type="text" name="PSA_min_username_length" value="<?php echo $sets['min_username_length'] ?>" /></td>
       </tr>
       <tr>
        <th><?php echo _("Max Username Length") ?>:</th>
        <td><input type="text" name="PSA_max_username_length" value="<?php echo $sets['max_username_length'] ?>" /></td>
       </tr>
       <tr>
        <th><?php echo _("Minimum Password Length") ?>:</th>
        <td><input type="text" name="PSA_min_password_length" value="<?php echo $sets['min_password_length'] ?>" /></td>
       </tr>
       <tr>
        <th><?php echo _("Maximum Password Length") ?>:</th>
        <td><input type="text" name="PSA_max_password_length" value="<?php echo $sets['max_password_length'] ?>" /></td>
       </tr>
       <tr>
        <th><?php echo _("Failed Logins Allowed") ?>:</th>
        <td><input type="text" name="PSA_lockcount" value="<?php echo $sets['lockcount'] ?>" /></td>
       </tr>
       <tr>
        <th><?php echo _("Allowed Connection Locations") ?><span class="psaAsterisk">*</span> <p>(<?php echo _("Leave blank for no restrictions") ?>)</p></th>
        <td><textarea name="connection" rows="3" cols="37"><?php echo $sets['connection'] ?></textarea></td>
       </tr>
      </table>
      <input type="submit" name="PSA_submit" value="<?php echo _("Change Settings") ?>" />
     </fieldset>
    </form>
    <p><span class="psaAsterisk">*</span> : <?php echo _("To only allow the user to log in from certain computers, see below examples:<br /><br />To allow only from one address, enter the IP (only works with static IPs).<br /><span style='font-family: typewriter'>192.168.1.201</span>To allow from all machines with an address that starts with s sequence:<br /><span style='font-family: typewriter'>192.168.1.</span>or<br /><span style='font-family: typewriter'>192.168.</span>You can also use mulitple entries by separating with a comma:<br /><span style='font-family: typewriter'>192.168.1.161, 192.168.2., 10.10.220.</span>") ?></p>
Return current item: SecurityAdmin for PHP