roundcubemail/plugins/password/drivers/plesk.php
function init($host, $port, $path, $user, $pass)
    {
        $headers = array(
            sprintf("HTTP_AUTH_LOGIN: %s", $user),
            sprintf("HTTP_AUTH_PASSWD: %s", $pass),
            "Content-Type: text/xml"
        );

        $url        = sprintf("https://%s:%s/%s", $host, $port, $path);
        $this->curl = curl_init();

        curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT , 5);
        curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST , 0);
        curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER , false);
        curl_setopt($this->curl, CURLOPT_HTTPHEADER     , $headers);
        curl_setopt($this->curl, CURLOPT_URL            , $url);
    }
function init($host, $port, $path, $user, $pass)
    {
        $headers = array(
            sprintf("HTTP_AUTH_LOGIN: %s", $user),
            sprintf("HTTP_AUTH_PASSWD: %s", $pass),
            "Content-Type: text/xml"
        );

        $url        = sprintf("https://%s:%s/%s", $host, $port, $path);
        $this->curl = curl_init();

        curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT , 5);
        curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST , 0);
        curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER , false);
        curl_setopt($this->curl, CURLOPT_HTTPHEADER     , $headers);
        curl_setopt($this->curl, CURLOPT_URL            , $url);
    }
function init ( $ host , $ port , $ path , $ user , $ pass ) { $ headers = array ( sprintf ( "HTTP_AUTH_LOGIN: %s" , $ user ) , sprintf ( "HTTP_AUTH_PASSWD: %s" , $ pass ) , "Content-Type: text/xml" ) ; $ url = sprintf ( "https://%s:%s/%s" , $ host , $ port , $ path ) ; $ this -> curl = curl_init ( ) ; curl_setopt ( $ this -> curl , CURLOPT_CONNECTTIMEOUT , 5 ) ; curl_setopt ( $ this -> curl , CURLOPT_SSL_VERIFYHOST , 0 ) ; curl_setopt ( $ this -> curl , CURLOPT_SSL_VERIFYPEER , false ) ; curl_setopt ( $ this -> curl , CURLOPT_HTTPHEADER , $ headers ) ; curl_setopt ( $ this -> curl , CURLOPT_URL , $ url ) ; }
init plesk-rpc via curl

@param string $host plesk host
@param string $port plesk rpc port
@param string $path plesk rpc path
@param string $user plesk user
@param string $user plesk password
@returns void
init plesk - rpc via curl