|
|||
|
Automatic Accounts
I'm thinking about doing this via a perl module.
IE use Cpanel::Accounting; $acctmkr = new Cpanel::Accounting; $acctmkr-&host = 'cpanelmachine.com'; $acctmkr-&user = 'reseller/root'; $acctmkr-&accesshash = 'md5hash here'; ($status,$result) = $acctmkr-&createacct('domain.com','user','pass','plan') ; |
|
|||
|
This is somthing i would not use. Maybe somthing like this could be a plugin or somthing. Like mod_gzip and JSP. If you want it you can download the Process Signups bin and install it. Then it could add a process signup's section to WHM. (Like JSP does)
__________________
Shaun Reitan www.NDCHost.com www.cPlicensing.net <- External cPanel Licensing www.ProVPS.com <-- Xen Virtual Private Servers w/ cPanel |
|
|||
|
Would this be for automatically signing up reseller accounts? That would be very useful to us. So would integration with Authorizenet. I'm not as interested in a sign up form for single domain accounts, but maybe that's just me......
__________________
|
|
|||
|
signup.cgi
I was never able to get the signup.cgi to work. I guess I did not take that much time. I think most people would like to see documentation on this part of the &existing& system. I would love to use both options. I would implement the signup.cgi tonight if I knew how I could code to it. I need to know what the standard is for coding to it. I am sure I could figure out a hack but I would not want a new release to break my signup process.
cheers; wade |
|
|||
|
[quote:c906ba3934][i:c906ba3934]Originally posted by bert[/i:c906ba3934]
I agree with shaun, I rather see it as a plugin. I do not like total automation for creating accounts. I rather examine the order first. Nowdays with these spammer crooks and everything else, fully automated account creation is not the way to go. Just my 2 cents.[/quote:c906ba3934] Its a perl module for inclusion in your [b:c906ba3934]own[/b:c906ba3934] signup script .. there will be a php one as well .. You are by no means forced to use it. |
|
|||
|
ok, sounds good. So does that mean signup.cgi and the process signup's in WHM are going to be removed or that stuff still a project to be finished?
__________________
Shaun Reitan www.NDCHost.com www.cPlicensing.net <- External cPanel Licensing www.ProVPS.com <-- Xen Virtual Private Servers w/ cPanel |
|
|||
|
I'm looking for beta testers for this one.. Here is what works so far.. the only thing I really see anybody else needing it listaccounts ... I'm getting ready to do a php version of this soon, so please let me know if you are going to need anything besides the functions below and listaccounts
#!/usr/bin/perl BEGIN { push (@INC,&/usr/local/cpanel& ;} use Cpanel::Accounting; my($whm) = Cpanel::Accounting-&new; $whm-&{host} = &localhost&; $whm-&{user} = &testuser&; $whm-&{accesshash} = 'hash from whm'; $response = $whm-&killacct(&someuser& ;print $response; my %PKGS = $whm-&listpkgs(); foreach $package (sort keys %PKGS) { @PKCTS = @{$PKGS{$package}}; print &$package @PKCTS\n&; } #domain,user,pass,package $response = $whm-&createacct(&cptest.net&,&cpred&am p;,&rtest&,&mypkg& ;print $response; $response = $whm-&suspend('someuser'); print $response . &\n&; $response = $whm-&unsuspend('someuser'); print $response . &\n&; |
|
|||
|
remote server support
I would really like to be able to create accounts on remote servers. I see that you have in your object the variable host. In the future am I going to be able to specify the host name that I would like the account created on?
Could this be written to the same port that is listening for account transfers? An idea would be to setup an XML daemon that would listen, parse, execute account creations? Then we could use any programming language that we want to create the front end. I know that you are creating this in php but if we went the xml route then php, asp, jsp, perl, etc would all work. For local host we could just use loop back to the same port. People could firewall the port and setup trusts for there remote servers. Let me know your thoughts. I would be more than willing to help you on this project. Wade &luv& Arnold -- that's for you mama |
|
|||
|
Will it create resource based reseller accounts as well?
__________________
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|