1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\CpanelIntegrator; |
9: | |
10: | use Aurora\System\SettingsProperty; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | |
23: | |
24: | |
25: | class Settings extends \Aurora\System\Module\Settings |
26: | { |
27: | protected function initDefaults() |
28: | { |
29: | $this->aContainer = [ |
30: | "Disabled" => new SettingsProperty( |
31: | false, |
32: | "bool", |
33: | null, |
34: | "Setting to true disables the module", |
35: | ), |
36: | "CpanelHost" => new SettingsProperty( |
37: | "127.0.0.1", |
38: | "string", |
39: | null, |
40: | "Hostname of cPanel server the integration is configured for", |
41: | ), |
42: | "CpanelPort" => new SettingsProperty( |
43: | "2083", |
44: | "string", |
45: | null, |
46: | "Port number used to connect to cPanel server", |
47: | ), |
48: | "CpanelUser" => new SettingsProperty( |
49: | "", |
50: | "string", |
51: | null, |
52: | "User account used for integration with cPanel server", |
53: | ), |
54: | "CpanelPassword" => new SettingsProperty( |
55: | "", |
56: | "string", |
57: | null, |
58: | "Password of the account used for integration with cPanel server", |
59: | ), |
60: | "UserDefaultQuotaMB" => new SettingsProperty( |
61: | 1, |
62: | "int", |
63: | null, |
64: | "Default quota of new email accounts created on cPanel", |
65: | ), |
66: | "SupportedServers" => new SettingsProperty( |
67: | [ |
68: | "*" |
69: | ], |
70: | "array", |
71: | null, |
72: | "List of mail servers the integration applies to, * for all the mail servers", |
73: | ), |
74: | "AllowCreateDeleteAccountOnCpanel" => new SettingsProperty( |
75: | false, |
76: | "bool", |
77: | null, |
78: | "Enables managing email accounts from within adminpanel interface of our product", |
79: | ), |
80: | "AllowAliases" => new SettingsProperty( |
81: | false, |
82: | "bool", |
83: | null, |
84: | "Enables creating mail aliases from our adminpanel", |
85: | ), |
86: | "ForwardScriptPath" => new SettingsProperty( |
87: | "", |
88: | "string", |
89: | null, |
90: | "Filesystem location of custom mail forwarder, defaults to scripts/process_mail.php file", |
91: | ), |
92: | ]; |
93: | } |
94: | } |
95: | |