diff --git a/htdocs/admin.php b/htdocs/admin.php
index ed2da78..f22b192 100644
--- a/htdocs/admin.php
+++ b/htdocs/admin.php
@@ -117,6 +117,7 @@ if (!empty($_POST['isactive']) && $server->isSuperAdmin()) {
Actif |
Admin |
POP / IMAP |
+ Webmail |
Auth SMTP |
Quota |
Suppr |
@@ -143,6 +144,11 @@ if (!empty($_POST['isactive']) && $server->isSuperAdmin()) {
} else {
print ' | ';
}
+ if ($account->isWebmail()) {
+ print ' | ';
+ } else {
+ print ' | ';
+ }
if ($account->isAuthSmtp()) {
print ' | ';
} else {
diff --git a/htdocs/compte.php b/htdocs/compte.php
index 0805624..c7db3ae 100644
--- a/htdocs/compte.php
+++ b/htdocs/compte.php
@@ -24,16 +24,17 @@ if (!empty($_POST['cn'])) {
$actif = (!empty($_POST['isactive'])) ? true : false;
$admin = (!empty($_POST['isadmin'])) ? true : false;
$courier = (!empty($_POST['courieractive'])) ? true : false;
+ $webmail = (!empty($_POST['webmailactive'])) ? true : false;
$authsmtp = (!empty($_POST['authsmtpactive'])) ? true : false;
try {
if (!empty($_GET['account'])) {
print "Modification en cours...
";
- $account->update($cn,$password,$actif,$admin,$actif,$courier,$authsmtp);
+ $account->update($cn,$password,$actif,$admin,$actif,$courier,$webmail,$authsmtp);
header('Location: compte.php?domain='.$domain->getName().'&account='.$account->getUid());
} else {
print "Ajout en cours...
";
- $domain->addAccount($uid,$cn,$password,$actif,$admin,$actif,$courier,$authsmtp);
+ $domain->addAccount($uid,$cn,$password,$actif,$admin,$actif,$courier,$webmail,$authsmtp);
print "Ajout effectué.
";
print '';
}
@@ -129,6 +130,13 @@ if (isset($_GET['account'])) {
print "";
print "";
+ $webmailactive = ($account->isWebmail()) ? 'checked="checked"' : '';
+ print "";
+
$authsmtpactive = ($account->isAuthSmtp()) ? 'checked="checked"' : '';
print "
+
+
diff --git a/htdocs/lib/class.ldapaccount.php b/htdocs/lib/class.ldapaccount.php
index 561520f..cfe49f2 100644
--- a/htdocs/lib/class.ldapaccount.php
+++ b/htdocs/lib/class.ldapaccount.php
@@ -19,6 +19,7 @@ class LdapAccount extends LdapDomain {
$this->active = ($object['isactive'][0] == 'TRUE') ? true : false;
$this->admin = ($object['isadmin'][0] == 'TRUE') ? true : false;
$this->courier = ($object['courieractive'][0] == 'TRUE') ? true : false;
+ $this->webmail = ($object['webmailactive'][0] == 'TRUE') ? true : false;
$this->authsmtp = ($object['authsmtpactive'][0] == 'TRUE') ? true : false;
//$this->quota = getquota($this->domain->getName(),'user');
$this->aliases = array_filter($object['mailacceptinggeneralid'], "is_string");
@@ -74,6 +75,10 @@ class LdapAccount extends LdapDomain {
return $this->courier;
}
+ public function isWebmail() {
+ return $this->webmail;
+ }
+
public function isAuthSmtp() {
return $this->authsmtp;
}