/* * Print graph of Top IPv4 hosts by percentage **********************************************/ /* required functions */ if (!function_exists('getSubnetStatsDashboard')) { require_once dirname(__FILE__) . '/../../../functions/functions.php'; } # no errors! ini_set('display_errors', 0); # set size parameters $height = 200; $slimit = 10; # get widget parameters if (strlen(@$_REQUEST['section']) > 0) { $widget = getWidgetByFile($_REQUEST['section']); } # if direct request include plot JS if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { # reset size and limit $height = 350; $slimit = 20; # include flot JS print '<script language="javascript" type="text/javascript" src="js/flot/jquery.flot.js"></script>'; print '<script language="javascript" type="text/javascript" src="js/flot/jquery.flot.categories.js"></script>'; print '<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/flot/excanvas.min.js"></script><![endif]-->'; # and print title print "<div class='container'>"; print "<h4 style='margin-top:40px;'>{$widget['wtitle']}</h4><hr>"; print "</div>"; }
<?php /* * Print graph of Top IPv4 hosts by percentage **********************************************/ /* required functions */ if (!function_exists('getSubnetStatsDashboard')) { require_once dirname(__FILE__) . '/../../../functions/functions.php'; } # no errors! ini_set('display_errors', 0); # set size parameters $height = 200; $slimit = 10; # get widget parameters $widget = getWidgetByFile($_REQUEST['subpage']); # if direct request include plot JS if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { # reset size and limit $height = 350; $slimit = 20; # include flot JS print '<script language="javascript" type="text/javascript" src="js/flot/jquery.flot.js"></script>'; print '<script language="javascript" type="text/javascript" src="js/flot/jquery.flot.categories.js"></script>'; print '<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/flot/excanvas.min.js"></script><![endif]-->'; # and print title print "<div class='container'>"; print "<h4 style='margin-top:40px;'>{$widget['wtitle']}</h4><hr>"; print "</div>"; } $type = "IPv4";