예제 #1
0
 function p_new()
 {
     # get the common server class and set login details
     include_once PATH_MODULES . 'host_server/host_server.inc.php';
     $host = new host_server();
     if ($this->service['host_username'] == '' || $this->service['host_password'] == '') {
         $this->login = $host->generate_login($this->service, $this->account, 4, 4, false);
     } else {
         $this->login['username'] = $this->service['host_username'];
     }
     #include the Helm class (sorry, that file is encoded)
     include_once PATH_CORE . 'helm.inc.php';
     $helm = new HELM();
     $helm->ssl = true;
     $helm->cookie_path = PATH_FILES . 'HELM_COOKIE.dat';
     $helm->host = $this->server_cfg['host'];
     $helm->user = $this->server_cfg['user'];
     $helm->pass = $this->server_cfg['pass'];
     $helm->debug = $this->server['debug'];
     $result = $helm->add($this->server_cfg['reseller'], $this->login['username'], $this->service['domain_name'], $this->service['domain_tld'], $this->plugin_data['plan'], $this->service['sku'], $this->account['first_name'], $this->account['last_name'], $this->account['company'], $this->account['address1'], $this->account['city'], $this->account['state'], $this->account['zip'], $this->account['email']);
     # send the user the details
     include_once PATH_MODULES . 'email_template/email_template.inc.php';
     $email = new email_template();
     $email->send('host_new_user', $this->account['id'], $this->service_id, '', '');
     return $result;
 }
예제 #2
0
    function p_delete()
    {
        # recycle the IP if ip_based:
        if ($this->plugin_data['ip_based'] == '1') {
            include_once PATH_MODULES . 'host_server/host_server.inc.php';
            $host = new host_server();
            $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
        }
        $data = <<<EOF
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
\t\t<packet version="{$this->proto}">
\t\t\t<client>
\t\t\t\t<del>
\t\t\t\t\t<filter>
\t\t\t\t\t\t<id>{$this->plugin_data['account_id']}</id>
\t\t\t\t\t</filter>
\t\t\t\t</del>
\t\t\t</client>
</packet>
EOF;
        # Connect & get response:
        $result = $this->connect($this->server_cfg['host'], $this->server_cfg['port'], $this->server_cfg['user'], $this->server_cfg['pass'], $data);
        # Debug:
        $this->debug($data, $result);
        if (!empty($result)) {
            return true;
        } else {
            return false;
        }
    }
예제 #3
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['ipinfo_namebased'] == '0') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     $cmd = 'deldomain -s <xml>' . '<domain>' . $this->service['domain_name'] . "." . $this->service['domain_tld'] . '</domain>' . '</xml>' . $this->nl;
     return $cmd;
 }
예제 #4
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['hst_type'] == '0') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     $cmd = "domain.exe -r " . $this->service['domain_name'] . "." . $this->service['domain_tld'];
     return $cmd;
 }
예제 #5
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['ipinfo_namebased'] == '0') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     return "./cdelvsite --quick -n " . strtolower($this->service['domain_name'] . "." . $this->service['domain_tld']);
 }
예제 #6
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['ipinfo_namebased'] == '1') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     # send the admin delete notice
     include_once PATH_MODULES . 'email_template/email_template.inc.php';
     $email = new email_template();
     $email->send('admin->host_delete_admin', $this->account['id'], $this->service['id'], '', '');
     return true;
 }
예제 #7
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['type'] == '1') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     # Set the post vars:
     $this->host = 'https://' . $this->server_cfg['host'] . ':' . $this->server_cfg['port'] . '/CMD_SELECT_USERS?' . "confirmed=Confirm&delete=yes" . "&select0={$this->service['host_username']}";
     # Connect & get response:
     $result = $this->connect('10');
     # Check the response & Debug
     if ($this->server['debug']) {
         echo "<pre> " . print_r($result) . " </pre>";
     }
     if (!empty($result)) {
         return true;
     } else {
         return false;
     }
 }
예제 #8
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['hst_type'] == '0') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     #include the easyAdmin class (sorry, that file is encoded)
     include_once PATH_CORE . 'easyadmin.inc.php';
     $e = new EASYADMIN();
     $e->cookiepath = PATH_FILES . 'easyCookie.txt';
     $e->debug = $this->server['debug'];
     $e->host = $this->server_cfg['host'];
     $e->user = $this->server_cfg['user'];
     $e->pass = $this->server_cfg['pass'];
     $e->reseller = $this->server_cfg['reseller'];
     $e->domain = $this->service['domain_name'] . '.' . $this->service['domain_tld'];
     return $e->del();
 }
예제 #9
0
 function p_delete()
 {
     # recycle the IP if ip_based:
     if ($this->plugin_data['network_interface'] == '1') {
         include_once PATH_MODULES . 'host_server/host_server.inc.php';
         $host = new host_server();
         $this->ip = $host->unuseipaddress($this->server, $this->service['host_ip']);
     }
     #include the webmin class (sorry, that file is encoded)
     include_once PATH_CORE . 'webmin.inc.php';
     $e = new WEBMIN();
     $e->debug = $this->server['debug'];
     $e->host = $this->server_cfg['host'];
     $e->user = $this->server_cfg['user'];
     $e->pass = $this->server_cfg['pass'];
     $e->port = $this->server_cfg['port'];
     $e->ssl = $this->server_cfg['ssl'];
     $e->domain = $this->service['domain_name'] . '.' . $this->service['domain_tld'];
     return $e->del();
 }