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


PHP clladp::delete_VirtualDomainsMapsMTA方法代码示例

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


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

示例1: localdomain_remove

function localdomain_remove()
{
    include_once dirname(__FILE__) . "/ressources/class.ejabberd.inc";
    include_once dirname(__FILE__) . "/ressources/class.artica.inc";
    $usr = new usersMenus();
    $tpl = new templates();
    if ($usr->AllowChangeDomains == false) {
        echo $tpl->_ENGINE_parse_body('{no_privileges}');
        exit;
    }
    $domain = $_POST["localdomain-remove"];
    $ou = $_POST["ou"];
    $tpl = new templates();
    $artica = new artica_general();
    $ldap = new clladp();
    if ($artica->RelayType == "single") {
        $ldap->delete_VirtualDomainsMapsMTA($ou, $domain);
    }
    $ldap->DeleteLocadDomain($domain, $ou);
    $sql = "DELETE FROM postfix_duplicate_maps WHERE pattern='{$domain}'";
    $q = new mysql();
    $q->QUERY_SQL($sql, "artica_backup");
    $jb = new ejabberd($domain);
    $jb->Delete();
    ChockServices();
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:26,代码来源:miniadm.messaging.domains.php

示例2: DeleteInternetDomain

function DeleteInternetDomain()
{
    $usr = new usersMenus();
    $tpl = new templates();
    if ($usr->AllowChangeDomains == false) {
        echo $tpl->_ENGINE_parse_body('{no_privileges}');
        exit;
    }
    $domain = $_GET["DeleteInternetDomain"];
    $ou = $_GET["ou"];
    $tpl = new templates();
    $artica = new artica_general();
    $ldap = new clladp();
    if ($artica->RelayType == "single") {
        $ldap->delete_VirtualDomainsMapsMTA($ou, $domain);
    }
    $ldap->DeleteLocadDomain($domain, $ou);
    $sql = "DELETE FROM postfix_duplicate_maps WHERE pattern='{$domain}'";
    $q = new mysql();
    $q->QUERY_SQL($sql, "artica_backup");
    $q->QUERY_SQL("DELETE FROM domains`name`='{$domain}'", "powerdns");
    $jb = new ejabberd($domain);
    $jb->Delete();
}
开发者ID:articatech,项目名称:artica,代码行数:24,代码来源:domains.edit.domains.php

示例3: DeleteInternetDomain

function DeleteInternetDomain()
{
    $usr = new usersMenus();
    if ($usr->AllowChangeDomains == false) {
        echo $tpl->_ENGINE_parse_body('{no_privileges}');
        exit;
    }
    $domain = $_GET["DeleteInternetDomain"];
    $ou = $_GET["ou"];
    $tpl = new templates();
    $artica = new artica_general();
    $ldap = new clladp();
    if ($artica->RelayType == "single") {
        $ldap->delete_VirtualDomainsMapsMTA($ou, $domain);
    }
    $HashDomains = $ldap->Hash_domains_table($ou);
    $ldap = new clladp();
    $h = $ldap->Ldap_search($ldap->suffix, "(associatedDomain={$domain})", array("dn"));
    if ($h["count"] > 0) {
        $res["associatedDomain"] = $domain;
        if ($h["count"] == 1) {
            $res["objectClass"] = "domainRelatedObject";
        }
        for ($i = 0; $i < $h["count"]; $i++) {
            $ldap->Ldap_del_mod($h[$i]["dn"], $res);
        }
    }
    writelogs("{$domain} type=" . $HashDomains[$domain], __FUNCTION__, __FILE__);
    switch ($HashDomains[$domain]) {
        case "associateddomain":
            $ldap->delete_associated_domain($ou, $domain);
            break;
        case "dn":
            if ($ldap->ExistsDN("cn={$domain},ou={$ou},{$ldap->suffix}")) {
                writelogs("cn={$domain},ou={$ou},{$ldap->suffix} exists, delete it...", __FUNCTION__, __FILE__);
                if (!$ldap->ldap_delete("cn={$domain},ou={$ou},{$ldap->suffix}")) {
                    writelogs("Error line :" . __LINE__ . " " . $ldap->ldap_last_error, __FUNCTION__, __FILE__);
                }
            }
            break;
        default:
            return null;
            break;
    }
    if ($ldap->ldap_last_error != null) {
        echo $ldap->ldap_last_error;
    } else {
        echo html_entity_decode($tpl->_ENGINE_parse_body('{success}'));
        exit;
    }
}
开发者ID:brucewu16899,项目名称:artica,代码行数:51,代码来源:domains.edit.domains.php


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