View Single Post
  #1  
Old 26th February 2010, 19:02
detot detot is offline
Junior Member
 
Join Date: Feb 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default remote framework

Im looking for remote framework using scripts for ISPconfig.
I have ISPConfig 3.
But in core there are only mail_ functions.
Im understanding, that its not hard to write new function, but if you have examples for ISPconfig3, Ill be very happy... =)))

And another one problem:
Im trying to add mail_domain,
After running this function from remote script, i see domain, but without any name, client_id and activity.

That im doing not right?

$params = array ( 'sid' => $session_id,
'module' => 'mail',
'function' => 'mail_domain',
'params' => array ( "domain" => 'test1.com',
"active" => 'y',
"server_id" => '1'
));
$domain_id = $soap_client->call('mail_domain_add', $params);
if($err = $soap_client->getError()){
die("Error: ".$err);
}else{
print_r($domain_id);
}
Reply With Quote
Sponsored Links