diff options
author | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
---|---|---|
committer | Pim van den Berg | 2014-11-11 23:01:15 +0100 |
commit | 82d88098f4203cf7402d4faf5ad100cada70efaf (patch) | |
tree | 0c7e63a0e91493837dad20a802529b3051bd670a /inc/functions.inc.php | |
parent | type/base: allow rrdtool graph -l (lower-limit) to be configured via config o... (diff) | |
download | apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.zip apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.gz apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.bz2 apt-panopticon_cgp-82d88098f4203cf7402d4faf5ad100cada70efaf.tar.xz |
make detail page accessible when using "canvas" graph_type
Closes #106
Diffstat (limited to 'inc/functions.inc.php')
-rw-r--r-- | inc/functions.inc.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php index abe0763..df02d20 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php | |||
@@ -59,3 +59,13 @@ function error_image() { | |||
59 | readfile('layout/error.png'); | 59 | readfile('layout/error.png'); |
60 | exit; | 60 | exit; |
61 | } | 61 | } |
62 | |||
63 | function generate_uuid() { | ||
64 | return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', | ||
65 | mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), | ||
66 | mt_rand( 0, 0xffff ), | ||
67 | mt_rand( 0, 0x0fff ) | 0x4000, | ||
68 | mt_rand( 0, 0x3fff ) | 0x8000, | ||
69 | mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) | ||
70 | ); | ||
71 | } | ||