This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Check for domain availability only in ISPConfig #24
Comments
Unfortunately there is no proper way to do a REST API call and request all domain being used by the websites/clients. Only option is to receive all available sites, based on the given sys_userid and sys_usergroup |
Is there a way to loop through all users by ID and get each user's group's?
And run that function against the returned values? If so, I'm sure it can
all be done in the same SOAP connection before close.
…--
Collin Machine
- Machine IT Services Founder and CEO
On Fri, Oct 25, 2019, 8:47 AM ole ***@***.***> wrote:
Unfortunately there is no proper way to do a REST API call and request all
domain being used by the websites/clients.
Only option is to receive all available sites, based on the given
sys_userid and sys_usergroup
See:
https://git.ispconfig.org/ispconfig/ispconfig3/blob/master/interface/lib/classes/remote.d/sites.inc.php#L831
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24?email_source=notifications&email_token=AD7WLRJVQ4U4JZPAGEIX4F3QQLTHZA5CNFSM4JEV3KDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECIHX6Q#issuecomment-546339834>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7WLRP3H2FXOWFUFQ7JEDTQQLTHZANCNFSM4JEV3KDA>
.
|
I am currently working on it... Almost done but being also busy with other stuff unfortunately |
ole1986
pushed a commit
that referenced
this issue
Oct 26, 2019
BONUS: Once then wp-ispconfig3 plugin is enabled you can access the domain check using ajax request (E.g. jQuery)
|
Nice! That'll help a lot for field validation before form submission!
…--
Collin Machine
- Machine IT Services Founder and CEO
On Sat, Oct 26, 2019, 9:18 AM ole ***@***.***> wrote:
BONUS:
Once then wp-ispconfig3 plugin is enabled you can access the domain check
using ajax request (E.g. jQuery)
var domain = 'yourdomain.net';
$.post(ajaxurl, { action: 'ispconfig_whois', 'domain': domain }, null, 'json').done(function(resp){
if (resp.class !== 'ispconfig-msg-error') {
// is free
} else {
// is reserved
}
});
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#24?email_source=notifications&email_token=AD7WLROAQRF3S65SRAU7P5TQQQ7R3A5CNFSM4JEV3KDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKHXCI#issuecomment-546601865>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD7WLRNWHURNDGPF47KPDZ3QQQ7R3ANCNFSM4JEV3KDA>
.
|
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently wp-ispconfig3 uses
whois
to check for avaialble domains It was requested to only check the domain against ISPConfig (through REST API).Therefore I will provide a new option soon
Pingback: ole1986/wc-invoice-pdf#5
The text was updated successfully, but these errors were encountered: