From b4c1219bd52e418819e5f2f513a10aa39f24ba1b Mon Sep 17 00:00:00 2001 From: John Crisp Date: Fri, 6 Mar 2020 12:55:50 +0100 Subject: [PATCH] Formatting tidy --- ca/manage_certs.php | 124 ++++++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 57 deletions(-) diff --git a/ca/manage_certs.php b/ca/manage_certs.php index edbe73a..3810f74 100644 --- a/ca/manage_certs.php +++ b/ca/manage_certs.php @@ -32,25 +32,27 @@ if ( !($show_valid.$show_revoked.$show_expired) ) { $show_expired = 'E'; } -$qstr_filter = 'search='.htvar($search).'&'. - "show_valid=$show_valid&". - "show_revoked=$show_revoked&". - "show_expired=$show_expired&"; +$qstr_filter = 'search='.htvar($search) . '&' . "show_valid=$show_valid&" . "show_revoked=$show_revoked&" . "show_expired=$show_expired&"; $qstr_sort = "sortfield=$sortfield&ascdec=$ascdec"; switch ($stage) { case 'goaway': printHeader(false); - ?>

YOU ARE A VERY BAD BOY!

+ +

YOU ARE A VERY BAD BOY!

+ + +

Certificate Details

-

(#)
')?>

+

(#)
')?>

+

You are about to download the PRIVATE certificate key for

-

DO NOT DISTRIBUTE THIS FILE TO THE PUBLIC!

-
+

DO NOT DISTRIBUTE THIS FILE TO THE PUBLIC!

+ File type: - - +   or   - +
-

You are about to REVOKE the following certificate:
- -
-

- Serial Number
+

You are about to REVOKE the following certificate: +
+ + '.htvar($rec[country]).'
-
+

+ Serial Number
User's Name
Email Address
Organization
@@ -130,7 +133,7 @@ case 'revoke-form': Locality
State/Province
Country
-

+

-

Are you sure?

+
+

Are you sure?

@@ -188,9 +191,9 @@ case 'renew-form': # need the expiry value, but the old cert values will override # the rest. # - if (! $submit and file_exists("config/user-${PHPki_user}.php")) + if (! $submit and file_exists("config/user-${PHPki_user}.php")) { include("config/user-${PHPki_user}.php"); - + } # # Get values from the old certificate. # @@ -212,44 +215,44 @@ case 'renew-form':

Certificate Renewal Form

-

This will Revoke the old Certificate and Create a new one
You can add a password if required

+ This will Revoke the old Certificate and Create a new one
You can add a password if required Common Name - + E-mail Address - + Organization - + - Department/Unit + Department/Unit - Locality + Locality - State/Province + State/Province Country - + Certificate Password - + @@ -272,14 +275,15 @@ case 'renew-form':   -   - - - +   + + +
+

- +

- +
@@ -349,6 +358,7 @@ default: } print ''; + $headings = array( 'status'=>"Status", 'issued'=>"Issued", 'expires'=>"Expires", 'common_name'=>"User's Name", 'email'=>"E-mail", @@ -385,27 +395,27 @@ default: foreach($db as $rec) { print ' - - - + + + - - - - + + + '; - + '. + 'Renew + '; } print '
CERTIFICATE MANAGEMENT CONTROL PANEL
-
" method=get name=filter> - Search: -       >Valid -   >Revoked -   >Expired -       + " method="get" name="filter"> + Search: +        + >Valid +    + >Revoked +    + >Expired +       +
' .$rec[status].''.$rec[issued].''.$rec[expires].''.$rec[common_name].''.$rec['issued'].''.$rec['expires'].''.$rec['common_name'].' ' . htvar($rec['email']) . ''.htvar($rec[organization]).''.htvar($rec[unit]).''.htvar($rec[locality]).''. + '.htvar($rec['organization']).''.htvar($rec['unit']).''.htvar($rec['locality']).''. 'Display'; if ($rec['status'] == 'Valid') { print ' - '. + '. 'Download - '. + '. 'Revoke'; } print ' - '. - 'Renew
';