Go to the source code of this file.
Functions | |
| addMailGroup ($group, $mail) | |
| addMailObjectClass ($login) | |
| addVDomain ($domain) | |
| changeMailalias ($login, $aliaslist) | |
| changeMailbox ($login, $mailbox) | |
| changeMaildrop ($login, $droplist) | |
| changeMailEnable ($login, $boolean) | |
| changeMailhost ($login, $mailhost) | |
| changeQuota ($login, $mailuserquota) | |
| cleanup_arr ($array) | |
| (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com/ | |
| computeMailGroupAlias ($group) | |
| deleteMailGroupAliases ($group) | |
| delVDomain ($domain) | |
| getVDomain ($domain) | |
| getVDomains ($filter) | |
| getVDomainUsers ($domain, $filter) | |
| getVDomainUsersCount ($domain) | |
| hasGroupMailObjectClass ($group) | |
| hasMailObjectClass ($login) | |
| hasVDomainSupport () | |
| removeMail ($login) | |
| removeMailGroup ($group) | |
| resetUsersVDomainQuota ($domain) | |
| setVDomainDescription ($domain, $description) | |
| setVDomainQuota ($domain, $quota) | |
| syncMailGroupAliases ($group, $foruser="*") | |
| addMailGroup | ( | $ | group, | |
| $ | ||||
| ) |
Definition at line 73 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_changeGroup().

| addMailObjectClass | ( | $ | login | ) |
| addVDomain | ( | $ | domain | ) |
| changeMailalias | ( | $ | login, | |
| $ | aliaslist | |||
| ) |
Definition at line 49 of file mail-xmlrpc.php.
References $login, cleanup_arr(), and xmlCall().
00049 { 00050 return xmlCall("mail.changeMailalias",array($login, cleanup_arr($aliaslist))); 00051 }

| changeMailbox | ( | $ | login, | |
| $ | mailbox | |||
| ) |
| changeMaildrop | ( | $ | login, | |
| $ | droplist | |||
| ) |
Definition at line 41 of file mail-xmlrpc.php.
References $arr, $login, cleanup_arr(), hasVDomainSupport(), and xmlCall().
00041 { 00042 $arr = cleanup_arr($droplist); 00043 if ((count($arr) == 0) && !hasVDomainSupport()) { 00044 return; //if no maildrop specified 00045 } 00046 return xmlCall("mail.changeMaildrop",array($login,$arr)); 00047 }

| changeMailEnable | ( | $ | login, | |
| $ | boolean | |||
| ) |
| changeMailhost | ( | $ | login, | |
| $ | mailhost | |||
| ) |
| changeQuota | ( | $ | login, | |
| $ | mailuserquota | |||
| ) |
| cleanup_arr | ( | $ | array | ) |
(c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com/
This file is part of Mandriva Management Console (MMC).
MMC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
MMC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with MMC; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition at line 26 of file mail-xmlrpc.php.
Referenced by changeMailalias(), and changeMaildrop().
00026 { 00027 /* FIXME: Do we need this function ? */ 00028 $res = array(); 00029 foreach ($array as $item) { 00030 if ((preg_match("/^([0-9a-zA-Z@._-]){1,}$/",$item))&&(array_search($item,$res)===False)) { 00031 $res[] = $item; 00032 } 00033 } 00034 return $res; 00035 }
| computeMailGroupAlias | ( | $ | group | ) |
Definition at line 140 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_baseGroupEdit().

| deleteMailGroupAliases | ( | $ | group | ) |
Definition at line 81 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_changeGroup(), and _mail_delGroup().

| delVDomain | ( | $ | domain | ) |
| getVDomain | ( | $ | domain | ) |
| getVDomains | ( | $ | filter | ) |
Definition at line 128 of file mail-xmlrpc.php.
References $filter, and xmlCall().
Referenced by _mail_baseGroupEdit().

| getVDomainUsers | ( | $ | domain, | |
| $ | filter | |||
| ) |
| getVDomainUsersCount | ( | $ | domain | ) |
| hasGroupMailObjectClass | ( | $ | group | ) |
Definition at line 93 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_baseGroupEdit(), and _mail_changeGroup().

| hasMailObjectClass | ( | $ | login | ) |
Definition at line 89 of file mail-xmlrpc.php.
References $login, and xmlCall().
Referenced by _mail_baseEdit().

| hasVDomainSupport | ( | ) |
Definition at line 97 of file mail-xmlrpc.php.
References $_SESSION, and xmlCall().
Referenced by _mail_baseEdit(), _mail_baseGroupEdit(), _mail_changeGroup(), and changeMaildrop().
00097 { 00098 if (!isset($_SESSION["hasVDomainSupport"])) { 00099 $_SESSION["hasVDomainSupport"] = xmlCall("mail.hasVDomainSupport", null); 00100 } 00101 return $_SESSION["hasVDomainSupport"]; 00102 }

| removeMail | ( | $ | login | ) |
| removeMailGroup | ( | $ | group | ) |
Definition at line 69 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_changeGroup().

| resetUsersVDomainQuota | ( | $ | domain | ) |
| setVDomainDescription | ( | $ | domain, | |
| $ | description | |||
| ) |
| setVDomainQuota | ( | $ | domain, | |
| $ | quota | |||
| ) |
| syncMailGroupAliases | ( | $ | group, | |
| $ | foruser = "*" | |||
| ) |
Definition at line 85 of file mail-xmlrpc.php.
References $group, and xmlCall().
Referenced by _mail_addUserToGroup(), _mail_changeGroup(), _mail_changeUserPrimaryGroup(), and _mail_delUserFromGroup().

1.5.8