whm_xml 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +88 -0
- data/Rakefile +11 -0
- data/lib/parameters.rb +67 -0
- data/lib/whm.rb +20 -0
- data/lib/whm/account.rb +64 -0
- data/lib/whm/exceptions.rb +4 -0
- data/lib/whm/package.rb +17 -0
- data/lib/whm/server.rb +372 -0
- data/spec/account_spec.rb +111 -0
- data/spec/fixtures/accountsummary.xml +22 -0
- data/spec/fixtures/changepackage.xml +27 -0
- data/spec/fixtures/createacct.xml +60 -0
- data/spec/fixtures/error.xml +10 -0
- data/spec/fixtures/error2.xml +4 -0
- data/spec/fixtures/generatessl.xml +84 -0
- data/spec/fixtures/gethostname.xml +5 -0
- data/spec/fixtures/limitbw.xml +16 -0
- data/spec/fixtures/listaccts.xml +54 -0
- data/spec/fixtures/listaccts_single.xml +20 -0
- data/spec/fixtures/listpkgs.xml +61 -0
- data/spec/fixtures/modifyacct.xml +40 -0
- data/spec/fixtures/passwd.xml +33 -0
- data/spec/fixtures/removeacct.xml +21 -0
- data/spec/fixtures/suspendacct.xml +26 -0
- data/spec/fixtures/unsuspendacct.xml +20 -0
- data/spec/fixtures/version.xml +5 -0
- data/spec/package_spec.rb +83 -0
- data/spec/server_spec.rb +195 -0
- data/spec/spec_helper.rb +26 -0
- metadata +163 -0
@@ -0,0 +1,111 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
|
+
require 'lib/whm'
|
3
|
+
require 'pp'
|
4
|
+
|
5
|
+
describe "A Whm Account that doesn't exist" do
|
6
|
+
|
7
|
+
before do
|
8
|
+
@server = Whm::Server.new(
|
9
|
+
:username => "username",
|
10
|
+
:password => "password",
|
11
|
+
:host => "dedicated.server.com"
|
12
|
+
)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should throw an exception when an account doesn't exist" do
|
16
|
+
data = open(File.dirname(__FILE__) + '/fixtures/error2.xml').read
|
17
|
+
|
18
|
+
@server.expects(:get_xml).with(:url => "accountsummary", :params => {:user=>"doesntexist"}).returns(XmlSimple.xml_in(data, { 'ForceArray' => false }))
|
19
|
+
lambda { @server.account("doesntexist")}.should raise_error( Whm::CommandFailedError)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "Whm Accounts" do
|
24
|
+
before do
|
25
|
+
@server = Whm::Server.new(
|
26
|
+
:username => "username",
|
27
|
+
:password => "password",
|
28
|
+
:host => "dedicated.server.com"
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should find all accounts" do
|
33
|
+
data = open(File.dirname(__FILE__) + '/fixtures/listaccts.xml').read
|
34
|
+
@server.expects(:get_xml).returns(XmlSimple.xml_in(data, { 'ForceArray' => false }))
|
35
|
+
|
36
|
+
@server.accounts.length.should == 3
|
37
|
+
end
|
38
|
+
|
39
|
+
it "should find all accounts when there is only one account" do
|
40
|
+
data = open(File.dirname(__FILE__) + '/fixtures/listaccts_single.xml').read
|
41
|
+
@server.expects(:get_xml).returns(XmlSimple.xml_in(data, { 'ForceArray' => false }))
|
42
|
+
@server.accounts.length.should == 1
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should find an account by name" do
|
46
|
+
data = open(File.dirname(__FILE__) + '/fixtures/accountsummary.xml').read
|
47
|
+
@server.expects(:get_xml).with(:url => "accountsummary",:params => {:user=>"magic"}).returns(XmlSimple.xml_in(data, { 'ForceArray' => false }))
|
48
|
+
@server.account("magic").should_not be_nil
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe "A Whm Account" do
|
53
|
+
|
54
|
+
before do
|
55
|
+
@server = Whm::Server.new(
|
56
|
+
:username => "username",
|
57
|
+
:password => "password",
|
58
|
+
:host => "dedicated.server.com"
|
59
|
+
)
|
60
|
+
data = open(File.dirname(__FILE__) + '/fixtures/accountsummary.xml').read
|
61
|
+
@server.expects(:get_xml).with(:url => "accountsummary", :params => {:user=>"magic"}).returns(XmlSimple.xml_in(data,{ 'ForceArray' => false }))
|
62
|
+
@account = @server.account("magic")
|
63
|
+
end
|
64
|
+
|
65
|
+
|
66
|
+
it "should load account attributes" do
|
67
|
+
@account.attributes['user'].should == "magic"
|
68
|
+
@account.attributes['domain'].should == "magic.example.com"
|
69
|
+
end
|
70
|
+
|
71
|
+
it "should have a name" do
|
72
|
+
@account.name.should == "magic"
|
73
|
+
@account.user.should == "magic"
|
74
|
+
end
|
75
|
+
|
76
|
+
it "should change the password" do
|
77
|
+
@server.expects(:change_account_password).returns("new_password")
|
78
|
+
@account.password=("new_password").should == "new_password"
|
79
|
+
end
|
80
|
+
|
81
|
+
it "should suspend an account" do
|
82
|
+
@server.expects(:suspend_account).returns("ok")
|
83
|
+
@account.suspend!.should == "ok"
|
84
|
+
end
|
85
|
+
|
86
|
+
it "should unsuspend an account" do
|
87
|
+
@server.expects(:unsuspend_account).returns("ok")
|
88
|
+
@account.unsuspend!.should == "ok"
|
89
|
+
end
|
90
|
+
|
91
|
+
it "should terminate an account" do
|
92
|
+
@server.expects(:terminate_account).returns("ok")
|
93
|
+
@account.terminate!.should == "ok"
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should change the package on an account" do
|
97
|
+
@server.expects(:change_package).returns("ok")
|
98
|
+
|
99
|
+
@account.package=("new_package").should == "new_package"
|
100
|
+
end
|
101
|
+
|
102
|
+
it "should read an attribute" do
|
103
|
+
@account.domain.should == 'magic.example.com'
|
104
|
+
end
|
105
|
+
|
106
|
+
it "should write an attribute" do
|
107
|
+
@account.username = 'newname'
|
108
|
+
@account.username.should == 'newname'
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<accountsummary>
|
2
|
+
<acct>
|
3
|
+
<disklimit>100M</disklimit>
|
4
|
+
<diskused>2M</diskused>
|
5
|
+
<domain>magic.example.com</domain>
|
6
|
+
<email>magic@example.com</email>
|
7
|
+
<ip>1.2.3.4</ip>
|
8
|
+
<owner>owner</owner>
|
9
|
+
<partition>home</partition>
|
10
|
+
<plan>plan</plan>
|
11
|
+
<startdate>10 Feb 10 10:10</startdate>
|
12
|
+
<suspended>0</suspended>
|
13
|
+
<suspendreason>not suspended</suspendreason>
|
14
|
+
<theme>x3</theme>
|
15
|
+
<unix_startdate>1234567890</unix_startdate>
|
16
|
+
<user>magic</user>
|
17
|
+
</acct>
|
18
|
+
<status>1</status>
|
19
|
+
<statusmsg>Ok</statusmsg>
|
20
|
+
</accountsummary>
|
21
|
+
|
22
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<changepackage>
|
2
|
+
<result>
|
3
|
+
<rawout><pre>
|
4
|
+
Changing bwlimit to 30000 Meg
|
5
|
+
Changing Feature List to default
|
6
|
+
Changing max pop accounts from unlimited to unlimited
|
7
|
+
Changing max sql accounts from unlimited to unlimited
|
8
|
+
Changing max ftp accounts from unlimited to unlimited
|
9
|
+
Changing max lists from unlimited to unlimited
|
10
|
+
Changing max sub domains from unlimited to unlimited
|
11
|
+
Changing language from english to english
|
12
|
+
Changing max parked domains from unlimited to unlimited
|
13
|
+
Changing max addon domains from unlimited to unlimited
|
14
|
+
Removing shell access
|
15
|
+
Shell already set to /usr/local/cpanel/bin/noshell
|
16
|
+
Changing cpanel module from x3 to x3
|
17
|
+
Changing plan from old_plan to new_plan
|
18
|
+
Resetting QUOTA....
|
19
|
+
Using Quota v3 Support
|
20
|
+
Bandwidth limit (31457280000) is lower than (unlimited) (all limits removed)<br /><blockquote><div style='float:left;'>Enabling...</div><div style='float:left;'>...user.example.com...</div><div style='float:left;'>Done</div></blockquote><br /><div class='clearit' style='clear:both; width:80%;'>&nbsp;</div><span class="b2">Warning, this will not cause ip-less accounts to become ip access, or the reverse.</span>
|
21
|
+
</rawout>
|
22
|
+
<status>1</status>
|
23
|
+
<statusmsg>Account Upgrade/Downgrade Complete for user</statusmsg>
|
24
|
+
</result>
|
25
|
+
</changepackage>
|
26
|
+
|
27
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<createacct>
|
2
|
+
<result>
|
3
|
+
<options>
|
4
|
+
<ip>0.0.0.0</ip>
|
5
|
+
<nameserver>ns100.example.com</nameserver>
|
6
|
+
<nameserver2>ns102.example.com</nameserver2>
|
7
|
+
<nameserver3></nameserver3>
|
8
|
+
<nameserver4></nameserver4>
|
9
|
+
<nameservera></nameservera>
|
10
|
+
<nameservera2></nameservera2>
|
11
|
+
<nameservera3></nameservera3>
|
12
|
+
<nameservera4></nameservera4>
|
13
|
+
<nameserverentry></nameserverentry>
|
14
|
+
<nameserverentry2></nameserverentry2>
|
15
|
+
<nameserverentry3></nameserverentry3>
|
16
|
+
<nameserverentry4></nameserverentry4>
|
17
|
+
<package>default</package>
|
18
|
+
</options>
|
19
|
+
<rawout>Checking input data...System has 0 free ips.
|
20
|
+
...DoneWWWAcct 12.1.0 (c) 1997-2008 cPanel, Inc....
|
21
|
+
|
22
|
+
Dns Zone check is enabled.
|
23
|
+
+===================================+
|
24
|
+
| New Account Info |
|
25
|
+
+===================================+
|
26
|
+
| Domain: example.com
|
27
|
+
| Ip: 207.210.64.50 (n)
|
28
|
+
| HasCgi: y
|
29
|
+
| UserName: user
|
30
|
+
| PassWord: password
|
31
|
+
| CpanelMod: x3
|
32
|
+
| HomeRoot: /home
|
33
|
+
| Quota: 0 Meg
|
34
|
+
| NameServer1: ns100.example.com
|
35
|
+
| NameServer2: ns102.example.com
|
36
|
+
| NameServer3:
|
37
|
+
| NameServer4:
|
38
|
+
| Contact Email:
|
39
|
+
| Package: default
|
40
|
+
| Feature List: default
|
41
|
+
| Language: english
|
42
|
+
+===================================+
|
43
|
+
...DoneRunning pre creation script (/scripts/prewwwacct)......DoneAdding User...Removing Shell Access (n)
|
44
|
+
...DoneCopying skel files from /home/swcom13/cpanel3-skel/ to /home/user/......DoneAdding Entries to httpd.conf......DoneSetting up Mail & Local Domains...localdomains...valiases ...vdomainaliases...vfilters......DoneConfiguring DNS......DoneRestarting apache......DoneChanging password for user
|
45
|
+
Password for user has been changed
|
46
|
+
Updating Authentication Databases...Updating ftp passwords for user
|
47
|
+
Ftp password files updated.
|
48
|
+
Ftp vhost passwords synced
|
49
|
+
Unable to find pgpass file.
|
50
|
+
Unable to find pgpass file.
|
51
|
+
...DoneVerifying MX Records and Setting up Databases......DoneSetting up Proxy Subdomains......DoneBind reconfiguring on r15 using rndc
|
52
|
+
Sending Account Information......DoneSystem has 0 free ips.
|
53
|
+
Running post creation scripts (/scripts/legacypostwwwacct, /scripts/postwwwacct, /scripts/postwwwacctuser)......Donewwwacct creation finished
|
54
|
+
Setting up Domain Pointers......DoneSetting Reseller Privs......DoneAccount Creation Complete!!!...Account Creation Ok...Done</rawout>
|
55
|
+
<status>1</status>
|
56
|
+
<statusmsg>Account Creation Ok</statusmsg>
|
57
|
+
</result>
|
58
|
+
</createacct>
|
59
|
+
|
60
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<createacct>
|
2
|
+
<result>
|
3
|
+
<options></options>
|
4
|
+
<rawout></rawout>
|
5
|
+
<status>0</status>
|
6
|
+
<statusmsg>Sorry, something when way way wrong. </statusmsg>
|
7
|
+
</result>
|
8
|
+
</createacct>
|
9
|
+
|
10
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<generatessl>
|
2
|
+
<results>
|
3
|
+
<key>-----BEGIN RSA PRIVATE KEY-----
|
4
|
+
MIICXQIBAAKBgQCatM3uHDKtCX6+6INvRGGHsOBYcrnNTKj95a/cVDNV2idDXlK0
|
5
|
+
A8oFsPW0Ur3GQVItTh1Ufcf6bOL0V/Aqjuwbw+yVg/eOGurh34+rv75DoIqLGeh0
|
6
|
+
k0BGEAAyxU2U6D2S34ccH7Zh6nY48OZB/1LatSB9/96EYCxxaqNVunKQzwIDAQAB
|
7
|
+
AoGAbXVZcowu6rEaJTbbr8EBBIGH6eyaO4Bu3N1DFS/Z9ndYalj1SPqZWHeBEKmu
|
8
|
+
LfSPkRCAvgQUlsGtvlXtzh67PDwynP8kug4U7W3+k+BnrdWmKWVqHVfdBXNzDttc
|
9
|
+
mB0FBp8uHBT+Y0bjf7jKxqrMdwkqdsxcoMK4az2JYGgtH/ECQQDLGUUOlKFG7ux0
|
10
|
+
AA0FONKbvzIuf/Rdf9rKqj1LheD1y7kZ7W8SeBxnMa4a9nD21R6kK3L1Dtd7HW7K
|
11
|
+
pZpkX49pAkEAwwCzZoUkinN3qMnAKG3J2qzYDWc85LU4iVK+d+aGDb61ouFyVgi7
|
12
|
+
zBLP21P2swVaBxEDKjIDdJt6v+YRw2nPdwJBAIFBgtaltwJ62ld1FNRG9pqSkzBO
|
13
|
+
1MmQrkEfGUVwXdxwnEwo9PCPKpxuXLziLMCaoBahZFcb6/15nOIxhNHuk0kCQF2v
|
14
|
+
coFoqhuSSgTfmOBTjszuiYY2+TxwDE99X2C/cdwcqastYP8QhxkOWKpo9ncftRb8
|
15
|
+
B2c4TAyzvg9/+zzFExUCQQC6RUObtS5OjQiB8TJZgec6BIilhZQDvOklGK7VSwDq
|
16
|
+
Bvmvwm0Tnnvy+vEeSZa7RKzhrfck7zVfxe0R6EhQl5Wv
|
17
|
+
-----END RSA PRIVATE KEY-----
|
18
|
+
</key>
|
19
|
+
<args>
|
20
|
+
<city>Houston</city>
|
21
|
+
<co>Domain LLC</co>
|
22
|
+
<cod>Web</cod>
|
23
|
+
<country>US</country>
|
24
|
+
<email>test@domain.com</email>
|
25
|
+
<host>domain.com</host>
|
26
|
+
<pass>password</pass>
|
27
|
+
<state>TX</state>
|
28
|
+
<xemail>test@domain.com</xemail>
|
29
|
+
</args>
|
30
|
+
<cert>-----BEGIN CERTIFICATE-----
|
31
|
+
MIIDZTCCAs6gAwIBAgIBADANBgkqhkiG9w0BAQQFADCBhDELMAkGA1UEBhMCVVMx
|
32
|
+
CzAJBgNVBAgTAlRYMRAwDgYDVQQHEwdIb3VzdG9uMRMwEQYDVQQKEwpEb21haW4g
|
33
|
+
TExDMQwwCgYDVQQLEwNXZWIxEzARBgNVBAMTCmRvbWFpbi5jb20xHjAcBgkqhkiG
|
34
|
+
9w0BCQEWD3Rlc3RAZG9tYWluLmNvbTAeFw0wODEwMzAxNTIxNTBaFw0wOTEwMzAx
|
35
|
+
NTIxNTBaMIGEMQswCQYDVQQGEwJVUzELMAkGA1UECBMCVFgxEDAOBgNVBAcTB0hv
|
36
|
+
dXN0b24xEzARBgNVBAoTCkRvbWFpbiBMTEMxDDAKBgNVBAsTA1dlYjETMBEGA1UE
|
37
|
+
AxMKZG9tYWluLmNvbTEeMBwGCSqGSIb3DQEJARYPdGVzdEBkb21haW4uY29tMIGf
|
38
|
+
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCatM3uHDKtCX6+6INvRGGHsOBYcrnN
|
39
|
+
TKj95a/cVDNV2idDXlK0A8oFsPW0Ur3GQVItTh1Ufcf6bOL0V/Aqjuwbw+yVg/eO
|
40
|
+
Gurh34+rv75DoIqLGeh0k0BGEAAyxU2U6D2S34ccH7Zh6nY48OZB/1LatSB9/96E
|
41
|
+
YCxxaqNVunKQzwIDAQABo4HkMIHhMB0GA1UdDgQWBBQ1dRCHP34G2kUn3gHIruzg
|
42
|
+
rMJQAzCBsQYDVR0jBIGpMIGmgBQ1dRCHP34G2kUn3gHIruzgrMJQA6GBiqSBhzCB
|
43
|
+
hDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlRYMRAwDgYDVQQHEwdIb3VzdG9uMRMw
|
44
|
+
EQYDVQQKEwpEb21haW4gTExDMQwwCgYDVQQLEwNXZWIxEzARBgNVBAMTCmRvbWFp
|
45
|
+
bi5jb20xHjAcBgkqhkiG9w0BCQEWD3Rlc3RAZG9tYWluLmNvbYIBADAMBgNVHRME
|
46
|
+
BTADAQH/MA0GCSqGSIb3DQEBBAUAA4GBAIqIw7/LKPneNeeE3lD0qZGn68sh5CE+
|
47
|
+
xqDWX+aJ5clalYUGGXDV4tjH9EYDn+YigtPPX9ti1vv0sBye6IjSgzlJWmqiLJuw
|
48
|
+
5Rl+gmRiCd131ZGUgX6s4Mk4XX4nKpUmHBlBiDUxt8kWn5PNwTS1IjOCPXQWiK9W
|
49
|
+
CDs344D5PDIe
|
50
|
+
-----END CERTIFICATE-----
|
51
|
+
</cert>
|
52
|
+
<certfile>/usr/share/ssl/certs/domain.com.crt</certfile>
|
53
|
+
<csr>-----BEGIN CERTIFICATE REQUEST-----
|
54
|
+
MIIB3jCCAUcCAQAwgYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJUWDEQMA4GA1UE
|
55
|
+
BxMHSG91c3RvbjETMBEGA1UEChMKRG9tYWluIExMQzEMMAoGA1UECxMDV2ViMRMw
|
56
|
+
EQYDVQQDEwpkb21haW4uY29tMR4wHAYJKoZIhvcNAQkBFg90ZXN0QGRvbWFpbi5j
|
57
|
+
b20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJq0ze4cMq0Jfr7og29EYYew
|
58
|
+
4Fhyuc1MqP3lr9xUM1XaJ0NeUrQDygWw9bRSvcZBUi1OHVR9x/ps4vRX8CqO7BvD
|
59
|
+
7JWD944a6uHfj6u/vkOgiosZ6HSTQEYQADLFTZToPZLfhxwftmHqdjjw5kH/Utq1
|
60
|
+
IH3/3oRgLHFqo1W6cpDPAgMBAAGgGTAXBgkqhkiG9w0BCQcxChMIcGFzc3dvcmQw
|
61
|
+
DQYJKoZIhvcNAQEEBQADgYEAUa2mBo4HzGJQ+v9pJX53A5rudj6a22ACoQw3yIYE
|
62
|
+
Cr9JVYxlmwdzn/XIUeKBVau8CVb/OaHH7i4rWt1eQNA8auiBfEqkp9fXPMnQWy2a
|
63
|
+
RoCieD63pPN+P/9PUQgM2wZdjixVQYLBAdPUnclk0HIJjD47nSxEI+7GtRq/Z4yI
|
64
|
+
XBk=
|
65
|
+
-----END CERTIFICATE REQUEST-----
|
66
|
+
</csr>
|
67
|
+
<csrfile>/usr/share/ssl/certs/domain.com.csr</csrfile>
|
68
|
+
<email_message>CSR email sent to test@domain.com</email_message>
|
69
|
+
<email_status>1</email_status>
|
70
|
+
<fglob>DUMMY</fglob>
|
71
|
+
<file_test>DUMMY</file_test>
|
72
|
+
<includes></includes>
|
73
|
+
<keyfile>/usr/share/ssl/private/domain.com.key</keyfile>
|
74
|
+
<message>Key, Certificate, and CSR generated OK</message>
|
75
|
+
<sender>admin</sender>
|
76
|
+
<sender_host>host.domain.com</sender_host>
|
77
|
+
<status>1</status>
|
78
|
+
<statusmsg>Key, Certificate, and CSR generated OK</statusmsg>
|
79
|
+
<uniq>DUMMY</uniq>
|
80
|
+
<wildcard_safe>DUMMY</wildcard_safe>
|
81
|
+
</results>
|
82
|
+
</generatessl>
|
83
|
+
|
84
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<limitbw>
|
2
|
+
<result>
|
3
|
+
<bwlimit>
|
4
|
+
<bwlimit>1048576</bwlimit>
|
5
|
+
<bwlimitenable>0</bwlimitenable>
|
6
|
+
<domains>domain.tld</domains>
|
7
|
+
<domains>domain2.tld</domains>
|
8
|
+
<humanbw_limit>1 MB</humanbw_limit>
|
9
|
+
<humanbw_used>none</humanbw_used>
|
10
|
+
<unlimited>0</unlimited>
|
11
|
+
</bwlimit>
|
12
|
+
<status>1</status>
|
13
|
+
<statusmsg>Bandwidth Limit for username set to 1</statusmsg>
|
14
|
+
</result>
|
15
|
+
</limitbw>
|
16
|
+
<!-- i copied this one from http://www.cpanel.net/plugins/xmlapi/limitbw.html -->
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<listaccts>
|
2
|
+
<acct>
|
3
|
+
<disklimit>100M</disklimit>
|
4
|
+
<diskused>50M</diskused>
|
5
|
+
<domain>customer1.com</domain>
|
6
|
+
<email>customer1@example.com</email>
|
7
|
+
<ip>2.2.2.2</ip>
|
8
|
+
<owner>owner</owner>
|
9
|
+
<partition>home</partition>
|
10
|
+
<plan>plan_one</plan>
|
11
|
+
<startdate>10 Jan 30 21:19</startdate>
|
12
|
+
<suspended>0</suspended>
|
13
|
+
<suspendreason>not suspended</suspendreason>
|
14
|
+
<theme>x3</theme>
|
15
|
+
<unix_startdate>1033026362</unix_startdate>
|
16
|
+
<user>customer1</user>
|
17
|
+
</acct>
|
18
|
+
<acct>
|
19
|
+
<disklimit>1000M</disklimit>
|
20
|
+
<diskused>45M</diskused>
|
21
|
+
<domain>customer2.com</domain>
|
22
|
+
<email>customer2@example.com</email>
|
23
|
+
<ip>255.255.255.255</ip>
|
24
|
+
<owner>owner</owner>
|
25
|
+
<partition>home</partition>
|
26
|
+
<plan>plan_two</plan>
|
27
|
+
<startdate>08 Feb 02 20:41</startdate>
|
28
|
+
<suspended>0</suspended>
|
29
|
+
<suspendreason>not suspended</suspendreason>
|
30
|
+
<theme>x3</theme>
|
31
|
+
<unix_startdate>1034060887</unix_startdate>
|
32
|
+
<user>customer2</user>
|
33
|
+
</acct>
|
34
|
+
<acct>
|
35
|
+
<disklimit>1000M</disklimit>
|
36
|
+
<diskused>0M</diskused>
|
37
|
+
<domain>badcustomer.com</domain>
|
38
|
+
<email>badcustomer@example.net</email>
|
39
|
+
<ip>1.2.3.4</ip>
|
40
|
+
<owner>owner</owner>
|
41
|
+
<partition>home</partition>
|
42
|
+
<plan>plan_three</plan>
|
43
|
+
<startdate>02 Feb 01 10:20</startdate>
|
44
|
+
<suspended>1</suspended>
|
45
|
+
<suspendreason>excessive use of magic fairy dust</suspendreason>
|
46
|
+
<theme>x3</theme>
|
47
|
+
<unix_startdate>1033850806</unix_startdate>
|
48
|
+
<user>badcustomer</user>
|
49
|
+
</acct>
|
50
|
+
<status>1</status>
|
51
|
+
<statusmsg>Ok</statusmsg>
|
52
|
+
</listaccts>
|
53
|
+
|
54
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<listaccts>
|
2
|
+
<acct>
|
3
|
+
<disklimit>100M</disklimit>
|
4
|
+
<diskused>50M</diskused>
|
5
|
+
<domain>customer1.com</domain>
|
6
|
+
<email>customer1@example.com</email>
|
7
|
+
<ip>2.2.2.2</ip>
|
8
|
+
<owner>owner</owner>
|
9
|
+
<partition>home</partition>
|
10
|
+
<plan>plan_one</plan>
|
11
|
+
<startdate>10 Jan 30 21:19</startdate>
|
12
|
+
<suspended>0</suspended>
|
13
|
+
<suspendreason>not suspended</suspendreason>
|
14
|
+
<theme>x3</theme>
|
15
|
+
<unix_startdate>1033026362</unix_startdate>
|
16
|
+
<user>customer1</user>
|
17
|
+
</acct>
|
18
|
+
<status>1</status>
|
19
|
+
<statusmsg>Ok</statusmsg>
|
20
|
+
</listaccts>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<listpkgs>
|
2
|
+
<package>
|
3
|
+
<name>plan_one</name>
|
4
|
+
<BWLIMIT>10</BWLIMIT>
|
5
|
+
<CGI>y</CGI>
|
6
|
+
<CPMOD>x3</CPMOD>
|
7
|
+
<FEATURELIST>default</FEATURELIST>
|
8
|
+
<FRONTPAGE>y</FRONTPAGE>
|
9
|
+
<HASSHELL>n</HASSHELL>
|
10
|
+
<IP>n</IP>
|
11
|
+
<LANG>english</LANG>
|
12
|
+
<MAXADDON>unlimited</MAXADDON>
|
13
|
+
<MAXFTP>unlimited</MAXFTP>
|
14
|
+
<MAXLST>unlimited</MAXLST>
|
15
|
+
<MAXPARK>unlimited</MAXPARK>
|
16
|
+
<MAXPOP>unlimited</MAXPOP>
|
17
|
+
<MAXSQL>unlimited</MAXSQL>
|
18
|
+
<MAXSUB>unlimited</MAXSUB>
|
19
|
+
<QUOTA>10</QUOTA>
|
20
|
+
</package>
|
21
|
+
<package>
|
22
|
+
<name>plan_two</name>
|
23
|
+
<BWLIMIT>20</BWLIMIT>
|
24
|
+
<CGI>y</CGI>
|
25
|
+
<CPMOD>x3</CPMOD>
|
26
|
+
<FEATURELIST>default</FEATURELIST>
|
27
|
+
<FRONTPAGE>y</FRONTPAGE>
|
28
|
+
<HASSHELL>n</HASSHELL>
|
29
|
+
<IP>n</IP>
|
30
|
+
<LANG>english</LANG>
|
31
|
+
<MAXADDON>unlimited</MAXADDON>
|
32
|
+
<MAXFTP>unlimited</MAXFTP>
|
33
|
+
<MAXLST>unlimited</MAXLST>
|
34
|
+
<MAXPARK>unlimited</MAXPARK>
|
35
|
+
<MAXPOP>unlimited</MAXPOP>
|
36
|
+
<MAXSQL>unlimited</MAXSQL>
|
37
|
+
<MAXSUB>unlimited</MAXSUB>
|
38
|
+
<QUOTA>20</QUOTA>
|
39
|
+
</package>
|
40
|
+
<package>
|
41
|
+
<name>plan_three</name>
|
42
|
+
<BWLIMIT>30</BWLIMIT>
|
43
|
+
<CGI>y</CGI>
|
44
|
+
<CPMOD>x3</CPMOD>
|
45
|
+
<FEATURELIST>default</FEATURELIST>
|
46
|
+
<FRONTPAGE>y</FRONTPAGE>
|
47
|
+
<HASSHELL>n</HASSHELL>
|
48
|
+
<IP>n</IP>
|
49
|
+
<LANG>english</LANG>
|
50
|
+
<MAXADDON>unlimited</MAXADDON>
|
51
|
+
<MAXFTP>unlimited</MAXFTP>
|
52
|
+
<MAXLST>unlimited</MAXLST>
|
53
|
+
<MAXPARK>unlimited</MAXPARK>
|
54
|
+
<MAXPOP>unlimited</MAXPOP>
|
55
|
+
<MAXSQL>unlimited</MAXSQL>
|
56
|
+
<MAXSUB>unlimited</MAXSUB>
|
57
|
+
<QUOTA>30</QUOTA>
|
58
|
+
</package>
|
59
|
+
</listpkgs>
|
60
|
+
|
61
|
+
<!-- Web Host Manager (c) cPanel, Inc. 2008 http://cpanel.net/ Unauthorized copying is prohibited. -->
|