Changeset 6c1e4cad87af539c5d638421a3f5af186866e5c3

Show
Ignore:
Timestamp:
09/05/08 19:57:59 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1220644679 +0000
git-parent:

[b0e455c7afe4f98214b30df656b76b2c28d67328]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1220644679 +0000
Message:

allow hidden inputs and offet up packets on the bw graph too

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/bw_graph.php

    rc33606c r6c1e4ca  
    1414                var so = new SWFObject("amcharts/amline/amline.swf", "amline", "780", "400", "8", "#FFFFFF"); 
    1515                so.addVariable("path", "amcharts/amline/"); 
    16                 so.addVariable("settings_file", escape("bw_settings.php?id=<?php print $_GET['id'] ?>&start=<?php print $_GET['start'] ?>&end=<?php print $_GET['end'] ?>&cnt=<?php print isset($_GET['cnt']) ? $_GET['cnt'] : 500 ?>")); 
     16                so.addVariable("settings_file", escape("bw_settings.php?id=<?php print $_GET['id'] ?>&start=<?php print $_GET['start'] ?>&end=<?php print $_GET['end'] ?>&cnt=<?php print isset($_GET['cnt']) ? $_GET['cnt'] : 500 ?>&view=<?php print $_GET['view'] ?>")); 
    1717                so.addVariable("preloader_color", "#999999"); 
    1818                so.write("flashcontent"); 
  • ui/web/htdocs/bw_settings.php

    re7e6b89 r6c1e4ca  
    99$math = '$this->bw($value)'; 
    1010$start = $_GET['start']; 
     11$view = $_GET['view']; 
    1112if(!$start) { 
    1213  $start = strftime("%Y-%m-%d %H:%M:%S", time() - (7*86400)); 
     
    2223$settings = $graph_settings[$i++]; 
    2324$settings['expression'] = "0 - $math"; 
     25$settings['hidden'] = ($view != "packets") ? "false" : "true"; 
    2426$driver->addDataSet($uuid, 'inoctets', true, '$value * 8', $settings); 
    2527$settings = $graph_settings[$i++]; 
    2628$settings['expression'] = "$math"; 
     29$settings['hidden'] = ($view != "packets") ? "false" : "true"; 
    2730$driver->addDataSet($uuid, 'outoctets', true, '$value * 8', $settings); 
     31$settings = $graph_settings[$i++]; 
     32$settings['expression'] = '0 - $value'; 
     33$settings['axis'] = "right"; 
     34$settings['hidden'] = ($view == "packets") ? "false" : "true"; 
     35$driver->addDataSet($uuid, 'inucastpkts', true, '$value', $settings); 
     36$settings = $graph_settings[$i++]; 
     37$settings['expression'] = '$value'; 
     38$settings['axis'] = "right"; 
     39$settings['hidden'] = ($view == "packets") ? "false" : "true"; 
     40$driver->addDataSet($uuid, 'outucastpkts', true, '$value', $settings); 
    2841$driver->addChangeSet($uuid, 'alias'); 
    2942$driver->calcPercentile(95); 
     
    3548?> 
    3649<settings> 
     50<type></type> 
    3751<data> 
    3852<chart> 
  • ui/web/htdocs/graph_settings.inc

    re7e6b89 r6c1e4ca  
    55$colors[] = '#33aa33'; 
    66$colors[] = '#4a00dc'; 
    7 $colors[] = '#fadc00'; 
    8 $colors[] = '#3333cc'; 
     7$colors[] = '#caac00'; 
     8$colors[] = '#3377cc'; 
    99$colors[] = '#00acfa'; 
    1010$colors[] = '#cc3333'; 
  • ui/web/lib/Reconnoiter_amCharts_Driver.php

    re7e6b89 r6c1e4ca  
    88      'axis', 'gid','title','color','fill_color','fill_alpha','color_hover', 
    99      'balloon_color','balloon_alpha','balloon_text_color','balloon_text', 
    10       'bullet','bullet_size','bullet_color','visible_in_legend','selected' 
     10      'bullet','bullet_size','bullet_color','visible_in_legend','selected', 
     11      'hidden' 
    1112    ); 
    1213  }