function kwspamexperts_UnsuspendAccount($params) { $domain = !empty($params["customfields"]["Domain"]) ? $params["customfields"]["Domain"] : $params['domain']; $api = new kwspamexperts_api($params); if (empty($domain)) { return "Domain cannot be empty. Please enter domain name in Domain field."; } $api->call("domain/unwhitelistrecipient/domain/" . $domain . "/recipient/*/", false); if ($api->isSuccess()) { return "success"; } return $api->error(); }
* CREATED BY MODULESGARDEN -> http://modulesgarden.com * CONTACT -> contact@modulesgarden.com * * * * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * * ******************************************************************** */ /** * @author Maciej Husak <*****@*****.**> */ if (!defined("WHMCS")) { die("This file cannot be accessed directly"); } if (isset($_POST['action']) && $_POST['action'] == 'testconnection') { include_once ROOTDIR . DS . 'modules' . DS . 'servers' . DS . 'kwspamexperts' . DS . 'class.connection.php'; $api = new kwspamexperts_api(array('configoption2' => $_POST['url'], 'configoption3' => $_POST['user'], 'configoption4' => $_POST['password'])); $api->call('/version/get/'); if ($api->isSuccess()) { die('success'); } else { die($api->error()); } }