Commit ab919abe authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace sweep

parent 1b09e9a7
......@@ -65,7 +65,7 @@ if (!isAllowedPage($_SERVER['REQUEST_URI'])) {
display_error_form("201", gettext("No page assigned to this user! Click here to logout."));
exit;
}
}
}
/*
* Close session data to allow other scripts from same host to come in.
......@@ -130,7 +130,7 @@ function display_login_form()
unset($input_errors);
if (isAjax()) {
exit;
}
......
......@@ -115,7 +115,7 @@ if ($act == "edit") {
}
if ($act == "new") {
if (isset($_GET['method'])) {
if (isset($_GET['method'])) {
$pconfig['method'] = $_GET['method'];
} else {
$pconfig['method'] = null ;
......@@ -674,7 +674,7 @@ else :
$subj = htmlspecialchars($subj);
$issuer = htmlspecialchars($issuer);
$certcount = 0;
if (isset($ca['caref'])) {
$issuer_ca = lookup_ca($ca['caref']);
if ($issuer_ca) {
......@@ -690,7 +690,7 @@ else :
$certcount++;
}
}
}
}
// TODO : Need gray certificate icon
......
......@@ -109,7 +109,7 @@ if ($act == "new") {
if (isset($_GET['method'])) {
$pconfig['method'] = $_GET['method'];
} else {
$pconfig['method'] = null;
$pconfig['method'] = null;
}
$pconfig['keylen'] = "2048";
$pconfig['digest_alg'] = "sha256";
......@@ -1048,9 +1048,9 @@ endif;?>
}
if (isset($cert['caref'])) {
$ca = lookup_ca($cert['caref']);
if ($ca) {
$caname = " (CA: {$ca['descr']})";
}
if ($ca) {
$caname = " (CA: {$ca['descr']})";
}
} else {
$ca = null;
}
......
......@@ -104,7 +104,7 @@ if ($act == "del") {
if ($act == "new") {
if (isset($_GET['method'])) {
$pconfig['method'] = $_GET['method'];
} else {
} else {
$pconfig['method'] = null;
}
if (isset($_GET['caref'])) {
......
......@@ -58,11 +58,11 @@ $checkbox_names = array('pfsyncenabled',
if ($_POST) {
$pconfig = $_POST;
foreach ($checkbox_names as $name) {
if (isset($pconfig[$name])) {
$a_hasync[$name] = $pconfig[$name];
} else {
$a_hasync[$name] = false;
}
if (isset($pconfig[$name])) {
$a_hasync[$name] = $pconfig[$name];
} else {
$a_hasync[$name] = false;
}
}
$a_hasync['pfsyncpeerip'] = $pconfig['pfsyncpeerip'];
$a_hasync['pfsyncinterface'] = $pconfig['pfsyncinterface'];
......@@ -80,7 +80,7 @@ foreach ($checkbox_names as $name) {
$pconfig[$name] = $a_hasync[$name];
} else {
$pconfig[$name] = null;
}
}
}
foreach (array('pfsyncpeerip','pfsyncinterface','synchronizetoip','username','password') as $tag) {
if (isset($a_hasync[$tag])) {
......
......@@ -825,7 +825,7 @@ endforeach; ?>
<tr id="opt_psk">
<td width="22%" valign="top" class="vncellreq"><?=gettext("Pre-Shared Key"); ?></td>
<td width="78%" class="vtable">
<input name="pskey" type="text" class="formfld unknown" id="pskey" size="40" value="<?=htmlspecialchars($pconfig['pskey']);?>" />
<span class="vexpl">
<br />
......
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