From 82d88098f4203cf7402d4faf5ad100cada70efaf Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 11 Nov 2014 23:01:15 +0100 Subject: make detail page accessible when using "canvas" graph_type Closes #106 --- inc/functions.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'inc/functions.inc.php') 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() { readfile('layout/error.png'); exit; } + +function generate_uuid() { + return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x', + mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), + mt_rand( 0, 0xffff ), + mt_rand( 0, 0x0fff ) | 0x4000, + mt_rand( 0, 0x3fff ) | 0x8000, + mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) + ); +} -- cgit v1.1