|
@@ -511,9 +511,11 @@ function cwp7_ClientAreaAllowedFunctions() {
|
|
|
"Enable SSL" => "enableSSL",
|
|
"Enable SSL" => "enableSSL",
|
|
|
"Renew SSL" => "renewSSL",
|
|
"Renew SSL" => "renewSSL",
|
|
|
"Set DNS" => "setDNS",
|
|
"Set DNS" => "setDNS",
|
|
|
|
|
+ "Unset DNS" => "unsetDNS",
|
|
|
"Confirm Enable SSL" => "enableSSLConfirm",
|
|
"Confirm Enable SSL" => "enableSSLConfirm",
|
|
|
"Confirm Renew SSL" => "renewSSLConfirm",
|
|
"Confirm Renew SSL" => "renewSSLConfirm",
|
|
|
"Confirm Set DNS" => "setDNSConfirm",
|
|
"Confirm Set DNS" => "setDNSConfirm",
|
|
|
|
|
+ "Confirm Unset DNS" => "unsetDNSConfirm",
|
|
|
"Info DNS" => "infoDNS",
|
|
"Info DNS" => "infoDNS",
|
|
|
"Add Domain" => "addDomain",
|
|
"Add Domain" => "addDomain",
|
|
|
"Add Subdomain" => "addSubdomain",
|
|
"Add Subdomain" => "addSubdomain",
|
|
@@ -891,6 +893,33 @@ function cwp7_setDNSConfirm($params) {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Opens a form to unsset a DNS record for a subdomain or domain of a CWP7 account.
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param array $params common module parameters
|
|
|
|
|
+ *
|
|
|
|
|
+ * @see https://developers.whmcs.com/provisioning-modules/supported-functions/
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return array template information
|
|
|
|
|
+ */
|
|
|
|
|
+function cwp7_unsetDNSConfirm($params) {
|
|
|
|
|
+ if(isset($_POST['s'])){
|
|
|
|
|
+ return array(
|
|
|
|
|
+ 'templatefile' => 'cwp7_unset_DNS_confirm',
|
|
|
|
|
+ 'vars' => array(
|
|
|
|
|
+ 'DNSdomain' => $_POST['d'],
|
|
|
|
|
+ 'DNSsubdomain' => $_POST['s'],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ return array(
|
|
|
|
|
+ 'templatefile' => 'cwp7_unset_DNS_confirm',
|
|
|
|
|
+ 'vars' => array(
|
|
|
|
|
+ 'DNSdomain' => $_POST['d'],
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Update a DNS zone for a domain setting a new record for a domain or subdomain of a CWP7 account.
|
|
* Update a DNS zone for a domain setting a new record for a domain or subdomain of a CWP7 account.
|
|
|
*
|
|
*
|