mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-09 18:42:56 +00:00
output message if quota is exceeded
This commit is contained in:
parent
ab1a241a16
commit
653cefe14f
|
@ -43,6 +43,9 @@ class LetoDMS_View_MyAccount extends LetoDMS_Bootstrap_Style {
|
||||||
$this->contentStart();
|
$this->contentStart();
|
||||||
$this->pageNavigation(getMLText("my_account"), "my_account");
|
$this->pageNavigation(getMLText("my_account"), "my_account");
|
||||||
|
|
||||||
|
if(($remain = checkQuota()) < 0) {
|
||||||
|
$this->warningMsg(getMLText('quota_warning', array('bytes'=>LetoDMS_Core_File::format_filesize(abs($remain)))));
|
||||||
|
}
|
||||||
$this->contentHeading(getMLText("user_info"));
|
$this->contentHeading(getMLText("user_info"));
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
|
|
||||||
|
@ -77,6 +80,14 @@ class LetoDMS_View_MyAccount extends LetoDMS_Bootstrap_Style {
|
||||||
print "<td>".htmlspecialchars($user->getPwdExpiration())."</td>\n";
|
print "<td>".htmlspecialchars($user->getPwdExpiration())."</td>\n";
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
print "<tr>\n";
|
||||||
|
print "<td>".getMLText("quota")." : </td>\n";
|
||||||
|
print "<td>".LetoDMS_Core_File::format_filesize($user->getQuota())."</td>\n";
|
||||||
|
print "</tr>\n";
|
||||||
|
print "<tr>\n";
|
||||||
|
print "<td>".getMLText("used_discspace")." : </td>\n";
|
||||||
|
print "<td>".LetoDMS_Core_File::format_filesize($user->getUsedDiskSpace())."</td>\n";
|
||||||
|
print "</tr>\n";
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user