/web/acc/manager/vnstat/alcasar.txt |
---|
File deleted |
Property changes: |
Deleted: svn:eol-style |
-native |
\ No newline at end of property |
/web/acc/manager/vnstat/includes/vnstat.php |
---|
78,11 → 78,7 |
$vnstatInterfaces = []; |
foreach($this->vnstatData['interfaces'] as $interface) { |
if ($this->vnstatJsonVersion == 1) { |
array_push($vnstatInterfaces, $interface['id']); |
} else { |
array_push($vnstatInterfaces, $interface['name']); |
} |
} |
return $vnstatInterfaces; |
91,7 → 87,6 |
public function getInterfaceData($timeperiod, $type, $interface) { |
// If json version equals 1, add an 's' onto the end of each type. |
// e.g. 'top' becomes 'tops' |
$typeAppend = ''; |
if ($this->vnstatJsonVersion == 1) { |
$typeAppend = 's'; |
} |
98,14 → 93,9 |
// Blank placeholder |
$trafficData = []; |
$i = -1; |
// Get the array index for the chosen interface |
if ($this->vnstatJsonVersion == 1) { |
$arrayIndex = array_search($interface, array_column($this->vnstatData['interfaces'], 'id')); |
} else { |
$arrayIndex = array_search($interface, array_column($this->vnstatData['interfaces'], 'name')); |
} |
$arrayIndex = array_search($interface, array_column($this->vnstatData['interfaces'], 'id')); |
if ($timeperiod == 'top10') { |
if ($type == 'table') { |
123,34 → 113,6 |
} |
} |
if (($this->vnstatJsonVersion > 1) && ($timeperiod == 'five')) { |
if ($type == 'table') { |
foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['fiveminute'] as $traffic) { |
if (is_array($traffic)) { |
$i++; |
$trafficData[$i]['label'] = date("d/m/Y H:i", mktime($traffic['time']['hour'], $traffic['time']['minute'], 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year'])); |
$trafficData[$i]['time'] = mktime($traffic['time']['hour'], $traffic['time']['minute'], 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year']); |
$trafficData[$i]['rx'] = formatSize($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = formatSize($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = formatSize(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
} |
} |
} else if ($type == 'graph') { |
foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['fiveminute'] as $traffic) { |
if (is_array($traffic)) { |
$i++; |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d, %d, %d)", $traffic['date']['year'], $traffic['date']['month']-1, $traffic['date']['day'], $traffic['time']['hour'], $traffic['time']['minute']); |
$trafficData[$i]['time'] = mktime($traffic['time']['hour'], $traffic['time']['minute'], 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year']); |
$trafficData[$i]['rx'] = kibibytesToBytes($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = kibibytesToBytes($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = kibibytesToBytes(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
} |
} |
} |
} |
if ($timeperiod == 'hourly') { |
if ($type == 'table') { |
foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['hour'.$typeAppend] as $traffic) { |
171,6 → 133,7 |
} |
} |
// usort($trafficData, sortingFunction); |
} else if ($type == 'graph') { |
foreach ($this->vnstatData['interfaces'][$arrayIndex]['traffic']['hour'.$typeAppend] as $traffic) { |
183,8 → 146,7 |
$hour = $traffic['time']['hour']; |
} |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d, %d)", $traffic['date']['year'], $traffic['date']['month']-1, $traffic['date']['day'], $hour); |
$trafficData[$i]['time'] = mktime($hour, 0, 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year']); |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d, %d, %d, %d)", $traffic['date']['year'], $traffic['date']['month']-1, $traffic['date']['day'], $hour, 0, 0); |
$trafficData[$i]['rx'] = kibibytesToBytes($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = kibibytesToBytes($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = kibibytesToBytes(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
200,7 → 162,6 |
$i++; |
$trafficData[$i]['label'] = date('d/m/Y', mktime(0, 0, 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year'])); |
$trafficData[$i]['time'] = mktime(0, 0, 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year']); |
$trafficData[$i]['rx'] = formatSize($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = formatSize($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = formatSize(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
211,8 → 172,7 |
if (is_array($traffic)) { |
$i++; |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d)", $traffic['date']['year'], $traffic['date']['month']-1, $traffic['date']['day']); |
$trafficData[$i]['time'] = mktime(0, 0, 0, $traffic['date']['month'], $traffic['date']['day'], $traffic['date']['year']); |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d, %d, %d, %d)", $traffic['date']['year'], $traffic['date']['month']-1, $traffic['date']['day'], 0, 0, 0); |
$trafficData[$i]['rx'] = kibibytesToBytes($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = kibibytesToBytes($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = kibibytesToBytes(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
228,7 → 188,6 |
$i++; |
$trafficData[$i]['label'] = date('F Y', mktime(0, 0, 0, $traffic['date']['month'], 10, $traffic['date']['year'])); |
$trafficData[$i]['time'] = mktime(0, 0, 0, $traffic['date']['month'], 10, $traffic['date']['year']); |
$trafficData[$i]['rx'] = formatSize($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = formatSize($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = formatSize(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
239,8 → 198,7 |
if (is_array($traffic)) { |
$i++; |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d)", $traffic['date']['year'], $traffic['date']['month'] - 1, 10); |
$trafficData[$i]['time'] = mktime(0, 0, 0, $traffic['date']['month'], 10, $traffic['date']['year']); |
$trafficData[$i]['label'] = sprintf("Date(%d, %d, %d, %d, %d, %d)", $traffic['date']['year'], $traffic['date']['month'] - 1, 10, 0, 0, 0); |
$trafficData[$i]['rx'] = kibibytesToBytes($traffic['rx'], $this->vnstatJsonVersion); |
$trafficData[$i]['tx'] = kibibytesToBytes($traffic['tx'], $this->vnstatJsonVersion); |
$trafficData[$i]['total'] = kibibytesToBytes(($traffic['rx'] + $traffic['tx']), $this->vnstatJsonVersion); |
249,32 → 207,17 |
} |
} |
if ($timeperiod != 'top10') { |
usort($trafficData, 'sortingFunction'); |
} |
if ($type == 'graph') { |
// Get the largest value and then prefix (B, KB, MB, GB, etc) |
$trafficLargestValue = getLargestValue($trafficData); |
$trafficScale = getScale($trafficLargestValue); |
$trafficLargestPrefix = getLargestPrefix($trafficScale); |
$trafficBase = getBaseValue($trafficData, $trafficScale); |
if (($trafficBase < .0099) && ($trafficScale >= 1)) |
{ |
$trafficScale = $trafficScale - 1; |
$trafficLargestPrefix = getLargestPrefix($trafficScale); |
$trafficBase = getBaseValue($trafficData, $trafficScale); |
} |
$trafficLargestPrefix = getLargestPrefix($trafficLargestValue); |
foreach($trafficData as &$value) { |
$value['rx'] = formatBytesTo($value['rx'], $trafficScale); |
$value['tx'] = formatBytesTo($value['tx'], $trafficScale); |
$value['total'] = formatBytesTo($value['total'], $trafficScale); |
foreach($trafficData as $key => $value) { |
$trafficData[$key]['rx'] = formatBytesTo($value['rx'], $trafficLargestPrefix); |
$trafficData[$key]['tx'] = formatBytesTo($value['tx'], $trafficLargestPrefix); |
$trafficData[$key]['total'] = formatBytesTo($value['total'], $trafficLargestPrefix); |
$trafficData[$key]['delimiter'] = $trafficLargestPrefix; |
} |
unset($value); |
$trafficData[0]['delimiter'] = $trafficLargestPrefix; |
$trafficData[0]['base'] = $trafficBase; |
} |
return $trafficData; |
/web/acc/manager/vnstat/includes/config.php |
---|
17,10 → 17,9 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
*/ |
// Uncomment to enable error reporting to the screen |
/*ini_set('display_errors', 1); |
ini_set('display_startup_errors', 1); |
ferror_reporting(E_ALL);*/ |
// Disable error reporting to screen |
ini_set('display_errors', 0); |
error_reporting(E_ALL); |
// Set the default system Timezone |
date_default_timezone_set('Europe/London'); |
28,12 → 27,6 |
// Path of vnstat |
$vnstat_bin_dir = '/usr/bin/vnstat'; |
// Path of config file |
/*$vnstat_config = '/etc/vnstat.conf';*/ |
// linear or logarithmic graphs. Uncomment for logarithmic |
/*$graph_type = 'log';*/ |
// Set to true to set your own interfaces |
$use_predefined_interfaces = false; |
/web/acc/manager/vnstat/includes/utilities.php |
---|
17,19 → 17,6 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
*/ |
$logk = log(1024); |
function getScale($bytes) |
{ |
global $logk; |
$ui = floor(round(log($bytes)/$logk,3)); |
if ($ui < 0) { $ui = 0; } |
if ($ui > 8) { $ui = 8; } |
return $ui; |
} |
// Get the largest value in an array |
function getLargestValue($array) { |
return $max = array_reduce($array, function ($a, $b) { |
37,44 → 24,7 |
}); |
} |
function getBaseValue($array, $scale) |
{ |
$big = pow(1024,9); |
// Find the smallest non-zero value |
$sml = array_reduce($array, function ($a, $b) { |
if ((1 <= $b['rx']) && ($b['rx'] < $b['tx'])) { |
$sm = $b['rx']; |
} else { |
$sm = $b['tx']; |
} |
if (($sm < 1) || ($a < $sm)) { |
return $a; |
} else { |
return $sm; |
} |
}, $big); |
if ($sml >= $big/2) { |
$sml = 1; |
} |
// divide by scale then round down to a power of 10 |
$base = pow(10,floor(round(log10($sml/pow(1024,$scale)),3))); |
// convert back to bytes |
$baseByte = $base * pow(1024, $scale); |
// Don't make the bar invisable - must be > 5% difference |
if ($sml / $baseByte < 1.05) { |
$base = $base / 10; |
} |
return $base; |
} |
function formatSize($bytes, $vnstatJsonVersion, $decimals = 2) { |
function formatSize($bytes, $vnstatJsonVersion) { |
// json version 1 = convert from KiB |
// json version 2 = convert from bytes |
if ($vnstatJsonVersion == 1) { |
81,29 → 31,28 |
$bytes *= 1024; // convert from kibibytes to bytes |
} |
return formatBytes($bytes, $decimals); |
return formatBytes($bytes); |
} |
function getLargestPrefix($scale) |
{ |
function formatBytes($bytes, $decimals = 2) { |
$base = log(floatval($bytes), 1024); |
$suffixes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
return $suffixes[$scale]; |
} |
function formatBytes($bytes, $decimals = 3) { |
$scale = getScale($bytes); |
return round($bytes/pow(1024, $scale), $decimals) .' '. getLargestPrefix($scale); |
return round(pow(1024, $base - floor($base)), $decimals) .' '. $suffixes[floor($base)]; |
} |
function formatBytesTo($bytes, $scale, $decimals = 4) { |
function formatBytesTo($bytes, $delimiter, $decimals = 2) { |
if ($bytes == 0) { |
return '0'; |
} |
return number_format(($bytes / pow(1024, $scale)), $decimals, ".", ""); |
$k = 1024; |
$dm = $decimals < 0 ? 0 : $decimals; |
$sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
$i = array_search($delimiter, $sizes); |
return number_format(($bytes / pow($k, $i)), $decimals); |
} |
function kibibytesToBytes($kibibytes, $vnstatJsonVersion) { |
114,6 → 63,20 |
} |
} |
function getLargestPrefix($kb) |
{ |
$units = ['TB', 'GB', 'MB', 'KB', 'B']; |
$scale = 1024 * 1024 * 1024 * 1024; |
$ui = 0; |
while ((($kb < $scale) && ($scale > 1))) { |
$ui++; |
$scale = $scale / 1024; |
} |
return $units[$ui]; |
} |
function sortingFunction($item1, $item2) { |
if ($item1['time'] == $item2['time']) { |
return 0; |
/web/acc/manager/vnstat/templates/module_footer.tpl |
---|
5,8 → 5,8 |
</div> |
</footer> |
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> |
<script src="/js/jquery.slim.min.js"></script> |
<script src="/js/bootstrap.min.js"></script> |
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> |
{include file="module_graph_js.tpl"} |
</body> |
</html> |
/web/acc/manager/vnstat/templates/module_graph.tpl |
---|
1,18 → 1,9 |
<div class="container"> |
<ul class="nav nav-tabs" id="graphTab" role="tablist"> |
{if $jsonVersion gt 1} |
<li class="nav-item"> |
<a class="nav-link active" id="five-graph-tab" data-toggle="tab" href="#five-graph" role="tab" aria-controls="five-graph" aria-selected="true">Five Minute Graph</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="hourly-graph-tab" data-toggle="tab" href="#hourly-graph" role="tab" aria-controls="hourly-graph" aria-selected="false">Hourly Graph</a> |
</li> |
{else} |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-graph-tab" data-toggle="tab" href="#hourly-graph" role="tab" aria-controls="hourly-graph" aria-selected="true">Hourly Graph</a> |
</li> |
{/if} |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-graph-tab" data-toggle="tab" href="#hourly-graph" role="tab" aria-controls="hourly-graph" aria-selected="true">Hourly Graph</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="daily-graph-tab" data-toggle="tab" href="#daily-graph" role="tab" aria-controls="daily-graph" aria-selected="false">Daily Graph</a> |
</li> |
<li class="nav-item"> |
21,20 → 12,10 |
</ul> |
<div class="tab-content"> |
{if $jsonVersion gt 1} |
<div class="tab-pane fade show active" id="five-graph" role="tabpanel" aria-labelledby="five-graph-tab"> |
<div id="fiveNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
<div class="tab-pane fade show active" id="hourly-graph" role="tabpanel" aria-labelledby="hourly-graph-tab"> |
<div id="hourlyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
<div class="tab-pane fade" id="hourly-graph" role="tabpanel" aria-labelledby="hourly-graph-tab"> |
<div id="hourlyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
{else} |
<div class="tab-pane fade show active" id="hourly-graph" role="tabpanel" aria-labelledby="hourly-graph-tab"> |
<div id="hourlyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
{/if} |
<div class="tab-pane fade" id="daily-graph" role="tabpanel" aria-labelledby="daily-graph-tab"> |
<div id="dailyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
/web/acc/manager/vnstat/templates/module_graph_js.tpl |
---|
1,80 → 1,11 |
<script type="text/javascript"> |
google.charts.load('current', { packages: [ 'bar' ] }); |
google.charts.load("current", { packages: [ 'corechart' ] }); |
google.charts.setOnLoadCallback(drawFiveChart); |
google.charts.setOnLoadCallback(drawHourlyChart); |
google.charts.setOnLoadCallback(drawDailyChart); |
google.charts.setOnLoadCallback(drawMonthlyChart); |
function drawFiveChart() |
{ |
{if $jsonVersion gt 1} |
var data = new google.visualization.DataTable(); |
data.addColumn('datetime', 'Time'); |
data.addColumn('number', 'Traffic In'); |
data.addColumn('number', 'Traffic Out'); |
data.addColumn('number', 'Total Traffic'); |
data.addRows([ |
{foreach from=$fiveGraphData key=key item=value} |
[new {$value.label}, {$value.rx}, {$value.tx}, {$value.total}], |
{/foreach} |
]); |
let endD = (new {$fiveGraphData[0]['label']}).getTime(); |
let options = { |
title: 'Five minute Network Traffic', |
orientation: 'horizontal', |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
zoomDelta: 1.1, |
maxZoomIn: 0.1, |
maxZoomOut: 10.0 |
}, |
vAxis: { |
format: '###.### {$fiveLargestPrefix}' |
{if $graph_type == 'log'} |
,scaleType: 'log', |
baseline: {$fiveBase} |
{/if} |
}, |
hAxis: { |
direction: -1, |
format: 'd/H:mm', |
{if $jsonVersion > 1} |
title: 'Day/Hour:Minute (Scroll to zoom, Drag to pan)', |
{else} |
title: 'Day/Hour:Minute', |
{/if} |
viewWindow: { |
min: 'Date('+(endD-7050000).toString()+')', |
max: 'Date('+(endD+150000).toString()+')' |
}, |
ticks: [ |
{foreach from=$fiveGraphData key=key item=value} |
new {$value.label}, |
{/foreach} |
] |
} |
}; |
var formatDate = new google.visualization.DateFormat({ pattern: 'dd/MM/yyyy HH:mm' }); |
formatDate.format(data, 0); |
var formatNumber = new google.visualization.NumberFormat({ pattern: '##.## {$fiveLargestPrefix}' }); |
formatNumber.format(data, 1); |
formatNumber.format(data, 2); |
formatNumber.format(data, 3); |
let chart = new google.visualization.BarChart(document.getElementById('fiveNetworkTrafficGraph')); |
chart.draw(data, google.charts.Bar.convertOptions(options)); |
{/if} |
} |
function drawHourlyChart() |
{ |
var data = new google.visualization.DataTable(); |
90,8 → 21,6 |
{/foreach} |
]); |
let endD = (new {$hourlyGraphData[0]['label']}).getTime(); |
let options = { |
title: 'Hourly Network Traffic', |
orientation: 'horizontal', |
98,29 → 27,17 |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
zoomDelta: 1.1, |
maxZoomIn: 0.1, |
maxZoomOut: 10.0 |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
format: '###.### {$hourlyLargestPrefix}' |
{if $graph_type == 'log'} |
,scaleType: 'log', |
baseline: {$hourlyBase} |
{/if} |
title: 'Data', |
format: '##.## {$hourlyLargestPrefix}' |
}, |
hAxis: { |
{if $jsonVersion > 1} |
title: 'Day/Hour (Scroll to zoom, Drag to pan)', |
{else} |
title: 'Day/Hour', |
{/if} |
format: 'd/H', |
title: 'Hour', |
format: 'HH:mm', |
direction: -1, |
viewWindow: { |
min: 'Date('+(endD-84600000).toString()+')', |
max: 'Date('+(endD+1800000).toString()+')' |
}, |
ticks: [ |
{foreach from=$hourlyGraphData key=key item=value} |
new {$value.label}, |
155,9 → 72,7 |
[new {$value.label}, {$value.rx}, {$value.tx}, {$value.total}], |
{/foreach} |
]); |
let endD = (new {$dailyGraphData[0]['label']}).getTime(); |
let options = { |
title: 'Daily Network Traffic', |
orientation: 'horizontal', |
164,37 → 79,20 |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
zoomDelta: 1.1, |
maxZoomIn: 0.1, |
maxZoomOut: 10.0 |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
format: '###.### {$dailyLargestPrefix}' |
{if $graph_type == 'log'} |
,scaleType: 'log', |
baseline: {$dailyBase} |
{/if} |
title: 'Data', |
format: '##.## {$dailyLargestPrefix}' |
}, |
hAxis: { |
{if $jsonVersion > 1} |
title: 'Day (Scroll to zoom, Drag to pan)', |
{else} |
title: 'Day', |
{/if} |
title: 'Day', |
format: 'dd/MM/YYYY', |
viewWindow: { |
min: 'Date('+(endD-2548800000).toString()+')', |
max: 'Date('+(endD+43200000).toString()+')' |
}, |
direction: -1, |
ticks: [ |
{foreach from=$dailyGraphData key=key item=value} |
new {$value.label}, |
{/foreach} |
] |
direction: -1 |
} |
}; |
var formatDate = new google.visualization.DateFormat({ pattern: 'dd/MM/yyyy' }); |
formatDate.format(data, 0); |
228,11 → 126,11 |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
zoomDelta: 1.1, |
maxZoomIn: 0.1, |
maxZoomOut: 10.0 |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
title: 'Data', |
format: '##.## {$monthlyLargestPrefix}' |
}, |
hAxis: { |
/web/acc/manager/vnstat/templates/module_table.tpl |
---|
1,18 → 1,9 |
<div class="container"> |
<ul class="nav nav-tabs" id="tableTab" role="tablist"> |
{if $jsonVersion gt 1} |
<li class="nav-item"> |
<a class="nav-link active" id="five-table-tab" data-toggle="tab" href="#five-table" role="tab" aria-controls="five-table" aria-selected="true">Five Minute</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="false">Hourly</a> |
</li> |
{else} |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="true">Hourly</a> |
</li> |
{/if} |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="true">Hourly</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="daily-table-tab" data-toggle="tab" href="#daily-table" role="tab" aria-controls="daily-table" aria-selected="false">Daily</a> |
</li> |
<li class="nav-item"> |
24,34 → 15,7 |
</ul> |
<div class="tab-content" id="tableTabContent"> |
{if $jsonVersion gt 1} |
<div class="tab-pane fade show active" id="five-table" role="tabpanel" aria-labelledby="five-table-tab"> |
<table class="table table-bordered"> |
<thead> |
<tr> |
<th>Time</th> |
<th>Received</th> |
<th>Sent</th> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
{foreach from=$fiveTableData key=key item=value} |
<tr> |
<td>{$value.label}</td> |
<td>{$value.rx}</td> |
<td>{$value.tx}</td> |
<td>{$value.total}</td> |
</tr> |
{/foreach} |
</tbody> |
</table> |
</div> |
<div class="tab-pane fade" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab"> |
{else} |
<div class="tab-pane fade show active" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab"> |
{/if} |
<table class="table table-bordered"> |
<thead> |
<tr> |
/web/acc/manager/vnstat/templates_c/0d0c6b8d28b17c4ffaf65435e1e6cc17f87d6e6d_0.file.module_graph_js.tpl.php |
---|
0,0 → 1,228 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 17:23:34 |
from '/var/www/html/acc/manager/vnstat/templates/module_graph_js.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91ef06853392_40488972', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'0d0c6b8d28b17c4ffaf65435e1e6cc17f87d6e6d' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/module_graph_js.tpl', |
1 => 1586598464, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
), |
),false)) { |
function content_5e91ef06853392_40488972 (Smarty_Internal_Template $_smarty_tpl) { |
?> <?php echo '<script'; ?> |
type="text/javascript"> |
google.charts.load('current', { packages: [ 'bar' ] }); |
google.charts.load("current", { packages: [ 'corechart' ] }); |
google.charts.setOnLoadCallback(drawHourlyChart); |
google.charts.setOnLoadCallback(drawDailyChart); |
google.charts.setOnLoadCallback(drawMonthlyChart); |
function drawHourlyChart() |
{ |
var data = new google.visualization.DataTable(); |
data.addColumn('date', 'Hour'); |
data.addColumn('number', 'Traffic In'); |
data.addColumn('number', 'Traffic Out'); |
data.addColumn('number', 'Total Traffic'); |
data.addRows([ |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hourlyGraphData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
[new <?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
], |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
]); |
let options = { |
title: 'Hourly Network Traffic', |
orientation: 'horizontal', |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
title: 'Data', |
format: '##.## <?php echo $_smarty_tpl->tpl_vars['hourlyLargestPrefix']->value;?> |
' |
}, |
hAxis: { |
title: 'Hour', |
format: 'HH:mm', |
direction: -1, |
ticks: [ |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hourlyGraphData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
new <?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
, |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
] |
} |
}; |
var formatDate = new google.visualization.DateFormat({ pattern: 'dd/MM/yyyy HH:mm' }); |
formatDate.format(data, 0); |
var formatNumber = new google.visualization.NumberFormat({ pattern: '##.## <?php echo $_smarty_tpl->tpl_vars['hourlyLargestPrefix']->value;?> |
' }); |
formatNumber.format(data, 1); |
formatNumber.format(data, 2); |
formatNumber.format(data, 3); |
let chart = new google.visualization.BarChart(document.getElementById('hourlyNetworkTrafficGraph')); |
chart.draw(data, google.charts.Bar.convertOptions(options)); |
} |
function drawDailyChart() |
{ |
var data = new google.visualization.DataTable(); |
data.addColumn('date', 'Day'); |
data.addColumn('number', 'Traffic In'); |
data.addColumn('number', 'Traffic Out'); |
data.addColumn('number', 'Total Traffic'); |
data.addRows([ |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dailyGraphData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
[new <?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
], |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
]); |
let options = { |
title: 'Daily Network Traffic', |
orientation: 'horizontal', |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
title: 'Data', |
format: '##.## <?php echo $_smarty_tpl->tpl_vars['dailyLargestPrefix']->value;?> |
' |
}, |
hAxis: { |
title: 'Day', |
format: 'dd/MM/YYYY', |
direction: -1 |
} |
}; |
var formatDate = new google.visualization.DateFormat({ pattern: 'dd/MM/yyyy' }); |
formatDate.format(data, 0); |
var formatNumber = new google.visualization.NumberFormat({ pattern: '##.## <?php echo $_smarty_tpl->tpl_vars['dailyLargestPrefix']->value;?> |
' }); |
formatNumber.format(data, 1); |
formatNumber.format(data, 2); |
formatNumber.format(data, 3); |
let chart = new google.visualization.BarChart(document.getElementById('dailyNetworkTrafficGraph')); |
chart.draw(data, google.charts.Bar.convertOptions(options)); |
} |
function drawMonthlyChart() |
{ |
var data = new google.visualization.DataTable(); |
data.addColumn('date', 'Month'); |
data.addColumn('number', 'Traffic In'); |
data.addColumn('number', 'Traffic Out'); |
data.addColumn('number', 'Total Traffic'); |
data.addRows([ |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['monthlyGraphData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
[new <?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
, <?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
], |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
]); |
let options = { |
title: 'Monthly Network Traffic', |
orientation: 'horizontal', |
legend: { position: 'right' }, |
explorer: { |
axis: 'horizontal', |
maxZoomIn: 4.0, |
maxZoomOut: 3.0 |
}, |
vAxis: { |
title: 'Data', |
format: '##.## <?php echo $_smarty_tpl->tpl_vars['monthlyLargestPrefix']->value;?> |
' |
}, |
hAxis: { |
title: 'Month', |
format: 'MMMM YYYY', |
direction: -1 |
} |
}; |
var formatDate = new google.visualization.DateFormat({ pattern: 'MMMM YYYY' }); |
formatDate.format(data, 0); |
var formatNumber = new google.visualization.NumberFormat({ pattern: '##.## <?php echo $_smarty_tpl->tpl_vars['monthlyLargestPrefix']->value;?> |
' }); |
formatNumber.format(data, 1); |
formatNumber.format(data, 2); |
formatNumber.format(data, 3); |
let chart = new google.visualization.BarChart(document.getElementById('monthlyNetworkTrafficGraph')); |
chart.draw(data, google.charts.Bar.convertOptions(options)); |
} |
<?php echo '</script'; ?> |
> |
<?php } |
} |
/web/acc/manager/vnstat/templates_c/1e81c22f2b2d1f91cd03aa4725f8c35f066935d4_0.file.module_header.tpl.php |
---|
0,0 → 1,37 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 18:15:21 |
from '/var/www/html/acc/manager/vnstat/templates/module_header.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91fb29228383_96978558', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'1e81c22f2b2d1f91cd03aa4725f8c35f066935d4' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/module_header.tpl', |
1 => 1586625139, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
), |
),false)) { |
function content_5e91fb29228383_96978558 (Smarty_Internal_Template $_smarty_tpl) { |
?><!DOCTYPE html> |
<html lang="en"> |
<head> |
<title>Network Traffic</title> |
<meta charset="UTF-8"> |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
<!-- Bootstrap CSS --> |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
<!-- Custom CSS --> |
<link rel="stylesheet" href="./assets/css/style.css"> |
</head> |
<body> |
<?php } |
} |
/web/acc/manager/vnstat/templates_c/2b2bc100a3154406caafbf0c1dff8bf361bd6b94_0.file.site_index.tpl.php |
---|
0,0 → 1,39 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 17:23:34 |
from '/var/www/html/acc/manager/vnstat/templates/site_index.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91ef068214d4_12711736', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'2b2bc100a3154406caafbf0c1dff8bf361bd6b94' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/site_index.tpl', |
1 => 1586598464, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
'file:module_header.tpl' => 1, |
'file:module_graph.tpl' => 1, |
'file:module_table.tpl' => 1, |
'file:module_footer.tpl' => 1, |
), |
),false)) { |
function content_5e91ef068214d4_12711736 (Smarty_Internal_Template $_smarty_tpl) { |
$_smarty_tpl->_subTemplateRender("file:module_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); |
?> |
<?php $_smarty_tpl->_subTemplateRender("file:module_graph.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); |
?> |
<?php $_smarty_tpl->_subTemplateRender("file:module_table.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); |
?> |
<?php $_smarty_tpl->_subTemplateRender("file:module_footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); |
} |
} |
/web/acc/manager/vnstat/templates_c/2f5e32e2f04fabdfea23a29aa98d7ff7e7a2fbf4_0.file.module_table.tpl.php |
---|
0,0 → 1,179 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 17:23:34 |
from '/var/www/html/acc/manager/vnstat/templates/module_table.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91ef0683e7a5_23211614', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'2f5e32e2f04fabdfea23a29aa98d7ff7e7a2fbf4' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/module_table.tpl', |
1 => 1586598464, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
), |
),false)) { |
function content_5e91ef0683e7a5_23211614 (Smarty_Internal_Template $_smarty_tpl) { |
?> <div class="container"> |
<ul class="nav nav-tabs" id="tableTab" role="tablist"> |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-table-tab" data-toggle="tab" href="#hourly-table" role="tab" aria-controls="hourly-table" aria-selected="true">Hourly</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="daily-table-tab" data-toggle="tab" href="#daily-table" role="tab" aria-controls="daily-table" aria-selected="false">Daily</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="monthly-table-tab" data-toggle="tab" href="#monthly-table" role="tab" aria-controls="monthly-table" aria-selected="false">Monthly</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="top10-table-tab" data-toggle="tab" href="#top10-table" role="tab" aria-controls="top10-table" aria-selected="false">Top 10</a> |
</li> |
</ul> |
<div class="tab-content" id="tableTabContent"> |
<div class="tab-pane fade show active" id="hourly-table" role="tabpanel" aria-labelledby="hourly-table-tab"> |
<table class="table table-bordered"> |
<thead> |
<tr> |
<th>Hour</th> |
<th>Received</th> |
<th>Sent</th> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['hourlyTableData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
<tr> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
</td> |
</tr> |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
</tbody> |
</table> |
</div> |
<div class="tab-pane fade" id="daily-table" role="tabpanel" aria-labelledby="daily-table-tab"> |
<table class="table table-bordered"> |
<thead> |
<tr> |
<th>Day</th> |
<th>Received</th> |
<th>Sent</th> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['dailyTableData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
<tr> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
</td> |
</tr> |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
</tbody> |
</table> |
</div> |
<div class="tab-pane fade" id="monthly-table" role="tabpanel" aria-labelledby="monthly-table-tab"> |
<table class="table table-bordered"> |
<thead> |
<tr> |
<th>Month</th> |
<th>Received</th> |
<th>Sent</th> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['monthlyTableData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
<tr> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
</td> |
</tr> |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
</tbody> |
</table> |
</div> |
<div class="tab-pane fade" id="top10-table" role="tabpanel" aria-labelledby="top10-table-tab"> |
<table class="table table-bordered"> |
<thead> |
<tr> |
<th>Day</th> |
<th>Received</th> |
<th>Sent</th> |
<th>Total</th> |
</tr> |
</thead> |
<tbody> |
<?php |
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['top10TableData']->value, 'value', false, 'key'); |
$_smarty_tpl->tpl_vars['value']->do_else = true; |
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['value']->value) { |
$_smarty_tpl->tpl_vars['value']->do_else = false; |
?> |
<tr> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['label'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['rx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['tx'];?> |
</td> |
<td><?php echo $_smarty_tpl->tpl_vars['value']->value['total'];?> |
</td> |
</tr> |
<?php |
} |
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?> |
</tbody> |
</table> |
</div> |
</div> |
</div> |
<?php } |
} |
/web/acc/manager/vnstat/templates_c/553ce6260759b1d4166e3cb1ffe0a8ac55227d7c_0.file.module_graph.tpl.php |
---|
0,0 → 1,52 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 17:23:34 |
from '/var/www/html/acc/manager/vnstat/templates/module_graph.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91ef0682f914_56965249', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'553ce6260759b1d4166e3cb1ffe0a8ac55227d7c' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/module_graph.tpl', |
1 => 1586598464, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
), |
),false)) { |
function content_5e91ef0682f914_56965249 (Smarty_Internal_Template $_smarty_tpl) { |
?> <div class="container"> |
<ul class="nav nav-tabs" id="graphTab" role="tablist"> |
<li class="nav-item"> |
<a class="nav-link active" id="hourly-graph-tab" data-toggle="tab" href="#hourly-graph" role="tab" aria-controls="hourly-graph" aria-selected="true">Hourly Graph</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="daily-graph-tab" data-toggle="tab" href="#daily-graph" role="tab" aria-controls="daily-graph" aria-selected="false">Daily Graph</a> |
</li> |
<li class="nav-item"> |
<a class="nav-link" id="monthly-graph-tab" data-toggle="tab" href="#monthly-graph" role="tab" aria-controls="monthly-graph" aria-selected="false">Monthly Graph</a> |
</li> |
</ul> |
<div class="tab-content"> |
<div class="tab-pane fade show active" id="hourly-graph" role="tabpanel" aria-labelledby="hourly-graph-tab"> |
<div id="hourlyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
<div class="tab-pane fade" id="daily-graph" role="tabpanel" aria-labelledby="daily-graph-tab"> |
<div id="dailyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
<div class="tab-pane fade" id="monthly-graph" role="tabpanel" aria-labelledby="monthly-graph-tab"> |
<div id="monthlyNetworkTrafficGraph" style="height: 300px;"></div> |
</div> |
</div> |
</div> |
<?php } |
} |
/web/acc/manager/vnstat/templates_c/5a392efaa6cf5a3bce2bfeb15f87c356ee77a3c2_0.file.module_footer.tpl.php |
---|
0,0 → 1,45 |
<?php |
/* Smarty version 3.1.34-dev-7, created on 2020-04-11 18:15:41 |
from '/var/www/html/acc/manager/vnstat/templates/module_footer.tpl' */ |
/* @var Smarty_Internal_Template $_smarty_tpl */ |
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array ( |
'version' => '3.1.34-dev-7', |
'unifunc' => 'content_5e91fb3d487197_56844188', |
'has_nocache_code' => false, |
'file_dependency' => |
array ( |
'5a392efaa6cf5a3bce2bfeb15f87c356ee77a3c2' => |
array ( |
0 => '/var/www/html/acc/manager/vnstat/templates/module_footer.tpl', |
1 => 1586625338, |
2 => 'file', |
), |
), |
'includes' => |
array ( |
'file:module_graph_js.tpl' => 1, |
), |
),false)) { |
function content_5e91fb3d487197_56844188 (Smarty_Internal_Template $_smarty_tpl) { |
?> <footer class="footer"> |
<div class="container"> |
<span class="text-muted">Generated by 'vnstat-dashboard' |
</span> |
</div> |
</footer> |
<?php echo '<script'; ?> |
type="text/javascript" src="https://www.gstatic.com/charts/loader.js"><?php echo '</script'; ?> |
> |
<?php echo '<script'; ?> |
src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"><?php echo '</script'; ?> |
> |
<?php echo '<script'; ?> |
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"><?php echo '</script'; ?> |
> |
<?php $_smarty_tpl->_subTemplateRender("file:module_graph_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false); |
?> |
</body> |
</html> |
<?php } |
} |
/web/js/jquery.slim.min.js |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:special |
-* |
\ No newline at end of property |
/web/js/jquery-3.6.3.slim.min.js |
---|
File deleted |