X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fcatchall.cgi;h=240f34d0e017a85814adeac4ceb37d7db699ec4e;hp=3402b61e67d9b766f6e144f60ed1d1fc86307ae7;hb=1fc8addc56f8daf12397da568eb1ac1b27fd3984;hpb=c0567c688084e89fcd11bf82348b6c418f1254ac diff --git a/httemplate/misc/catchall.cgi b/httemplate/misc/catchall.cgi index 3402b61e6..240f34d0e 100755 --- a/httemplate/misc/catchall.cgi +++ b/httemplate/misc/catchall.cgi @@ -1,5 +1,39 @@ - -<% +<% include('/elements/header.html', 'Domain Catchall Edit') %> + +<% include('/elements/error.html') %> + +
+ + +Service #<% $svcnum ? $svcnum : ' (NEW)' |h %> +

+ + + + + +% my $domain = $svc_domain->domain; +% my $catchall = $svc_domain->catchall; + + + +Mail to (anything)@<% $domain |h %> forwards to +

+ + + +
+ +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Edit domain catchall'); my $conf = new FS::Conf; @@ -80,54 +114,5 @@ if ($pkgnum) { $email{''} = "(none)"; my $p1 = popurl(1); -print header("Domain Catchall Edit", ''); - -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); - -print qq!
!; - -#display - - #formatting - print "
";
-
-#svcnum
-print qq!!;
-print qq!Service #!, $svcnum ? $svcnum : " (NEW)", "";
-
-#pkgnum
-print qq!!;
- 
-#svcpart
-print qq!!;
-
-my($domain,$catchall)=(
-  $svc_domain->domain,
-  $svc_domain->catchall,
-);
-
-print qq!!;
-
-#catchall
-print qq!\n\nMail to (anything)@$domain forwards to ";
-
-	#formatting
-	print "
\n"; - -print qq!
!; - -print < - - -END -%> +