-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
61 lines (48 loc) · 995 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
include( "intel_header.php" );
?>
<div id="container" style="width:900px;height:500px"></div>
<br /><br />
<div id="container2" style="width:900px;height:500px"></div>
<br /><br />
<div id="subnetsusage" style="width:900px;height:400px"></div>
<br /><br />
<div align='center' id="stolenips" style="width:800px;"><h2>Stolen</h2><br /></div>
<script type='text/javascript'>
var chart;
var chart2;
var subnetchart;
var dhcpdata;
var pingdata;
var curr_hour = <?php print date( "G" ); ?>;
var lasthour = 0;
var starthour = 0;
if( curr_hour - 10 <= 0 )
{
starthour = 0;
lasthour = 10;
}
else
{
starthour = curr_hour - 10;
lasthour = curr_hour + 1;
}
$(document).ready(function()
{
$.getJSON( 'logs/dhcpd-stats.txt' , function( data )
{
dhcpdata = data;
$.getJSON( 'logs/ping-stats.txt' , function( data2 )
{
pingdata = data2;
chartPie();
chartSubnets();
showStolen();
chartToday();
});
});
});
</script>
<?php
include( "intel_footer.php" );
?>