#1  
Old 1st May 2013, 23:32
tio289 tio289 is offline
Member
 
Join Date: Mar 2009
Posts: 70
Thanks: 2
Thanked 14 Times in 9 Posts
 
Default Remoting API

Hello, there is client_get_sites_by_user function, but it selects only standard vhosts, not subdomain vhost. I edit SQL query to select subdomainvhost too.

Code:
3039 - $sql ="SELECT domain, domain_id, document_root, active FROM web_domain WHERE ( (sys_userid = $sys_userid  AND sys_perm_user LIKE '%r%') OR (sys_groupid IN ($group_list) AND sys_perm_group LIKE '%r%') OR  sys_perm_other LIKE '%r%') AND type = 'vhost'";
3039 + $sql ="SELECT domain, domain_id, document_root, active FROM web_domain WHERE ( (sys_userid = $sys_userid  AND sys_perm_user LIKE '%r%') OR (sys_groupid IN ($group_list) AND sys_perm_group LIKE '%r%') OR  sys_perm_other LIKE '%r%') AND (type = 'vhost' OR type='vhostsubdomain')";
Would You integrate this change in next release? Or You add separate function to select subdomainvhost? Or add additional parameter which define type?

Thanks.
__________________
Independent Senior Webdeveloper
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A terrible thing happened with remoting client api. key General 3 20th January 2013 11:37
Remoting API problems aneeshnl General 3 3rd December 2012 09:14
Remoting API Documentation joecoder Developers' Forum 8 3rd December 2011 10:28
Retrieving data from remoting API without IDs edispah Developers' Forum 3 9th November 2011 15:36
About Remoting Framework API mark0168 General 1 28th March 2008 14:08


All times are GMT +2. The time now is 04:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.