PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
hosting
<?php class hosting_manager_directadmin extends hosting_manager_base { public function addDomain($domain) { include dirname(__FILE__).'/httpsocket/httpsocket.php'; $sock = new HTTPSocket(); $sock->connect($this->url, $this->port); $sock->set_login($this->username, $this->password); $sock->set_method('POST'); $sock->query('/CMD_API_DOMAIN', array( 'action' => 'create', 'domain' => $domain, 'ubandwidth' => 'unlimited', 'uquota' => 'unlimited', 'ssl' => 'ON', 'cgi' => 'ON', 'php' => 'ON', 'create' => 'Create', )); $result = $sock->fetch_body(); return $result; } public function removeDomain($domain) { include dirname(__FILE__).'/httpsocket/httpsocket.php'; $sock = new HTTPSocket(); $sock->connect($this->url, $this->port); $sock->set_login($this->username, $this->password); $sock->set_method('POST'); $sock->query('/CMD_API_DOMAIN', array( 'delete' => 1, 'select0' => $domain, 'confirmed' => 1, )); $result = $sock->fetch_body(); return $result; } }
[+]
..
[+]
api-php-lib
[-] hosting_manager_directadmin.php
[edit]
[-] hosting_manager_cpanel.php
[edit]
[-] hosting_manager_cpanel_addondomain.php
[edit]
[-] hosting_manager_plesk.php
[edit]
[+]
httpsocket
[-] hosting_manager_base.php
[edit]
[+]
xmlapi-php