Merge Zone's new configs for vfs into the admin/config template

This commit is contained in:
Miles Lott 2001-06-25 22:33:21 +00:00
parent 2bb540dc92
commit ee800e651e
3 changed files with 30 additions and 1 deletions

View File

@ -95,4 +95,24 @@
}
return $out;
}
function size_type($config)
{
$size = array('gb','mb','kb','b');
while(list($x,$val) = each($size))
{
if($config['vfs_default_account_size_type'] == $val)
{
$selected = ' selected';
}
else
{
$selected = '';
}
$descr = strtoupper($val);
$out .= '<option value="' . $val . '"' . $selected . '>'.$descr.'</option>' . "\n";
}
return $out;
}
?>

View File

@ -154,7 +154,7 @@
<tr bgcolor="e6e6e6">
<td>Default file system space per user/group ?:</td>
<td>
<input type="text" name="newsettings[vfs_default_account_size_number]" size=7 value="<?php echo $current_config["vfs_default_account_size_number"]; ?> ">
<input type="text" name="newsettings[vfs_default_account_size_number]" size="7" value="<?php echo $current_config['vfs_default_account_size_number']; ?> ">
&nbsp;&nbsp;
<?php $selected[$current_config['vfs_default_account_size_type']] = ' selected'; ?>
<select name="newsettings[vfs_default_account_size_type]">

View File

@ -95,6 +95,15 @@
</select>
</td>
</tr>
<tr bgcolor="{row_off}">
<td>{lang_Default_file_system_space_per_user}/{lang_group_?}:</td>
<td>
<input type="text" name="newsettings[vfs_default_account_size_number]" size="7" value="{value_vfs_default_account_size_number}">&nbsp;&nbsp;
<select name="newsettings[vfs_default_account_size_type]">
{hook_size_type}
</select>
</td>
</tr>
<!-- END body -->
<!-- BEGIN footer -->