本文整理汇总了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();
}
示例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;
}
示例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();
}