2 Problems with API
-> addclient password dose not work (updateClient work)
Problem is remoting_lib.inc.php
PHP Code:
Line 695 $password = crypt(stripslashes($password),$salt);
This is normal md5 pw and if you comment out this line it work
-> Delete a User Domain stays. Not sites i mean module Domain
-> updateclient template_master not included
Lines
PHP Code:
if(isset($params['template_master']) and $params['template_master'] > 0)
{
$template=$app->db->queryOneRecord("SELECT * FROM client_template WHERE template_id=".intval($params['template_master']));
$params=array_merge($params,$template);
}
-> My own function in remoting.inc.php for getting next webID without SQL in my API.
PHP Code:
/* Get next AutoIncrement for sites_web_domain_add */
public function sites_web_domain_nextID($session_id)
{
global $app;
if(!$this->checkPerm($session_id, 'sites_web_domain_get')) {
$this->server->fault('permission_denied', 'You do not have the permissions to access this function.');
return false;
}
$table_info = $app->db->queryOneRecord("SHOW TABLE STATUS LIKE 'web_domain'");
return $table_info["Auto_increment"];
}