aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/functions.inc.php
diff options
context:
space:
mode:
authorPim van den Berg2014-11-11 23:01:15 +0100
committerPim van den Berg2014-11-11 23:01:15 +0100
commit82d88098f4203cf7402d4faf5ad100cada70efaf (patch)
tree0c7e63a0e91493837dad20a802529b3051bd670a /inc/functions.inc.php
parenttype/base: allow rrdtool graph -l (lower-limit) to be configured via config o... (diff)
downloadapt-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.php10
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
63function 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}