当前位置: 首页>>代码示例>>PHP>>正文


PHP clladp::uid_from_email方法代码示例

本文整理汇总了PHP中clladp::uid_from_email方法的典型用法代码示例。如果您正苦于以下问题:PHP clladp::uid_from_email方法的具体用法?PHP clladp::uid_from_email怎么用?PHP clladp::uid_from_email使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在clladp的用法示例。


在下文中一共展示了clladp::uid_from_email方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: save

function save()
{
    $email = $_GET["luser_relay"];
    $ldap = new clladp();
    $users = new usersMenus();
    $mustcheck = false;
    if ($users->cyrus_imapd_installed) {
        $mustcheck = true;
    }
    if ($users->ZARAFA_INSTALLED) {
        $mustcheck = true;
    }
    if (preg_match("#^@(.+)#", $email, $re)) {
        $mustcheck = false;
        $email = null;
    }
    if ($mustcheck) {
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($email);
        if ($uid == null) {
            $tpl = new templates();
            echo $tpl->javascript_parse_text("\n{$email}\n{mailbox_does_not_exists}");
            return;
        }
    }
    $sock = new sockets();
    $sock->SET_INFO("luser_relay", $email);
    $sock->getFrameWork("cmd.php?postfix-luser-relay=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:postfix.luser_relay.php

示例2: WhiteListSender

function WhiteListSender()
{
    $sql = "SELECT mail_from,mail_to from messages WHERE zMD5=\"{$_GET["id"]}\"";
    $result = QUERY_SQL($sql);
    $ligne = @sqlite3_fetch_array(QUERY_SQL($sql));
    $mail_from = $ligne["mail_from"];
    if ($mail_from == null) {
        SinglePage(ParseLogs("ERROR\n"));
        exit;
    }
    $ldap = new clladp();
    $upd["KasperkyASDatasAllow"] = $mail_from;
    $uid = $ldap->uid_from_email($ligne["mail_to"]);
    if ($uid == null) {
        SinglePage(ParseLogs("ERROR\n"));
        exit;
    }
    $hash = $ldap->UserDatas($uid);
    $dn = $hash["dn"];
    if (!$ldap->Ldap_add_mod($dn, $upd)) {
        $error = $ldap->ldap_last_error . "\n";
    }
    $sock = new sockets();
    $error = $error . $sock->getfile('releaseallmailfrommd5:' . $_GET["id"]);
    SinglePage(ParseLogs($error));
}
开发者ID:brucewu16899,项目名称:artica,代码行数:26,代码来源:cmd.quarantine.php

示例3: save

function save()
{
    $email = $_GET["postmaster"];
    $ldap = new clladp();
    $users = new usersMenus();
    $mustcheck = false;
    if ($users->cyrus_imapd_installed) {
        $mustcheck = true;
    }
    if ($users->ZARAFA_INSTALLED) {
        $mustcheck = true;
    }
    if ($mustcheck) {
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($email);
        if ($uid == null) {
            $tpl = new templates();
            echo $tpl->javascript_parse_text("\n{$email}\n{mailbox_does_not_exists}");
            return;
        }
    }
    $sock = new sockets();
    $sock->SET_INFO("PostfixPostmaster", $email);
    $sock->getFrameWork("cmd.php?postfix-hash-aliases=yes");
    $sock->getFrameWork("cmd.php?postmaster-cron=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:postfix.postmaster.php

示例4: archive_process_copyto

function archive_process_copyto($file, $realmailfrom, $realmailto)
{
    $dests = array();
    $ldap = new clladp();
    if (!isset($GLOBALS["uidfrom"][$realmailfrom])) {
        $GLOBALS["uidfrom"][$realmailfrom] = $ldap->uid_from_email($realmailfrom);
    }
    if (!archive_process_copytorule($GLOBALS["uidfrom"][$realmailfrom], "out", $file, $realmailfrom)) {
        return false;
    }
    $f = explode("\r\n", @file_get_contents($file));
    while (list($index, $line) = each($f)) {
        if (preg_match("#X-REAL-RCPTTO.*?:(.+)#", $line, $re)) {
            $email = trim($re[1]);
            $email = str_replace(">", "", $email);
            $email = str_replace("<", "", $email);
            $email = trim(strtolower($email));
            events("Recipient Detected: from=<{$realmailfrom}> to=<{$email}>", __LINE__);
            $dests[] = $email;
            if (preg_match("#subject.*?:#i", $line)) {
                break;
            }
            if (preg_match("#X-Archive-end#", $line)) {
                break;
            }
        }
    }
    while (list($index, $rcpt) = each($dests)) {
        $rcpt = trim($rcpt);
        if ($rcpt == null) {
            continue;
        }
        if (!isset($GLOBALS["uidfrom"][$rcpt])) {
            $GLOBALS["uidfrom"][$rcpt] = $ldap->uid_from_email($rcpt);
        }
        events("Checks to=<{$rcpt}> ({$GLOBALS["uidfrom"][$rcpt]})", __LINE__);
        if (!archive_process_copytorule($rcpt, "in", $file, $realmailfrom)) {
            return false;
        }
        events("Checks to=<{$GLOBALS["uidfrom"][$rcpt]}> ({$rcpt})", __LINE__);
        if (!archive_process_copytorule($GLOBALS["uidfrom"][$rcpt], "in", $file, $realmailfrom)) {
            return false;
        }
    }
    return true;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:46,代码来源:exec.mailarchiver.php

示例5: BuildQuery

function BuildQuery()
{
    $users = new usersMenus();
    $ldap = new clladp();
    $tpl = new templates();
    $recipient = $_GET["recipient"];
    if ($_GET["query"] == '*') {
        $_GET["query"] = null;
    }
    writelogs("recipient={$_GET["recipient"]}", __FUNCTION__, __FILE__);
    if ($recipient == null) {
        $recipient = '*';
    }
    if (!$users->AsArticaAdministrator) {
        writelogs("AsArticaAdministrator=FALSE", __FUNCTION__, __FILE__);
        if (strpos(" {$recipient}", '*') == 0) {
            $uid = $ldap->uid_from_email($_GET["recipient"]);
            if ($uid == null) {
                return array(false, $tpl->_ENGINE_parse_body('{error_no_user_exists}'));
            } else {
                $filter1 = "mailto='{$recipient}'";
            }
        } else {
            if (!preg_match('#(.+?)@(.+)#', $recipient, $re)) {
                return array(false, $tpl->_ENGINE_parse_body('{error_bad_recipient_pattern}'));
            }
            $domains = $ldap->hash_get_domains_ou($_GET["ou"]);
            if ($domains[trim($re[2])] == null) {
                return array(false, $tpl->_ENGINE_parse_body('{error_match_recipient_domain}'));
            }
            $re[1] = str_replace('*', '%', $re[1]);
            $filter1 = "mailto LIKE '{$re[1]}@{$re[2]}'";
        }
    }
    if ($users->AsPostfixAdministrator) {
        writelogs("AsArticaAdministrator=TRUE", __FUNCTION__, __FILE__);
        writelogs("recipient={$_GET["recipient"]}", __FUNCTION__, __FILE__);
        if (strpos(" {$recipient}", '*') > 0) {
            $_GET["recipient"] = str_replace('*', '%', $_GET["recipient"]);
            $filter1 = "mailto LIKE '{$_GET["recipient"]}'";
            writelogs("filter={$filter1}", __FUNCTION__, __FILE__);
        } else {
            $filter1 = "mailto='{$_GET["recipient"]}'";
        }
    }
    if ($_GET["limit"] == null) {
        $limit = 0;
    }
    if ($_GET["query"] != null) {
        $field2 = ",MessageBody,MATCH (MessageBody) AGAINST ('{$_GET["query"]}') AS pertinence";
        $ORDER2 = ",pertinence DESC ";
    }
    if ($filter1 == "mailto LIKE ''") {
        $domains = $ldap->hash_get_domains_ou($_GET["ou"]);
        while (list($num, $ligne) = each($domains)) {
            $dd[] = "(mailto LIKE '%{$num}')";
        }
        $filter1 = "(" . implode("OR ", $dd) . ")";
    }
    $limit = $_GET["next"] * 100;
    $sql = "SELECT \n\t\t MessageID,\n\t\t MessageBody,\n\t\t zDate,\n\t\t mailfrom,\n\t\t subject,\n\t\t mailto\n\t\t {$field2}\n\t\t\tFROM `quarantine` WHERE 1\n\t\t\tAND {$filter1}\n\t\t\tORDER BY zDate DESC {$ORDER2} LIMIT {$limit},100";
    writelogs($sql, __FUNCTION__, __FILE__);
    return array(true, $sql);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:64,代码来源:domains.backup.php

示例6: GROUP_MAILING_LIST

function GROUP_MAILING_LIST()
{
    $ou = $_GET["LoadMailingList"];
    $group = new groups(null);
    $hash = $group->load_MailingList($ou);
    $html = "\n\t<input type='hidden' id='RemoveMailingList_text' value='{RemoveMailingList_text}'>\n\t<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:99%'>\n\t<thead class='thead'>\n\t\t<tr>\n\t\t<th width=99% colspan=3>{mailing_list}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody class='tbody'>";
    while (list($num, $ligne) = each($hash)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($num);
        $js = MEMBER_JS($uid, 1);
        $delete = "RemoveMailingList('{$ou}','{$num}');";
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t<td width=1%>" . imgtootltip('24-mailinglist.png', '{select}', $js) . "</td>\n\t\t<td><strong style='font-size:14px'><a href='#' OnClick=\"{$js}\">{$num} ({$ligne} {members})</a></strong></td>\n\t\t<td width=1%>" . imgtootltip('delete-32.png', '{delete}', $delete) . "</td>\n\t\t</tr>\n\t\t\n\t";
    }
    $html = $html . "</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:22,代码来源:domains.edit.group.php

示例7: AddAliases

function AddAliases()
{
    $ldap = new clladp();
    $tpl = new templates();
    $_GET["aliase"] = trim($_GET["aliase"]);
    $_GET["aliase"] = str_replace(" ", "", $_GET["aliase"]);
    writelogs("Adding a new alias \"{$_GET["aliase"]}\" for uid={$_GET["AddAliases"]}", __FUNCTION__, __FILE__, __LINE__);
    $uid = $ldap->uid_from_email($_GET["aliase"]);
    writelogs("\"{$_GET["aliase"]}\"=\"{$uid}\"", __FUNCTION__, __FILE__, __LINE__);
    if (trim($uid) != null) {
        writelogs("Error, this email already exists", __FUNCTION__, __FILE__, __LINE__);
        echo $tpl->javascript_parse_text("{error_alias_exists}\n{owner}:{$uid}", 1);
        exit;
    }
    writelogs("OK, this email did not exists", __FUNCTION__, __FILE__, __LINE__);
    $user = new user($_GET["AddAliases"]);
    if (substr($_GET["aliase"], 0, 1) == '*') {
        $_GET["aliase"] = str_replace('*', '', $_GET["aliase"]);
    } else {
        if (!$user->isEmailValid($_GET["aliase"])) {
            writelogs("Error, this email is invalid", __FUNCTION__, __FILE__, __LINE__);
            echo $tpl->_ENGINE_parse_body('{error_email_invalid}');
            exit;
        }
    }
    writelogs("OK, this {$_GET["aliase"]} email is valid add it for uid={$user->uid}", __FUNCTION__, __FILE__, __LINE__);
    if (!$user->add_alias($_GET["aliase"])) {
        writelogs("Error, LDAP DATABASE {$user->ldap_error}", __FUNCTION__, __FILE__, __LINE__);
        echo $user->ldap_error;
        exit;
    }
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:32,代码来源:domains.edit.user.php

示例8: explode

<?php

header("Content-Type:text/xml");
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.main_cf.inc';
$emailaddress = $_GET["emailaddress"];
$tr = explode("@", $emailaddress);
$domain = $tr[1];
$users = new user();
$ldap = new clladp();
$uid = $ldap->uid_from_email($emailaddress);
$f[] = "<?xml version=\"1.0\"?>";
$f[] = "<clientConfig version=\"1.1\">";
$f[] = "    <emailProvider id=\"example.com\">";
$f[] = "      <domain>{$domain}</domain>";
$f[] = "";
$f[] = "      <displayName>{$uid} Mail</displayName>";
$f[] = "      <displayShortName>{$uid}</displayShortName>";
$f[] = "";
$f[] = "      <incomingServer type=\"imap\">";
$f[] = "         <hostname>pop.example.com</hostname>";
$f[] = "         <port>143</port>";
$f[] = "         <socketType>SSL</socketType>";
$f[] = "           <!-- \"plain\": no encryption";
$f[] = "                \"SSL\": SSL 3 or TLS 1 on SSL-specific port";
$f[] = "                \"STARTTLS\": on normal plain port and mandatory upgrade to TLS via STARTTLS";
$f[] = "                -->";
$f[] = "         <username>{$uid}</username>";
$f[] = "            <!-- \"password-cleartext\",";
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:smtp.autoconfig.php

示例9: list_save

function list_save()
{
    $listname = $_GET["listname"];
    $admin_email = $_GET["admin_email"];
    $tpl = new templates();
    if ($_SESSION["uid"] == -100) {
        echo "ok\n";
        $ou_q = base64_decode($_GET["ou"]);
    } else {
        $ct = new user($_SESSION["uid"]);
        $ou_q = $ct->ou;
    }
    $ldap = new clladp();
    $uid = $ldap->uid_from_email($admin_email);
    if ($uid == null) {
        echo $tpl->_ENGINE_parse_body("{$admin_email}:{mailman_admin_not_exists}");
        exit;
    }
    $ct = new user($uid);
    $listuid = $ldap->uid_from_email("{$listname}@{$domain}");
    if ($listuid != null) {
        echo $tpl->_ENGINE_parse_body("{account_already_exists}:{$listname}@{$domain}");
        exit;
    }
    if ($_GET["webservername"] == null) {
        echo $tpl->_ENGINE_parse_body("{www_server_name}:NULL !");
        exit;
    }
    $apache = new vhosts();
    $array = $apache->SearchHosts($_GET["webservername"] . '.' . $_GET["webservername_domain"]);
    if ($array["apacheservername"] != null) {
        echo $tpl->_ENGINE_parse_body($_GET["webservername"] . '.' . $_GET["webservername_domain"] . " {error_domain_exists}");
        exit;
    }
    $admin_password = $_GET["admin_password"];
    $domain = $_GET["domain"];
    $mailman = new mailman_control($ou_q);
    $mailman->list_name = $listname;
    $mailman->list_domain = $domain;
    $mailman->admin_email = $admin_email;
    $mailman->admin_password = $_GET["admin_password"];
    $mailman->webservername = $_GET["webservername"] . '.' . $_GET["webservername_domain"];
    if ($mailman->EditList()) {
    }
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?syncro-mailman=yes");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:47,代码来源:domains.mailman.lists.php

示例10: CreateThisUser

function CreateThisUser($email)
{
    if (!preg_match("#(.+?)@(.+)#", $email, $re)) {
        return null;
    }
    $domain = $re[2];
    $uid = $re[1];
    $ldap = new clladp();
    $ou = $ldap->ou_by_smtp_domain($domain);
    if ($ou == null) {
        write_syslog("CreateThisUser():: Unable to detect organization by domain \"{$domain}\"", __FILE__);
        return null;
    }
    $ct = new user($uid);
    $ct->ou = $ou;
    $ct->mail = $email;
    $ct->uid = $uid;
    if (!$ct->add_user()) {
        write_syslog("CreateThisUser():: Unable to Create user {$uid} \"{$email}\"", __FILE__);
        return null;
    }
    $uid2 = $ldap->uid_from_email($email);
    write_syslog("CreateThisUser():: new user \"{$uid2}\"", __FILE__);
    return $uid2;
}
开发者ID:articatech,项目名称:artica,代码行数:25,代码来源:exec.whiteblack.php

示例11: popup_addlist

function popup_addlist()
{
    $tpl = new templates();
    $listname = strtolower($_GET["listname_add"]);
    $domain = $_GET["domain"];
    $adminmail = $_GET["adminmail"];
    $urlhost = $_GET["urlhost"];
    $emailhost = $_GET["emailhost"];
    $ldap = new clladp();
    $uid = $ldap->uid_from_email($adminmail);
    if ($uid == null) {
        echo $tpl->_ENGINE_parse_body("{mailman_admin_not_exists}", 'mailman.lists.php');
    }
    $users = new user($uid);
    $password = $users->password;
    $sock = new sockets();
    $sock->getfile("MailManAddList:{$listname};{$urlhost};{$domain};{$adminmail};{$password}");
}
开发者ID:brucewu16899,项目名称:artica,代码行数:18,代码来源:mailman.php

示例12: list_add

function list_add()
{
    $tpl = new templates();
    $listname = strtolower($_POST["listname_add"]);
    $domain = $_POST["domain"];
    $adminmail = $_POST["adminmail"];
    $urlhost = $_POST["urlhost"];
    $emailhost = $_POST["emailhost"];
    $ldap = new clladp();
    $uid = $ldap->uid_from_email($adminmail);
    if ($uid == null) {
        echo $tpl->javascript_parse_text("{mailman_admin_not_exists}", 'mailman.lists.php');
        return;
    }
    $urlhost = "{$urlhost}.{$domain}";
    if ($emailhost == null) {
        if ($_POST["mangle"] == 0) {
            echo $tpl->javascript_parse_text("{please_fill_subdomain_correctly}");
            return;
        }
    }
    $emailhost = "{$emailhost}.{$domain}";
    if ($_POST["mangle"] == 1) {
        $emailhost = $domain;
    } else {
        if ($emailhost == null) {
            echo $tpl->javascript_parse_text("{unable_to_add_this_domain_conflict}: {$domain}");
            return;
        }
    }
    $mailman = new mailmancontrol($listname);
    $mailman->emailhost = $emailhost;
    $mailman->urlhost = $urlhost;
    $mailman->adminmail = $adminmail;
    $mailman->mangle = $_POST["mangle"];
    $mailman->EditMysqlList();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:37,代码来源:mailman.php

示例13: GROUP_MAILING_LIST

function GROUP_MAILING_LIST()
{
    $ou = $_GET["LoadMailingList"];
    $group = new groups(null);
    $hash = $group->load_MailingList($ou);
    $html = "\n\t<input type='hidden' id='RemoveMailingList_text' value='{RemoveMailingList_text}'>\n\t<table style='width:90%' align=\"center\" style='margin-left:50px'>";
    while (list($num, $ligne) = each($hash)) {
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($num);
        $js = MEMBER_JS($uid, 1);
        $delete = "RemoveMailingList('{$ou}','{$num}');";
        $html = $html . "\n\t\t<tr " . CellRollOver() . ">\n\t\t<td width=1%>" . imgtootltip('24-mailinglist.png', '{select}', $js) . "</td>\n\t\t<td><strong>" . texttooltip("{$num} ({$ligne} {members})", "{select}", $js) . "</strong></td>\n\t\t<td width=1%>" . imgtootltip('ed_delete.gif', '{delete}', $delete) . "</td>\n\t\t</tr>\n\t\t\n\t";
    }
    $html = $html . "</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body("<h1 style='width:103%'>{mailing_list}</h1>" . RoundedLightWhite($html));
}
开发者ID:brucewu16899,项目名称:artica,代码行数:17,代码来源:domains.edit.group.php

示例14: SaveWhiteList

function SaveWhiteList()
{
    $tpl = new templates();
    $to = $_GET["recipient"];
    $wbl = $_GET["wbl"];
    $RcptDomain = $_GET["RcptDomain"];
    $from = $_GET["whitelist"];
    if ($to == null) {
        $to = "*@{$RcptDomain}";
    }
    if ($from == null) {
        echo $tpl->_ENGINE_parse_body('{from}: {error_miss_datas}');
        return false;
    }
    if (substr($to, 0, 1) == '@') {
        $domain = substr($to, 1, strlen($to));
    } else {
        if (strpos($to, '@') > 0) {
            $tbl = explode('@', $to);
            $domain = $tbl[1];
        } else {
            $domain = $to;
            $to = "@{$to}";
        }
    }
    $tbl[0] = str_replace("*", "", $tbl[0]);
    $ldap = new clladp();
    $domains = $ldap->hash_get_all_domains();
    if ($domains[$domain] == null) {
        echo $tpl->javascript_parse_text('{recipient}: {error_unknown_domain} ' . $domain);
        return false;
    }
    if ($tbl[0] == null) {
        $ldap->WhiteListsAddDomain($domain, $from, $wbl);
        return true;
    } else {
        $uid = $ldap->uid_from_email($to);
        if ($uid == null) {
            echo $tpl->javascript_parse_text('{recipient}: {error_no_user_exists} ' . $to);
            return false;
        }
        $ldap->WhiteListsAddUser($uid, $from, $wbl);
    }
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:44,代码来源:whitelists.admin.php

示例15: maillings_table

function maillings_table()
{
    if (isset($GLOBALS["maillings_table_exectuted"])) {
        return;
    }
    $GLOBALS["maillings_table_exectuted"] = true;
    $sock = new sockets();
    $MailingListUseLdap = $sock->GET_INFO("MailingListUseLdap");
    if (!is_numeric($MailingListUseLdap)) {
        $MailingListUseLdap = 0;
    }
    if ($MailingListUseLdap == 1) {
        return;
    }
    $ldap = new clladp();
    $filter = "(&(objectClass=MailingAliasesTable)(cn=*))";
    $attrs = array("cn", "MailingListAddress", "MailingListAddressGroup");
    $dn = "dc=organizations,{$ldap->suffix}";
    $hash = $ldap->Ldap_search($dn, $filter, $attrs);
    for ($i = 0; $i < $hash["count"]; $i++) {
        $cn = trim($hash[$i]["cn"][0]);
        $MailingListAddressGroup = 0;
        if (isset($hash[$i]["mailinglistaddressgroup"])) {
            $MailingListAddressGroup = $hash[$i]["mailinglistaddressgroup"][0];
        }
        for ($t = 0; $t < $hash[$i]["mailinglistaddress"]["count"]; $t++) {
            $mailinglistaddress_email = repair_addr($hash[$i]["mailinglistaddress"][$t]);
            if ($mailinglistaddress_email == null) {
                continue;
            }
            if ($GLOBALS["DEBUG"]) {
                echo "[" . __LINE__ . "]: maillings_table(): -> \"{$mailinglistaddress_email}\"\n";
            }
            $mailinglistaddress[$mailinglistaddress_email] = $mailinglistaddress_email;
        }
        if ($MailingListAddressGroup == 1) {
            $uid = $ldap->uid_from_email($cn);
            $user = new user($uid);
            $array = $user->MailingGroupsLoadAliases();
            while (list($num, $ligne) = each($array)) {
                $ligne = repair_addr($ligne);
                if (trim($ligne) == null) {
                    continue;
                }
                if ($GLOBALS["DEBUG"]) {
                    echo "[" . __LINE__ . "]: {$uid} -> [{$ligne}]\n";
                }
                $mailinglistaddress[$ligne] = $ligne;
            }
        }
        $final = array();
        if (is_array($mailinglistaddress)) {
            while (list($num, $ligne) = each($mailinglistaddress)) {
                $num = repair_addr($num);
                if ($num == null) {
                    continue;
                }
                $final[] = $num;
            }
            if ($GLOBALS["DEBUG"]) {
                echo "[" . __LINE__ . "]: maillings_table(): {$cn} = " . implode(",", $final) . "\n";
            }
            if (count($final) > 0) {
                $cn = trim($cn);
                $cn = str_replace("\n", "", $cn);
                $cn = str_replace("\r", "", $cn);
                if ($cn == null) {
                    continue;
                }
                $GLOBALS["virtual_alias_maps_emailing"][$cn] = "{$cn}\t" . implode(",", $final);
            }
        }
        unset($final);
        unset($mailinglistaddress);
        $MailingListAddressGroup = 0;
    }
    $filter = "(&(objectClass=ArticaMailManRobots)(cn=*))";
    $attrs = array("cn", "MailManAliasPath");
    $dn = "dc=organizations,{$ldap->suffix}";
    $hash = $ldap->Ldap_search($dn, $filter, $attrs);
    $sock = new sockets();
    if ($sock->GET_INFO("MailManEnabled") == 1) {
        $GLOBALS["MAILMAN"] = true;
    } else {
        $GLOBALS["MAILMAN"] = false;
        return;
    }
    if ($hash["count"] > 0) {
        $GLOBALS["MAILMAN"] = true;
    } else {
        $GLOBALS["MAILMAN"] = false;
    }
}
开发者ID:articatech,项目名称:artica,代码行数:93,代码来源:exec.postfix.hashtables.php


注:本文中的clladp::uid_from_email方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。