mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 00:50:29 +00:00
15 lines
640 B
PHP
Executable file
15 lines
640 B
PHP
Executable file
<?php
|
|
|
|
/**
|
|
* Generate html for displaying data usage.
|
|
*/
|
|
function DisplayDataUsage(&$extraFooterScripts)
|
|
{
|
|
exec("ip -o link show | awk -F ': ' '{print $2}' | grep -v lo ", $interfacesWlo);
|
|
echo renderTemplate("data_usage", [ "interfaces" => $interfacesWlo ]);
|
|
|
|
$extraFooterScripts[] = array('src'=>'dist/raphael/raphael.min.js', 'defer'=>false);
|
|
$extraFooterScripts[] = array('src'=>'dist/morrisjs/morris.min.js', 'defer'=>false);
|
|
$extraFooterScripts[] = array('src'=>'dist/datatables/jquery.dataTables.min.js', 'defer'=>false);
|
|
$extraFooterScripts[] = array('src'=>'app/js/bandwidthcharts.js', 'defer'=>false);
|
|
}
|