View Single Post
Old 27th March 2011, 03:11
xaver xaver is offline
Join Date: May 2009
Posts: 77
Thanks: 10
Thanked 25 Times in 14 Posts

2 Problems with API
-> addclient password dose not work (updateClient work)
Problem is
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
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']));
-> My own function in 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)
$this->checkPerm($session_id'sites_web_domain_get')) {
$this->server->fault('permission_denied''You do not have the permissions to access this function.');
$table_info $app->db->queryOneRecord("SHOW TABLE STATUS LIKE 'web_domain'");

Last edited by xaver; 27th March 2011 at 16:14.
Reply With Quote