aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php
diff options
context:
space:
mode:
authorPim van den Berg2013-02-09 22:57:04 +0100
committerPim van den Berg2013-02-09 22:57:04 +0100
commitbae7725e9920e95caf6c072b29892165d784549b (patch)
tree117bd60bd4d0c9847bb69432db1688021a9d4ad2 /detail.php
parentplugin: remove php close tags (diff)
downloadapt-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 '')
-rw-r--r--detail.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/detail.php b/detail.php
index fdeb777..9cfeb53 100644
--- a/detail.php
+++ b/detail.php
@@ -39,19 +39,9 @@ plugins_list($host, $selected_plugins);
39echo '<div class="graphs">'; 39echo '<div class="graphs">';
40plugin_header($host, $plugin); 40plugin_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;
53print '<ul class="time-range">' . "\n"; 43print '<ul class="time-range">' . "\n";
54foreach($term as $key => $s) { 44foreach($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",