Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Taikuh committed Mar 12, 2020
1 parent a21c966 commit d127270
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions templates/networking.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@
<div id="msgNetworking"></div>
<ul class="nav nav-tabs">
<li role="presentation" class="nav-item"><a class="nav-link active" href="#summary" aria-controls="summary" role="tab" data-toggle="tab"><?php echo _("Summary"); ?></a></li>
<?php
// Get Bridged AP mode status
$arrHostapdConf = parse_ini_file('/etc/raspap/hostapd.ini');
// defaults to false
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
?>
<?php if (!$bridgedEnabled): // no interface details when bridged ?>
<?php foreach ($interfaces as $if): ?>
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
<li role="presentation" class="nav-item"><a class="nav-link" href="#<?php echo $if_quoted ?>" aria-controls="<?php echo $if_quoted ?>" role="tab" data-toggle="tab"><?php echo $if_quoted ?></a></li>
<?php endforeach ?>
<?php endif ?>
</ul>

<div class="tab-content">

<div role="tabpanel" class="tab-pane active" id="summary">
Expand All @@ -41,13 +50,6 @@
</div><!-- /.col-lg-12 -->
</div><!-- /.tab-pane -->

<?php
// Get Bridged AP mode status
$arrHostapdConf = parse_ini_file('/etc/raspap/hostapd.ini');
// defaults to false
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
?>
<?php if (!$bridgedEnabled): // no interface details when bridged ?>
<?php foreach ($interfaces as $if): ?>
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
<div role="tabpanel" class="tab-pane fade in" id="<?php echo $if_quoted ?>">
Expand Down Expand Up @@ -110,7 +112,6 @@
</div><!-- /.tab-panel -->
</div>
<?php endforeach ?>
<?php endif ?>

</div><!-- /.tab-content -->
</div><!-- /.card-body -->
Expand Down

0 comments on commit d127270

Please sign in to comment.