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


PHP clladp::DeleteLocadDomain方法代码示例

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


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

示例1: 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

示例2: TASK_DELETE_DOMAIN

function TASK_DELETE_DOMAIN($value)
{
    $array = unserialize(base64_decode($value));
    if (!is_array($array)) {
        events("VALUE is not an array", __FUNCTION__, __FILE__, __LINE__);
        send_email_events("Domain: could not delete domain VALUE is not an array", null, "CLOUD");
        return true;
    }
    $domain_name = $array["DOMAIN"];
    $ou = $array["ou"];
    $ldap = new clladp();
    $dn = "cn={$domain_name},cn=transport_map,ou={$ou},dc=organizations,{$ldap->suffix}";
    if ($ldap->ExistsDN($dn)) {
        $ldap->ldap_delete($dn, false);
    }
    $dn = "cn=@{$domain_name},cn=relay_recipient_maps,ou={$ou},dc=organizations,{$ldap->suffix}";
    if ($ldap->ExistsDN($dn)) {
        $ldap->ldap_delete($dn, false);
    }
    $dn = "cn={$domain_name},cn=relay_domains,ou={$ou},dc=organizations,{$ldap->suffix}";
    if ($ldap->ExistsDN($dn)) {
        $ldap->ldap_delete($dn, false);
    }
    $ldap->DeleteLocadDomain($domain_name, $ou);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-transport-maps=yes");
    send_email_events("Domain: success delete {$domain_name} in {$ou} organization", null, "CLOUD");
    return true;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:29,代码来源:exec.artica.meta.tasks.php

示例3: 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


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