summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeff <jeff>2006-11-18 02:19:25 +0000
committerjeff <jeff>2006-11-18 02:19:25 +0000
commit84be0e2f6d90e79024acc624aa00a75363a18245 (patch)
tree954e640af388523236a041376bee1d0446efd56c
parent7b28c0c12fe5e623324102a5ee4114f42b5ede3e (diff)
add templating and web hosting optional on domain addition
-rw-r--r--FS/FS/part_export/www_plesk.pm25
1 files changed, 20 insertions, 5 deletions
diff --git a/FS/FS/part_export/www_plesk.pm b/FS/FS/part_export/www_plesk.pm
index 627f072ec..82d555761 100644
--- a/FS/FS/part_export/www_plesk.pm
+++ b/FS/FS/part_export/www_plesk.pm
@@ -10,6 +10,9 @@ tie my %options, 'Tie::IxHash',
'URL' => { label=>'URL' },
'login' => { label=>'Login' },
'password' => { label=>'Password' },
+ 'template' => { label=>'Domain Template' },
+ 'web' => { label=>'Host Website',
+ type=>'checkbox' },
'debug' => { label=>'Enable debugging',
type=>'checkbox' },
;
@@ -71,11 +74,23 @@ sub _export_insert {
$www->domain_record->recdata,
);
- $self->_plesk_command( 'domain_add',
- $www->domain_record->svc_domain->domain,
- $gcresp->id,
- $www->domain_record->recdata,
- );
+ if ($self->option('web')) {
+ $self->_plesk_command( 'domain_add',
+ $www->domain_record->svc_domain->domain,
+ $gcresp->id,
+ $www->domain_record->recdata,
+ $self->option('template')?$self->option('template'):'',
+ $www->svc_acct->username,
+ $www->svc_acct->_password,
+ );
+ }else{
+ $self->_plesk_command( 'domain_add',
+ $www->domain_record->svc_domain->domain,
+ $gcresp->id,
+ $www->domain_record->recdata,
+ $self->option('template')?$self->option('template'):'',
+ );
+ }
}
sub _plesk_command {