add variable for enable/disable quota

This commit is contained in:
Gregory Colpart 2017-02-10 15:12:46 +01:00
parent 1fea1b862c
commit 0d7df91a61
2 changed files with 11 additions and 1 deletions

View file

@ -25,7 +25,7 @@ function show_my_details($name,$type) {
print '<tr><td><a href="' .$type. '.php?view='
.$name. '">' .$name. '</a></td>';
if ( $type == 'compte' ) {
if ( $type == 'compte' && $conf['admin']['quota']) {
print '<td>' .getquota($name,'user'). '</td>';
}
@ -153,7 +153,15 @@ if (isset($_SESSION['login'])) {
<table width="500px" bgcolor="#ddd" border="1">
<tr>
<td><strong>Nom du compte</strong></td>
<?php
if ( $type == 'compte' && $conf['admin']['quota']) {
?>
<td>Quota</td>
<?php
}
?>
<td width="50px">Suppr</td>
</tr>

View file

@ -13,6 +13,8 @@ $conf['admin']['logins'] = array('foo');
$conf['admin']['what'] = 3;
// use hook.php instead of hook-dist.php
$conf['admin']['use_hook'] = false;
// enable quota
$conf['admin']['quota'] = true;
// compatibilite LDAP
$conf['evoadmin']['version'] = 3;