Commit 94e5cd9f authored by Ad Schellevis's avatar Ad Schellevis

style fix

parent 44d79821
...@@ -73,8 +73,8 @@ function cert_unrevoke($cert, & $crl) { ...@@ -73,8 +73,8 @@ function cert_unrevoke($cert, & $crl) {
if (count($crl['cert']) == 0) { if (count($crl['cert']) == 0) {
// Protect against accidentally switching the type to imported, for older CRLs // Protect against accidentally switching the type to imported, for older CRLs
if (!isset($crl['method'])) { if (!isset($crl['method'])) {
$crl['method'] = "internal"; $crl['method'] = "internal";
} }
crl_update($crl); crl_update($crl);
} else { } else {
crl_update($crl); crl_update($crl);
...@@ -135,7 +135,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -135,7 +135,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['serial'] = "0"; $pconfig['serial'] = "0";
} }
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
$pconfig = $_POST; $pconfig = $_POST;
// locate cert by refid, returns false when not found // locate cert by refid, returns false when not found
if (isset($_POST['id'])) { if (isset($_POST['id'])) {
$thiscrl =& lookup_crl($_POST['id']); $thiscrl =& lookup_crl($_POST['id']);
...@@ -188,7 +188,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -188,7 +188,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
$act="edit"; $act="edit";
} elseif ($act == "addcert") { } elseif ($act == "addcert") {
$input_errors = array(); $input_errors = array();
if (!isset($id)) { if (!isset($id)) {
header("Location: system_crlmanager.php"); header("Location: system_crlmanager.php");
exit; exit;
...@@ -335,16 +335,16 @@ include("head.inc"); ...@@ -335,16 +335,16 @@ include("head.inc");
}); });
}); });
$("#crlmethod").change(function(){ $("#crlmethod").change(function(){
$("#existing").addClass("hidden"); $("#existing").addClass("hidden");
$("#internal").addClass("hidden"); $("#internal").addClass("hidden");
if ($("#crlmethod").val() == "internal") { if ($("#crlmethod").val() == "internal") {
$("#internal").removeClass("hidden"); $("#internal").removeClass("hidden");
} else { } else {
$("#existing").removeClass("hidden"); $("#existing").removeClass("hidden");
}; };
}); });
$("#crlmethod").change(); $("#crlmethod").change();
}); });
</script> </script>
...@@ -499,11 +499,11 @@ include("head.inc"); ...@@ -499,11 +499,11 @@ include("head.inc");
</form> </form>
<?php <?php
elseif ($act == "edit") :?> elseif ($act == "edit") :?>
<form method="post" name="iform" id="iform"> <form method="post" name="iform" id="iform">
<input type="hidden" name="id" id="id" value=""/> <input type="hidden" name="id" id="id" value=""/>
<input type="hidden" name="certref" id="certref" value=""/> <input type="hidden" name="certref" id="certref" value=""/>
<input type="hidden" name="act" id="action" value=""/> <input type="hidden" name="act" id="action" value=""/>
</form> </form>
<form method="post"> <form method="post">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment