[freeside-commits] freeside/httemplate/misc svc_cert-generate.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Sat Nov 6 22:30:14 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv31979/httemplate/misc
Added Files:
svc_cert-generate.html
Log Message:
certificates ala communigate, RT#7515
--- NEW FILE: svc_cert-generate.html ---
% if ($error) {
% errorpage($error);
%} else {
<% $cgi->redirect($p."view/svc_cert.cgi?$svcnum") %>
%}
<%init>
$cgi->param('svcnum') =~ /^(\d+)$/ or die 'illegal svcnum';
my $svcnum = $1;
my $svc_cert = qsearchs('svc_cert', { 'svcnum' => $svcnum } )
or die 'unknown svcnum';
my $error = '';
if ( $cgi->param('action') eq 'generate_csr' ) {
$svc_cert->generate_csr;
$error = $svc_cert->replace;
} elsif ( $cgi->param('action') eq 'generate_selfsigned' ) {
$svc_cert->generate_selfsigned;
$error = $svc_cert->replace;
} else {
die 'unknown action';
}
</%init>
More information about the freeside-commits
mailing list