diff --git a/ca/manage_certs.php b/ca/manage_certs.php
index 0fb3871..9e3bcd0 100644
--- a/ca/manage_certs.php
+++ b/ca/manage_certs.php
@@ -345,10 +345,10 @@ default:
print '
';
$headings = array(
- status=>"Status", issued=>"Issued", expires=>"Expires",
- common_name=>"User's Name", email=>"E-mail",
- organization=>"Organization", unit=>"Department",
- locality=>"Locality"
+ 'status'=>"Status", 'issued'=>"Issued", 'expires'=>"Expires",
+ 'common_name'=>"User's Name", 'email'=>"E-mail",
+ 'organization'=>"Organization", 'unit'=>"Department",
+ 'locality'=>"Locality"
);
foreach($headings as $field=>$head) {
@@ -375,7 +375,7 @@ default:
$db = csort(CAdb_to_array($x), $sortfield, ($ascdec=='A'?SORT_ASC:SORT_DESC));
- $stcolor = array(Valid=>'green',Revoked=>'red',Expired=>'orange');
+ $stcolor = array('Valid'=>'green','Revoked'=>'red','Expired'=>'orange');
foreach($db as $rec) {
print '
diff --git a/include/openssl_functions.php b/include/openssl_functions.php
index 7bd9a6c..a71dbe8 100644
--- a/include/openssl_functions.php
+++ b/include/openssl_functions.php
@@ -305,9 +305,9 @@ function CAdb_in($email="", $name="") {
$email = escshellcmd($email);
$name = escshellcmd($name);
$regexp = "^[V].*CN=$name/(Email|emailAddress)=$email";
- $x =exec('egrep '.escshellarg($regexp).' '.$config[index]);
+ $x =exec('egrep '.escshellarg($regexp).' '.$config['index']);
- if ($x) {
+ if ($x) {
list($j,$j,$j,$serial,$j,$j) = explode("\t", $x);
return "$serial";
}
diff --git a/search.php b/search.php
index 2d63bda..6cf0d62 100644
--- a/search.php
+++ b/search.php
@@ -21,7 +21,7 @@ if ($stage == "search" && ! $search) $stage = "";
if ( !($show_valid.$show_revoked.$show_expired) ) $show_valid = 'V';
switch ($stage) {
-case display:
+case 'display':
printHeader('about');
print '
@@ -44,7 +44,7 @@ case 'download_pem':
upload("$config[new_certs_dir]/$serial.pem", "$rec[common_name].pem", 'application/pkix-cert');
break;
-case search:
+case 'search':
printHeader('public');
$db = CAdb_to_array("^[${show_valid}${show_revoked}${show_expired}].*$search");
@@ -54,7 +54,7 @@ case search:
?>
Nothing Found
-
';
@@ -111,7 +111,7 @@ case search:
?>
-