From be61853021954c3cf8f6e63a41b1fa693e3af6d8 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 22 Feb 2010 03:24:21 +0000 Subject: communigate: domain aliases, enabled services, RT#7083 --- httemplate/view/svc_domain.cgi | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index b0f4ef0cf..51caa5c99 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -62,7 +62,14 @@ Service #<% $svcnum %> % } -% if ( $svc_domain->max_accounts ) { +% if ( $communigate ) { + + Aliases + <% $svc_domain->cgp_aliases %> + +% } + +% if ( $communigate && $svc_domain->max_accounts ) { Maximum number of Accounts <% $svc_domain->max_accounts %> @@ -78,6 +85,11 @@ Service #<% $svcnum %> + + Enabled services + <% $svc_domain->cgp_accessmodes %> + +
@@ -122,7 +134,7 @@ DNS records % ) { % ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g; (delete) -% } +% } @@ -221,19 +233,16 @@ if ($svc_domain->catchall) { my $domain = $svc_domain->domain; -my $status = 'Unknown'; -my %ops = (); - -my @exports = $part_svc->part_export(); - -my $registrar; -my $export; +my $communigate = scalar($part_svc->part_export('communigate_pro')); + # || scalar($part_svc->part_export('communigate_pro_singledomain')); # Find the first export that does domain registration -foreach (@exports) { - $export = $_ if $_->can('registrar'); -} +my @exports = grep $_->can('registrar'), $part_svc->part_export; +my $export = $exports[0]; # If we have a domain registration export, get the registrar object +my $registrar; +my $status = 'Unknown'; +my %ops = (); if ($export) { $registrar = $export->registrar; my $domstat = $export->get_status( $svc_domain ); -- cgit v1.2.1