Revision 6c07db48
Added by Phil Davis about 10 years ago
usr/local/www/vpn_ipsec.php | ||
---|---|---|
233 | 233 |
} |
234 | 234 |
} |
235 | 235 |
|
236 |
$pgtitle = array(gettext("VPN"),gettext("IPsec")); |
|
236 |
$pgtitle = array(gettext("VPN"), gettext("IPsec"));
|
|
237 | 237 |
$shortcut_section = "ipsec"; |
238 | 238 |
|
239 | 239 |
include("head.inc"); |
... | ... | |
385 | 385 |
<?=$p1_ealgos[$ph1ent['encryption-algorithm']['name']]['name'];?> |
386 | 386 |
<?php |
387 | 387 |
if ($ph1ent['encryption-algorithm']['keylen']) { |
388 |
if ($ph1ent['encryption-algorithm']['keylen']=="auto") {
|
|
388 |
if ($ph1ent['encryption-algorithm']['keylen'] == "auto") {
|
|
389 | 389 |
echo " (" . gettext("auto") . ")"; |
390 | 390 |
} else { |
391 | 391 |
echo " ({$ph1ent['encryption-algorithm']['keylen']} " . gettext("bits") . ")"; |
... | ... | |
455 | 455 |
<input type="hidden" name="tdph2-<?=$i;?>-visible" id="tdph2-<?=$i;?>-visible" value="<?=$tdph2_visible?>" /> |
456 | 456 |
<div id="shph2but-<?=$i?>" <?php echo ($tdph2_visible == '1' ? 'style="display:none"' : '');?>> |
457 | 457 |
<?php |
458 |
$phase2count=0;
|
|
458 |
$phase2count = 0;
|
|
459 | 459 |
foreach ($a_phase2 as $ph2ent) { |
460 | 460 |
if ($ph2ent['ikeid'] != $ph1ent['ikeid']) { |
461 | 461 |
continue; |
... | ... | |
465 | 465 |
$fr_prefix = "frp2{$i}"; |
466 | 466 |
$fr_header = $fr_prefix . "header"; |
467 | 467 |
?> |
468 |
<input type="button" onclick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+" /> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?> |
|
468 |
<input type="button" onclick="show_phase2('tdph2-<?=$i?>', 'shph2but-<?=$i?>')" value="+" /> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?>
|
|
469 | 469 |
</div> |
470 | 470 |
<div id="tdph2-<?=$i?>" <?php echo ($tdph2_visible != '1' ? 'style="display:none"' : '');?>> |
471 | 471 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="phase-2 entries"> |
... | ... | |
544 | 544 |
} |
545 | 545 |
echo $p2_ealgos[$ph2ea['name']]['name']; |
546 | 546 |
if ($ph2ea['keylen']) { |
547 |
if ($ph2ea['keylen']=="auto") {
|
|
547 |
if ($ph2ea['keylen'] == "auto") {
|
|
548 | 548 |
echo " (" . gettext("auto") . ")"; |
549 | 549 |
} else { |
550 | 550 |
echo " ({$ph2ea['keylen']} " . gettext("bits") . ")"; |
Also available in: Unified diff
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.