"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "graph_all_periods.php" between
ganglia-web-3.7.1.tar.gz and ganglia-web-3.7.2.tar.gz

About: Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and grids (Ganglia Web UI).

graph_all_periods.php  (ganglia-web-3.7.1):graph_all_periods.php  (ganglia-web-3.7.2)
<?php <?php
include_once "./eval_conf.php";
include_once "./global.php";
if (!isset($_REQUEST['embed']) && !isset($_REQUEST['mobile'])) { if (!isset($_REQUEST['embed']) && !isset($_REQUEST['mobile'])) {
?> ?>
<html> <html>
<head> <head>
<title>Ganglia: Graph all periods</title> <title>Ganglia: Graph all periods</title>
<link rel="stylesheet" href="./styles.css" type="text/css" /> <link rel="stylesheet" href="./styles.css" type="text/css" />
<script type="text/javascript" src="<?php print $conf['jquery_js_path']; ?>"></s cript> <script type="text/javascript" src="<?php print $conf['jquery_js_path']; ?>"></s cript>
<script>$.uiBackCompat = false;</script> <script>$.uiBackCompat = false;</script>
<script type="text/javascript" src="<?php print $conf['jqueryui_js_path']; ?>">< /script> <script type="text/javascript" src="<?php print $conf['jqueryui_js_path']; ?>">< /script>
<script type="text/javascript" src="js/jquery.livesearch.min.js"></script> <script type="text/javascript" src="js/jquery.livesearch.min.js"></script>
skipping to change at line 44 skipping to change at line 46
width:800, width:800,
height:500, height:500,
position: { my: "top", position: { my: "top",
at: "top+200", at: "top+200",
of: window } } ); of: window } } );
<?php } ?> <?php } ?>
}); });
</script> </script>
<?php <?php
include_once "./eval_conf.php";
include_once "./global.php";
// build a query string but drop r and z since those designate time // build a query string but drop r and z since those designate time
// window and size. Also if the get arguments are an array rebuild them. // window and size. Also if the get arguments are an array rebuild them.
// For example with hreg (host regex) // For example with hreg (host regex)
$ignore_keys_list = array("r", "z", "st", "cs", "ce", "hc"); $ignore_keys_list = array("r", "z", "st", "cs", "ce", "hc");
foreach ($_GET as $key => $value) { foreach ($_GET as $key => $value) {
if (!in_array($key, $ignore_keys_list) && !is_array($value)) if (!in_array($key, $ignore_keys_list) && !is_array($value))
$query_string_array[] = rawurlencode($key) . "=" . urlencode($value); $query_string_array[] = rawurlencode($key) . "=" . urlencode($value);
skipping to change at line 112 skipping to change at line 112
<style type="text/css"> <style type="text/css">
.flotgraph { .flotgraph {
height: <?php print $conf['graph_sizes'][$largesize]["height"] ?>px; height: <?php print $conf['graph_sizes'][$largesize]["height"] ?>px;
width: <?php print $conf['graph_sizes'][$largesize]["width"] ?>px; width: <?php print $conf['graph_sizes'][$largesize]["width"] ?>px;
} }
</style> </style>
<?php <?php
// Add JQuery and flot loading only if this is not embedded in the // Add JQuery and flot loading only if this is not embedded in the
// Aggregate Graphs Tab // Aggregate Graphs Tab
if (!isset($_GET['embed'])) { ?> if (!isset($_GET['embed'])) { ?>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/e <script language="javascript" type="text/javascript" src="<?php print $conf['jqu
xcanvas.min.js"></script><![endif]--> ery_flot_base_path']; ?>.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.flot.min.js" <script language="javascript" type="text/javascript" src="<?php print $conf['jqu
></script> ery_flot_base_path']; ?>.time.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.flot.time.mi
n.js"></script>
<?php <?php
} // end of if (!isset($_GET['embed']) } // end of if (!isset($_GET['embed'])
?> ?>
<script type="text/javascript"> <script type="text/javascript">
var default_time = 'hour'; var default_time = 'hour';
var metric = "<?php if (isset($_GET['g'])) echo $_GET['g']; else echo $_GET['m ']; ?>"; var metric = "<?php if (isset($_GET['g'])) echo $_GET['g']; else echo $_GET['m ']; ?>";
var base_url = "<?php print 'graph.php?flot=1&amp;' . $_GET['m'] . $query_stri ng ?>" + "&amp;r=" + default_time; var base_url = "<?php print 'graph.php?flot=1&amp;' . $_GET['m'] . $query_stri ng ?>" + "&amp;r=" + default_time;
</script> </script>
<script type="text/javascript" src="js/create-flot-graphs.js"></script> <script type="text/javascript" src="js/create-flot-graphs.js"></script>
<?php <?php
 End of changes. 3 change blocks. 
8 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS