[freeside-commits] freeside/FS/FS/part_export www_plesk.pm,1.3,1.4

Jeff Finucane,420,, jeff at wavetail.420.am
Fri Nov 17 18:19:28 PST 2006


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail:/tmp/cvs-serv10041

Modified Files:
	www_plesk.pm 
Log Message:
add templating and web hosting optional on domain addition

Index: www_plesk.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/www_plesk.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- www_plesk.pm	16 Oct 2006 02:21:10 -0000	1.3
+++ www_plesk.pm	18 Nov 2006 02:19:25 -0000	1.4
@@ -10,6 +10,9 @@
   '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 @@
                                  $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 {



More information about the freeside-commits mailing list