2018-08-21 14:34:01 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2018-09-13 23:06:13 +00:00
|
|
|
* Generate html for displaying data usage.
|
2018-08-21 14:34:01 +00:00
|
|
|
*/
|
2018-09-13 23:06:13 +00:00
|
|
|
function DisplayDataUsage(&$extraFooterScripts)
|
2018-08-21 14:34:01 +00:00
|
|
|
{
|
2019-04-10 08:37:35 +00:00
|
|
|
exec("ip -o link show | awk -F ': ' '{print $2}' | grep -v lo ", $interfacesWlo);
|
2019-08-18 23:21:23 +00:00
|
|
|
echo renderTemplate("data_usage", [ "interfaces" => $interfacesWlo ]);
|
2018-09-11 19:00:23 +00:00
|
|
|
|
2019-10-08 17:36:31 +00:00
|
|
|
$extraFooterScripts[] = array('src'=>'dist/datatables/jquery.dataTables.min.js', 'defer'=>false);
|
|
|
|
$extraFooterScripts[] = array('src'=>'app/js/bandwidthcharts.js', 'defer'=>false);
|
2018-08-21 14:34:01 +00:00
|
|
|
}
|