heavenpaster.blogg.se

Cpanel api
Cpanel api




cpanel api

* Returns General account information or General server information. Preg_match_all('/HTTP->getData('mime/redirect.html'), $redirectList) Returns an empty array if no redirects exist. Returns a numerically-indexed array on success. * These may be permanent or temporary redirects (status codes 301 and 302). $domains = explode('', $this->HTTP->getData('subdomain/index.html')) Returns an empty array if no subdomains exist. * Returns a numerically-indexed array on success. $data = explode('Remove Addon', $this->HTTP->getData('addon/index.html')) Returns an empty array if no addon domains exist. * Returns a numerically-indexed array of comma-delimited values on success. Preg_match_all('/HTTP->getData('park/index.html'), $domainList) Returns an empty array if no domains are parked. Preg_match_all('/passwdftp.html\?acct=(*)/', $this->HTTP->getData('ftp/accounts.html'), $accountList) This function does not include accounts listed as "Main Account". * Returns a numerically-indexed array on success or false on failure. Preg_match_all('/deldb.html\?db=(*)/', $this->HTTP->getData('sql/index.html'), $databaseList) Returns an empty array if no databases exist. Returns an empty array if no users exist. Preg_match_all('/HTTP->getData('mail/addpop2.html'), $domainList) $response = $this->HTTP->getData('contact/saveemail.html', $data) * Returns the contact email address listed in cPanel. If(strpos($response, 'has been') & !strpos($response, 'could not')) $response = $this->HTTP->getData('passwd/changepass.html', $data) * The cPanel object is no longer usable after changing the password. * Returns true on success or false on failure.

cpanel api

$this->HTTP = new HTTP($host, $username, $password, $port, $ssl, $theme) * string $theme cPanel theme, (forward compatibility- 'x' theme currently required)įunction cPanel($host, $username, $password, $port = 2082, $ssl = false, $theme = 'x') * bool $ssl False for http (default), true for SSL (requires OpenSSL) * int $port cPanel port, default to 2082. * string $host cPanel host without leading * string $username cPanel username






Cpanel api