diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-24 14:38:40 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-24 23:54:38 +0100 |
commit | 4230e217af16b400cf6eba26c2333ee4ea1f884c (patch) | |
tree | 96853f6557c32b3dcc3774ee3d7c96ab0e2d428e /settings/users.php | |
parent | 9f5bce81b037624099012038f1ebfeb94d3317fd (diff) | |
download | nextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.tar.gz nextcloud-server-4230e217af16b400cf6eba26c2333ee4ea1f884c.zip |
new config widget for user quota
Diffstat (limited to 'settings/users.php')
-rw-r--r-- | settings/users.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php index e5dcc049481..1ae75752115 100644 --- a/settings/users.php +++ b/settings/users.php @@ -18,17 +18,23 @@ $users = array(); $groups = array(); foreach( OC_User::getUsers() as $i ){ - $users[] = array( "name" => $i, "groups" => join( ", ", OC_Group::getUserGroups( $i ) ),'quota'=>OC_Preferences::getValue($i,'files','quota',0)); + $users[] = array( "name" => $i, "groups" => join( ", ", OC_Group::getUserGroups( $i ) ),'quota'=>OC_Preferences::getValue($i,'files','quota','default')); } foreach( OC_Group::getGroups() as $i ){ // Do some more work here soon $groups[] = array( "name" => $i ); } +$quotaPreset=OC_Appconfig::getValue('files','quota_preset','default,none,1 GB, 5 GB, 10 GB'); +$quotaPreset=explode(',',$quotaPreset); +foreach($quotaPreset as &$preset){ + $preset=trim($preset); +} $tmpl = new OC_Template( "settings", "users", "user" ); $tmpl->assign( "users", $users ); $tmpl->assign( "groups", $groups ); +$tmpl->assign( 'quota_preset', $quotaPreset); $tmpl->printPage(); ?> |