Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
3106 rexy 1
Vnstat-Frontend
2
 
3
code initial : https://github.com/alexandermarston/vnstat-dashboard
4
Fork exploité : https://github.com/tomangert/vnstat-dashboard
5
 
6
--------------------------------------------------
7
diff index.php index.php.orig 
8
21,22c21
9
< //require __DIR__ . '/vendor/autoload.php';
10
< require __DIR__ . '/smarty/Smarty.class.php';
11
---
12
> require __DIR__ . '/vendor/autoload.php';
13
54,55c53
14
< // Add for ALCASAR
15
< $thisInterface = "";
16
---
17
> 
18
59d56
19
< // Modify for ALCASAR
20
61,62c58
21
< //$smarty->assign('interface_list', $vnstat->getInterfaces());
22
< $smarty->assign('interface_list', $thisInterface);
23
---
24
> $smarty->assign('interface_list', $vnstat->getInterfaces());
25
 
26
---------------------------------------------------
27
diff module_footer.tpl module_footer.tpl.orig 
28
3c3,4
29
<             <span class="text-muted">Generated by 'vnstat-dashboard'
30
---
31
>             <span class="text-muted">Copyright (C) {$year} Alexander Marston -
32
>                 <a href="https://github.com/alexandermarston/vnstat-dashboard">vnstat-dashboard</a>
33
-----------------------------------------------------
34
diff module_header.tpl module_header.tpl.orig 
35
 
36
12a17,33
37
>     <nav class="navbar sticky-top navbar-light bg-light">
38
>         <div class="container">
39
>             <a class="navbar-brand" href="#">Network Traffic ({$current_interface})</a>
40
> 
41
>             <div class="dropdown">
42
>                 <button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
43
>                     Interface Selection
44
>                 </button>
45
> 
46
>                 <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
47
> {foreach from=$interface_list item=value}
48
>                     <a class="dropdown-item" href="?i={$value}">{$value}</a>
49
> {/foreach}
50
>                 </div>
51
>             </div>
52
>         </div>
53
>     </nav>
54