Commit 2ecd7bb8 authored by Franco Fichtner's avatar Franco Fichtner

src: whitespace sweep

parent c9d0c5d2
...@@ -129,9 +129,9 @@ $( document ).ready(function() { ...@@ -129,9 +129,9 @@ $( document ).ready(function() {
<div class="row"> <div class="row">
<section class="col-xs-12"> <section class="col-xs-12">
<header class="content-box-head container-fluid"> <h3><?=gettext("OpenVPN Status");?></h3> <header class="content-box-head container-fluid"> <h3><?=gettext("OpenVPN Status");?></h3>
</header> </header>
<div class="content-box-main col-xs-12"> <div class="content-box-main col-xs-12">
<form action="status_openvpn.php" method="get" name="iform"> <form action="status_openvpn.php" method="get" name="iform">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<?php $i = 0; ?> <?php $i = 0; ?>
...@@ -161,7 +161,7 @@ $( document ).ready(function() { ...@@ -161,7 +161,7 @@ $( document ).ready(function() {
<td><?=format_bytes($conn['bytes_recv']);?></td> <td><?=format_bytes($conn['bytes_recv']);?></td>
<td></td> <td></td>
<td> <td>
<a data-client-port="<?=$server['mgmt'];?>" <a data-client-port="<?=$server['mgmt'];?>"
data-client-ip="<?=$conn['remote_host'];?>" data-client-ip="<?=$conn['remote_host'];?>"
title="<?=gettext("Kill client connection from"). " ". $conn['remote_host'] ; ?>" title="<?=gettext("Kill client connection from"). " ". $conn['remote_host'] ; ?>"
class="act_kill_client btn btn-default"> class="act_kill_client btn btn-default">
...@@ -303,7 +303,7 @@ $( document ).ready(function() { ...@@ -303,7 +303,7 @@ $( document ).ready(function() {
</form> </form>
</div> </div>
</section> </section>
</div> </div>
</div> </div>
</section> </section>
......
...@@ -268,18 +268,18 @@ function show_phase2(id, buttonid) { ...@@ -268,18 +268,18 @@ function show_phase2(id, buttonid) {
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><?=gettext("IKE"); ?></td> <td><?=gettext("IKE"); ?></td>
<td><?=gettext("Remote Gateway"); ?></td> <td><?=gettext("Remote Gateway"); ?></td>
<td><?=gettext("Mode"); ?></td> <td><?=gettext("Mode"); ?></td>
<td><?=gettext("P1 Protocol"); ?></td> <td><?=gettext("P1 Protocol"); ?></td>
<td><?=gettext("P1 Transforms"); ?></td> <td><?=gettext("P1 Transforms"); ?></td>
<td><?=gettext("P1 Description"); ?></td> <td><?=gettext("P1 Description"); ?></td>
<td> <td>
</td> </td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php <?php
...@@ -535,22 +535,22 @@ function show_phase2(id, buttonid) { ...@@ -535,22 +535,22 @@ function show_phase2(id, buttonid) {
<td colspan="8"> </td> <td colspan="8"> </td>
<td> <td>
<button name="move_<?=$i;?>_x" <button name="move_<?=$i;?>_x"
type="submit" type="submit"
title="<?=gettext("move selected phase1 entries to end");?>" title="<?=gettext("move selected phase1 entries to end");?>"
class="btn btn-default btn-xs"> class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-arrow-down"></span> <span class="glyphicon glyphicon-arrow-down"></span>
</button> </button>
<a href="vpn_ipsec_phase1.php" title="<?=gettext("add new phase1");?>" alt="add" class="btn btn-default btn-xs"> <a href="vpn_ipsec_phase1.php" title="<?=gettext("add new phase1");?>" alt="add" class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-plus"></span>
</a> </a>
<button <button
name="del_x" name="del_x"
type="submit" type="submit"
title="<?=gettext("delete selected phase1 entries");?>" title="<?=gettext("delete selected phase1 entries");?>"
onclick="return confirm('<?=gettext("Do you really want to delete the selected phase1 entries?");?>')" onclick="return confirm('<?=gettext("Do you really want to delete the selected phase1 entries?");?>')"
class="btn btn-default btn-xs"> class="btn btn-default btn-xs">
<span class="glyphicon glyphicon-remove"></span> <span class="glyphicon glyphicon-remove"></span>
</button> </button>
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -113,7 +113,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -113,7 +113,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pconfig['remotebits'] = null; $pconfig['remotebits'] = null;
$pconfig['remotenet'] = null ; $pconfig['remotenet'] = null ;
if (isset($a_phase1[$p1index]['remote-subnet']) && strpos($a_phase1[$p1index]['remote-subnet'],'/') !== false) { if (isset($a_phase1[$p1index]['remote-subnet']) && strpos($a_phase1[$p1index]['remote-subnet'],'/') !== false) {
list($pconfig['remotenet'],$pconfig['remotebits']) = explode("/", $a_phase1[$p1index]['remote-subnet']); list($pconfig['remotenet'],$pconfig['remotebits']) = explode("/", $a_phase1[$p1index]['remote-subnet']);
} elseif (isset($a_phase1[$p1index]['remote-subnet'])) { } elseif (isset($a_phase1[$p1index]['remote-subnet'])) {
$pconfig['remotenet'] = $a_phase1[$p1index]['remote-subnet']; $pconfig['remotenet'] = $a_phase1[$p1index]['remote-subnet'];
} }
...@@ -631,7 +631,7 @@ function dpdchkbox_change() { ...@@ -631,7 +631,7 @@ function dpdchkbox_change() {
<option value="<?=$kidx;?>" <?= $kidx == $pconfig['iketype'] ? "selected=\"selected\"" : "";?> > <option value="<?=$kidx;?>" <?= $kidx == $pconfig['iketype'] ? "selected=\"selected\"" : "";?> >
<?=$name;?> <?=$name;?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_iketype"> <div class="hidden" for="help_for_iketype">
...@@ -650,7 +650,7 @@ function dpdchkbox_change() { ...@@ -650,7 +650,7 @@ function dpdchkbox_change() {
<option value="<?=$protocol;?>" <?=$protocol == $pconfig['protocol'] ? "selected=\"selected\"" : "";?> > <option value="<?=$protocol;?>" <?=$protocol == $pconfig['protocol'] ? "selected=\"selected\"" : "";?> >
<?=$name?> <?=$name?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_protocol"> <div class="hidden" for="help_for_protocol">
...@@ -690,7 +690,7 @@ function dpdchkbox_change() { ...@@ -690,7 +690,7 @@ function dpdchkbox_change() {
<option value="<?=$iface;?>" <?= $iface == $pconfig['interface'] ? "selected=\"selected\"" : "" ?> > <option value="<?=$iface;?>" <?= $iface == $pconfig['interface'] ? "selected=\"selected\"" : "" ?> >
<?=htmlspecialchars($ifacename);?> <?=htmlspecialchars($ifacename);?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_interface"> <div class="hidden" for="help_for_interface">
...@@ -710,7 +710,7 @@ function dpdchkbox_change() { ...@@ -710,7 +710,7 @@ function dpdchkbox_change() {
</div> </div>
</td> </td>
</tr> </tr>
<?php endif; <?php endif;
?> ?>
<tr> <tr>
<td><a id="help_for_remotegw" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Description"); ?></td> <td><a id="help_for_remotegw" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Description"); ?></td>
...@@ -746,9 +746,9 @@ function dpdchkbox_change() { ...@@ -746,9 +746,9 @@ function dpdchkbox_change() {
} }
?> ?>
<option value="<?=$method_type;?>" <?= $method_type == $pconfig['authentication_method'] ? "selected=\"selected\"" : "";?> > <option value="<?=$method_type;?>" <?= $method_type == $pconfig['authentication_method'] ? "selected=\"selected\"" : "";?> >
<?=$method_params['name'];?> <?=$method_params['name'];?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_authmethod"> <div class="hidden" for="help_for_authmethod">
...@@ -764,10 +764,10 @@ function dpdchkbox_change() { ...@@ -764,10 +764,10 @@ function dpdchkbox_change() {
$modes = array("main" => "Main", "aggressive" => "Aggressive"); $modes = array("main" => "Main", "aggressive" => "Aggressive");
foreach ($modes as $mode => $mdescr) : foreach ($modes as $mode => $mdescr) :
?> ?>
<option value="<?=$mode;?>" <?= $mode == $pconfig['mode'] ? "selected=\"selected\"" : "" ;?> > <option value="<?=$mode;?>" <?= $mode == $pconfig['mode'] ? "selected=\"selected\"" : "" ;?> >
<?=$mdescr;?> <?=$mdescr;?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_mode"> <div class="hidden" for="help_for_mode">
...@@ -821,9 +821,9 @@ endforeach; ?> ...@@ -821,9 +821,9 @@ endforeach; ?>
} }
?> ?>
<option value="<?=$id_type;?>" <?= $id_type == $pconfig['peerid_type'] ? "selected=\"selected\"" : "";?> > <option value="<?=$id_type;?>" <?= $id_type == $pconfig['peerid_type'] ? "selected=\"selected\"" : "";?> >
<?=$id_params['desc'];?> <?=$id_params['desc'];?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<input name="peerid_data" type="text" id="peerid_data" size="30" value="<?=$pconfig['peerid_data'];?>" /> <input name="peerid_data" type="text" id="peerid_data" size="30" value="<?=$pconfig['peerid_data'];?>" />
...@@ -855,7 +855,7 @@ endforeach; ?> ...@@ -855,7 +855,7 @@ endforeach; ?>
<option value="<?=$cert['refid'];?>" <?= isset($pconfig['certref']) && $pconfig['certref'] == $cert['refid'] ? "selected=\"selected\"" : ""?>> <option value="<?=$cert['refid'];?>" <?= isset($pconfig['certref']) && $pconfig['certref'] == $cert['refid'] ? "selected=\"selected\"" : ""?>>
<?=$cert['descr'];?> <?=$cert['descr'];?>
</option> </option>
<?php endforeach; <?php endforeach;
endif; endif;
?> ?>
</select> </select>
...@@ -869,7 +869,7 @@ endforeach; ?> ...@@ -869,7 +869,7 @@ endforeach; ?>
<td> <td>
<select name="caref" class="formselect"> <select name="caref" class="formselect">
<?php <?php
$config__ca = isset($config['ca']) ? $config['ca'] : array(); $config__ca = isset($config['ca']) ? $config['ca'] : array();
foreach ($config__ca as $ca) : foreach ($config__ca as $ca) :
$selected = ""; $selected = "";
if ($pconfig['caref'] == $ca['refid']) { if ($pconfig['caref'] == $ca['refid']) {
...@@ -879,7 +879,7 @@ endforeach; ?> ...@@ -879,7 +879,7 @@ endforeach; ?>
<option value="<?=$ca['refid'];?>" <?= isset($pconfig['caref']) && $pconfig['caref'] == $ca['refid'] ? "selected=\"selected\"":"";?>> <option value="<?=$ca['refid'];?>" <?= isset($pconfig['caref']) && $pconfig['caref'] == $ca['refid'] ? "selected=\"selected\"":"";?>>
<?=htmlspecialchars($ca['descr']);?> <?=htmlspecialchars($ca['descr']);?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_caref"> <div class="hidden" for="help_for_caref">
...@@ -926,7 +926,7 @@ endforeach; ?> ...@@ -926,7 +926,7 @@ endforeach; ?>
<option value="<?=$algo;?>" <?= $algo == $pconfig['halgo'] ? "selected=\"selected\"" : "";?>> <option value="<?=$algo;?>" <?= $algo == $pconfig['halgo'] ? "selected=\"selected\"" : "";?>>
<?=$algoname;?> <?=$algoname;?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_halgo"> <div class="hidden" for="help_for_halgo">
...@@ -957,7 +957,7 @@ endforeach; ?> ...@@ -957,7 +957,7 @@ endforeach; ?>
<option value="<?=$keygroup;?>" <?= $keygroup == $pconfig['dhgroup'] ? "selected=\"selected\"" : "";?>> <option value="<?=$keygroup;?>" <?= $keygroup == $pconfig['dhgroup'] ? "selected=\"selected\"" : "";?>>
<?=$keygroupname;?> <?=$keygroupname;?>
</option> </option>
<?php endforeach; <?php endforeach;
?> ?>
</select> </select>
<div class="hidden" for="help_for_dhgroup"> <div class="hidden" for="help_for_dhgroup">
......
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