Undo needless use of hook, fix one typo in config.inc.php

This commit is contained in:
Miles Lott 2001-06-25 22:57:11 +00:00
parent c709c1282b
commit 2fe4597371
3 changed files with 5 additions and 22 deletions

View File

@ -95,24 +95,4 @@
}
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

@ -161,7 +161,7 @@
<option value="gb" <?php echo $selected['gb']?>>GB</option>
<option value="mb" <?php echo $selected['mb']?>>MB</option>
<option value="kb" <?php echo $selected['mb']?>>KB</option>
<option value="b" <?php echo $selected['mb']?>>B</option>
<option value="b" <?php echo $selected['b']?>>B</option>
</select>
</td>
</tr>

View File

@ -100,7 +100,10 @@
<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}
<option value="gb"{selected_vfs_default_account_size_type_gb}>GB</option>
<option value="mb"{selected_vfs_default_account_size_type_mb}>MB</option>
<option value="kb"{selected_vfs_default_account_size_type_mb}>KB</option>
<option value="b"{selected_vfs_default_account_size_type_b}>B</option>
</select>
</td>
</tr>