Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
Vnstat-Frontend
code initial : https://github.com/alexandermarston/vnstat-dashboard
Fork exploité : https://github.com/tomangert/vnstat-dashboard
--------------------------------------------------
diff index.php index.php.orig
21,22c21
< //require __DIR__ . '/vendor/autoload.php';
< require __DIR__ . '/smarty/Smarty.class.php';
---
> require __DIR__ . '/vendor/autoload.php';
54,55c53
< // Add for ALCASAR
< $thisInterface = "";
---
>
59d56
< // Modify for ALCASAR
61,62c58
< //$smarty->assign('interface_list', $vnstat->getInterfaces());
< $smarty->assign('interface_list', $thisInterface);
---
> $smarty->assign('interface_list', $vnstat->getInterfaces());
---------------------------------------------------
diff module_footer.tpl module_footer.tpl.orig
3c3,4
< <span class="text-muted">Generated by 'vnstat-dashboard'
---
> <span class="text-muted">Copyright (C) {$year} Alexander Marston -
> <a href="https://github.com/alexandermarston/vnstat-dashboard">vnstat-dashboard</a>
-----------------------------------------------------
diff module_header.tpl module_header.tpl.orig
12a17,33
> <nav class="navbar sticky-top navbar-light bg-light">
> <div class="container">
> <a class="navbar-brand" href="#">Network Traffic ({$current_interface})</a>
>
> <div class="dropdown">
> <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
> Interface Selection
> </button>
>
> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
> {foreach from=$interface_list item=value}
> <a class="dropdown-item" href="?i={$value}">{$value}</a>
> {/foreach}
> </div>
> </div>
> </div>
> </nav>