mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Merge branch 'master' of https://github.com/RaspAP/raspap-webgui
This commit is contained in:
commit
a8d59c1479
@ -1,6 +1,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12">
|
<div class="col-lg-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@ -8,6 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div><!-- ./row -->
|
</div><!-- ./row -->
|
||||||
</div><!-- ./card-header -->
|
</div><!-- ./card-header -->
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div id="msgNetworking"></div>
|
<div id="msgNetworking"></div>
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
@ -17,11 +19,9 @@
|
|||||||
<div role="tabpanel" class="tab-pane active" id="summary">
|
<div role="tabpanel" class="tab-pane active" id="summary">
|
||||||
<h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
|
<h4 class="mt-3"><?php echo _("Internet connection"); ?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12"">
|
<div class="col-sm-12">
|
||||||
<div class="card ">
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table table-hover">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo _("Interface"); ?></th>
|
<th><?php echo _("Interface"); ?></th>
|
||||||
@ -31,37 +31,37 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php if (isset($routeInfo["error"]) || empty($routeInfo)): ?>
|
||||||
if (isset($routeInfo["error"]) || empty($routeInfo)) {
|
<tr><td colspan=5>No route to the internet found</td></tr>
|
||||||
echo "<tr><td colspan=5>No route to the internet found</td></tr>";
|
<?php else: ?>
|
||||||
} else {
|
<?php foreach($routeInfo as $route): ?>
|
||||||
foreach($routeInfo as $route) {
|
<tr>
|
||||||
echo "<tr>";
|
<td><?php echo $route['interface'] ?></td>
|
||||||
echo "<td>".$route["interface"]."</td>";
|
<td><?php echo $route['ip-address'] ?></td>
|
||||||
echo "<td>".$route["ip-address"]."</td>";
|
<td><?php echo $route['gateway'] ?><br><?php $route['gw-name'] ?></td>
|
||||||
echo "<td>".$route["gateway"]."<br>".$route["gw-name"]."</td>";
|
<td>
|
||||||
$status = $route["access-ip"] ? "fa-check" : "fa-times";
|
<p class="m-0">
|
||||||
echo '<td><i class="fas '.$status.'"></i><br>'.RASPI_ACCESS_CHECK_IP.'</td>';
|
<i class="fas <?php echo $route["access-ip"] ? "fa-check" : "fa-times"; ?>"></i> <?php echo RASPI_ACCESS_CHECK_IP ?>
|
||||||
$status = $route["access-dns"] ? "fa-check" : "fa-times";
|
</p>
|
||||||
echo '<td><i class="fas '.$status.'"></i><br>'.RASPI_ACCESS_CHECK_DNS.'</td>';
|
<p class="m-0">
|
||||||
echo "</tr>";
|
<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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h4 class="mt-3"><?php echo _("Current settings") ?></h4>
|
<h4 class="mt-3"><?php echo _("Current settings") ?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php if (!$bridgedEnabled) : // No interface details when bridged ?>
|
<?php if (!$bridgedEnabled) : // No interface details when bridged ?>
|
||||||
<?php foreach ($interfaces as $if): ?>
|
<?php foreach ($interfaces as $if): ?>
|
||||||
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
<?php $if_quoted = htmlspecialchars($if, ENT_QUOTES) ?>
|
||||||
<div class="col-md-6 mb-3">
|
<div class="col-md mb-3">
|
||||||
<div class="card">
|
<div class="card h-100 w-100">
|
||||||
<div class="card-header"><?php echo $if_quoted ?></div>
|
<div class="card-header"><?php echo $if_quoted ?></div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
|
<pre class="unstyled" id="<?php echo $if_quoted ?>-summary"></pre>
|
||||||
@ -71,14 +71,13 @@
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
<div class="col-lg-12">
|
|
||||||
<div class="row">
|
|
||||||
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
|
<button type="button" onClick="window.location.reload();" class="btn btn-outline btn-primary"><i class="fas fa-sync-alt"></i> <?php echo _("Refresh") ?></a>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /.card-body -->
|
</div><!-- /.card-body -->
|
||||||
|
|
||||||
<div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
<div class="card-footer"><?php echo _("Information provided by /sys/class/net"); ?></div>
|
||||||
</div><!-- /.card -->
|
</div><!-- /.card -->
|
||||||
</div><!-- /.col-lg-12 -->
|
</div><!-- /.col-lg-12 -->
|
||||||
|
Loading…
Reference in New Issue
Block a user