Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
0d349d62
Commit
0d349d62
authored
Nov 16, 2011
by
tbrehm
Browse files
FS#1843 - mail quota usage statistics with courier
parent
49f49d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/monitor_tools.inc.php
View file @
0d349d62
...
...
@@ -175,7 +175,13 @@ class monitor_tools {
$quotafile
=
file
(
$filename
);
$data
[
$email
][
'used'
]
=
trim
(
$quotafile
[
'1'
]);
unset
(
$quotafile
);
}
}
else
{
exec
(
'du -s '
.
escapeshellcmd
(
$filename
),
$out
);
$parts
=
explode
(
' '
,
$out
);
$data
[
$email
][
'used'
]
=
intval
(
$parts
[
0
])
*
1024
;
unset
(
$out
);
unset
(
$parts
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment