Commit ab919abe authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace sweep

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