Beispiel #1
0
function set_quota()
{
    $email = $_GET["set_quota"];
    $quota = $_GET["max_quota"];
    $mail = new MailBoxes();
    $mail->MailBoxes_adduser($email, null, $quota);
}
Beispiel #2
0
function save_transport()
{
    $mailbox = new MailBoxes();
    $domain = $_GET["save_transport"];
    $ou = $_GET["ou"];
    $line = $mailbox->transport_maps_implode($_GET["transport_maps"], $_GET["transport_maps_port"], $_GET["transport_maps_service"]);
    $ldap = new clladp();
    $transport = $ldap->GetTransportTable($domain);
    if ($transport != null) {
        $upd["transport"][0] = $line;
        $ldap->Ldap_modify("cn={$domain},ou={$ou},dc=organizations,{$ldap->suffix}", $upd);
        echo transport_map($domain, $ou);
        return null;
    } else {
        $upd['cn'][0] = $domain;
        $upd['transport'][0] = $line;
        $upd['objectClass'][0] = 'transportTable';
        $upd['objectClass'][1] = 'top';
        $ldap->ldap_add("cn={$domain},ou={$ou},dc=organizations,{$ldap->suffix}", $upd);
        echo transport_map($domain, $ou);
        return null;
    }
}
Beispiel #3
0
function delete_domain_confirm()
{
    writelogs("Receive " . $_GET["delete_domain_confirm"], __FUNCTION__, __FILE__);
    $domain = $_GET["delete_domain_confirm"];
    $mailb = new MailBoxes();
    $mailb->Delete_entire_domain($domain);
    echo List_domains();
}
Beispiel #4
0
function add_storage_mailbox()
{
    $email = $_GET["add_storage_mailbox"];
    $password = $_GET["add_storage_mailbox_password"];
    $mailbox = new MailBoxes();
    $mailbox->MailBoxes_adduser($email, $password);
    echo MailBoxStorage($email);
}