diff options
| author | Pim van den Berg | 2013-02-09 22:57:04 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2013-02-09 22:57:04 +0100 |
| commit | bae7725e9920e95caf6c072b29892165d784549b (patch) | |
| tree | 117bd60bd4d0c9847bb69432db1688021a9d4ad2 /detail.php | |
| parent | plugin: remove php close tags (diff) | |
| download | apt-panopticon_cgp-bae7725e9920e95caf6c072b29892165d784549b.zip apt-panopticon_cgp-bae7725e9920e95caf6c072b29892165d784549b.tar.gz apt-panopticon_cgp-bae7725e9920e95caf6c072b29892165d784549b.tar.bz2 apt-panopticon_cgp-bae7725e9920e95caf6c072b29892165d784549b.tar.xz | |
detail.php: make terms configurable
Diffstat (limited to 'detail.php')
| -rw-r--r-- | detail.php | 12 |
1 files changed, 1 insertions, 11 deletions
| @@ -39,19 +39,9 @@ plugins_list($host, $selected_plugins); | |||
| 39 | echo '<div class="graphs">'; | 39 | echo '<div class="graphs">'; |
| 40 | plugin_header($host, $plugin); | 40 | plugin_header($host, $plugin); |
| 41 | 41 | ||
| 42 | $term = array( | ||
| 43 | '2hour' => 3600*2, | ||
| 44 | '8hour' => 3600*8, | ||
| 45 | 'day' => 86400, | ||
| 46 | 'week' => 86400*7, | ||
| 47 | 'month' => 86400*31, | ||
| 48 | 'quarter'=> 86400*31*3, | ||
| 49 | 'year' => 86400*365, | ||
| 50 | ); | ||
| 51 | |||
| 52 | $args = $_GET; | 42 | $args = $_GET; |
| 53 | print '<ul class="time-range">' . "\n"; | 43 | print '<ul class="time-range">' . "\n"; |
| 54 | foreach($term as $key => $s) { | 44 | foreach($CONFIG['term'] as $key => $s) { |
| 55 | $args['s'] = $s; | 45 | $args['s'] = $s; |
| 56 | $selected = selected_timerange($seconds, $s); | 46 | $selected = selected_timerange($seconds, $s); |
| 57 | printf('<li><a %s href="%s%s">%s</a></li>'."\n", | 47 | printf('<li><a %s href="%s%s">%s</a></li>'."\n", |
