View Single Post
  #2  
Old 2nd May 2011, 22:02
otacon otacon is offline
Senior Member
 
Join Date: Sep 2010
Posts: 109
Thanks: 5
Thanked 5 Times in 5 Posts
Default

ok I found out how to do this.

PHP Code:
$params = array( 'server_id'            => '1',
    
'parent_domain_id'    => '55',
    
'username'            => 'test',
    
'password'            => 'password',
    
'quota_size'        => '-1',
    
'active'            => 'y',
    
    
'uid'                => 'web52',
    
'gid'                => 'client0',
    
'dir'                => '/var/www/clients/client0/web52',
    
'quota_files'        => '100',
    
'ul_ratio'            => '-1',
    
'dl_ratio'            => '200',
    
'ul_bandwidth'        => '-1',
    
'dl_bandwidth'        => '100',);

$domain_id $client->sites_ftp_user_add($session_id$client_id$params); 
the above works.

and I found the last line in remoting.inc.php.
__________________
Debian 7.4 Server:
ISPConfig Version: 3.0.5.3

Please visit my Mini-howto, "How To Create Remote API Scripts For ISPConfig 3"
Reply With Quote