1<?php
2
3function DisplayOverview () {
4
5	global $self;
6
7	$profile      = $_SESSION['profile'];
8	$profilegroup = $_SESSION['profilegroup'];
9
10	if ( $profilegroup == '.' )
11		print "<h2>Overview Profile: $profile, Group: (nogroup)</h2>\n";
12	else
13		print "<h2>Overview Profile: $profile, Group $profilegroup</h2>\n";
14
15	if ( $_SESSION['profileinfo']['graphs'] != 'ok' ) {
16		print "<h2>No data available!</h2>\n";
17		return;
18	}
19
20	$profileswitch = "$profilegroup/$profile";
21	print "<a href='$self?tab=2&type=flows'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=flows-day' width='328' height='163' border='0' alt='flows-day'></a>\n";
22	print "<a href='$self?tab=2&type=packets'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=packets-day' width='328' height='163' border='0' alt='packets-day'></a>\n";
23	print "<a href='$self?tab=2&type=traffic'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=traffic-day' width='328' height='163' border='0' alt='traffic-day'></a>\n";
24	print "<br>";
25	print "<a href='$self?tab=2&type=flows'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=flows-week' width='328' height='163' border='0' alt='flows-week'></a>\n";
26	print "<a href='$self?tab=2&type=packets'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=packets-week' width='328' height='163' border='0' alt='packets-week'></a>\n";
27	print "<a href='$self?tab=2&type=traffic'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=traffic-week' width='328' height='163' border='0' alt='traffic-week'></a>\n";
28	print "<br>";
29	print "<a href='$self?tab=2&type=flows'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=flows-month' width='328' height='163' border='0' alt='flows-month'></a>\n";
30	print "<a href='$self?tab=2&type=packets'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=packets-month' width='328' height='163' border='0' alt='packets-month'></a>\n";
31	print "<a href='$self?tab=2&type=traffic'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=traffic-month' width='328' height='163' border='0' alt='traffic-month'></a>\n";
32	print "<br>";
33	print "<a href='$self?tab=2&type=flows'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=flows-year' width='328' height='163' border='0' alt='flows-year'></a>\n";
34	print "<a href='$self?tab=2&type=packets'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=packets-year' width='328' height='163' border='0' alt='packets-year'></a>\n";
35	print "<a href='$self?tab=2&type=traffic'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=traffic-year' width='328' height='163' border='0' alt='traffic-year'></a>\n";
36
37} // End of DisplayOverview
38
39function DisplayGraphs ($type) {
40
41	global $self;
42
43	$profile      = $_SESSION['profile'];
44	$profilegroup = $_SESSION['profilegroup'];
45
46	if ( $profilegroup == '.' )
47		print "<h2>Profile: $profile, Group: (nogroup) - $type</h2>\n";
48	else
49		print "<h2>Profile: $profile, Group: $profilegroup - $type</h2>\n";
50
51	if ( $_SESSION['profileinfo']['graphs'] != 'ok' ) {
52		print "<h2>No data available!</h2>\n";
53		return;
54	}
55
56	$profileswitch = "$profilegroup/$profile";
57	print "<a href='$self?tab=2&win=day&type=$type'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=${type}-day' width='669' height='281' border='0'></a>\n";
58	print "<br>";
59	print "<a href='$self?tab=2&win=week&type=$type'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=${type}-week' width='669' height='281' border='0'></a>\n";
60	print "<br>";
61	print "<a href='$self?tab=2&win=month&type=$type'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=${type}-month' width='669' height='281' border='0'></a>\n";
62	print "<br>";
63	print "<a href='$self?tab=2&win=year&type=$type'> <IMG src='pic.php?profileswitch=$profileswitch&amp;file=${type}-year' width='669' height='281' border='0'></a>\n";
64	print "<br>";
65
66} # End of DisplayHistory
67
68?>
69