2019-08-18 23:38:41 +00:00
|
|
|
<div class="row">
|
2019-08-18 23:51:26 +00:00
|
|
|
<div class="col-lg-12">
|
2021-04-22 15:35:14 +00:00
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<i class="fas fa-network-wired mr-2"></i><?php echo _("Networking"); ?>
|
|
|
|
</div>
|
|
|
|
</div><!-- ./row -->
|
|
|
|
</div><!-- ./card-header -->
|
|
|
|
|
2019-10-12 22:04:27 +00:00
|
|
|
<div class="card-body">
|
2019-08-18 23:38:41 +00:00
|
|
|
<div id="msgNetworking"></div>
|
2021-04-22 15:31:58 +00:00
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane active" id="summary">
|
|
|
|
<h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
|
|
|
|
<div class="row">
|
2021-04-22 15:35:14 +00:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php echo _("Interface"); ?></th>
|
|
|
|
<th><?php echo _("IP Address"); ?></th>
|
|
|
|
<th><?php echo _("Gateway"); ?></th>
|
|
|
|
<th colspan="2"><?php echo _("Internet Access"); ?></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?>
|
|
|
|
<tr><td colspan=5>No route to the internet found</td></tr>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php foreach($routeInfo as $route): ?>
|
|
|
|
<tr>
|
|
|
|
<td><?php echo $route['interface'] ?></td>
|
|
|
|
<td><?php echo $route['ip-address'] ?></td>
|
|
|
|
<td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td>
|
|
|
|
<td>
|
|
|
|
<p class="m-0">
|
|
|
|
<i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?>
|
|
|
|
</p>
|
|
|
|
<p class="m-0">
|
|
|
|
<i class="fas <?php echo $route["access-dns"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_DNS ?>
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach ?>
|
|
|
|
<?php endif ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2021-04-22 15:31:58 +00:00
|
|
|
</div>
|
2020-06-25 14:00:41 +00:00
|
|
|
</div>
|
2021-04-22 15:31:58 +00:00
|
|
|
<h4 class="mt-3"><?php echo _("Current settings") ?></h4>
|
|
|
|
<div class="row">
|
2021-04-22 15:35:14 +00:00
|
|
|
<?php if (!$bridgedEnabled) : // No interface details when bridged ?>
|
|
|
|
<?php foreach ($interfaces as $if): ?>
|
|
|
|
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
2021-04-22 15:51:10 +00:00
|
|
|
<div class="col-md mb-3">
|
|
|
|
<div class="card h-100 w-100">
|
2021-04-22 15:35:14 +00:00
|
|
|
<div class="card-header"><?php echo $if_quoted ?></div>
|
|
|
|
<div class="card-body">
|
|
|
|
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-22 15:31:58 +00:00
|
|
|
</div>
|
2021-04-22 15:35:14 +00:00
|
|
|
<?php endforeach ?>
|
|
|
|
<?php endif ?>
|
2021-04-22 15:31:58 +00:00
|
|
|
</div><!-- /.row -->
|
2021-04-22 15:35:59 +00:00
|
|
|
|
|
|
|
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
|
|
|
|
|
2019-08-18 23:51:26 +00:00
|
|
|
</div>
|
2021-04-22 15:31:58 +00:00
|
|
|
</div>
|
2019-10-12 22:04:27 +00:00
|
|
|
</div><!-- /.card-body -->
|
2021-04-22 15:35:14 +00:00
|
|
|
|
2021-04-22 15:31:58 +00:00
|
|
|
<div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
2019-10-12 22:04:27 +00:00
|
|
|
</div><!-- /.card -->
|
2019-08-18 23:38:41 +00:00
|
|
|
</div><!-- /.col-lg-12 -->
|
2021-02-02 12:26:14 +00:00
|
|
|
</div><!-- /.row -->
|
2021-04-22 15:31:58 +00:00
|
|
|
|