Skip to content
Snippets Groups Projects
Commit dcf1eed8 authored by Robin Appelman's avatar Robin Appelman
Browse files

add unique instance id

parent eed04503
No related branches found
No related tags found
No related merge requests found
......@@ -330,4 +330,17 @@ class OC_Util {
}
exit();
}
/**
* get an id unqiue for this instance
* @return string
*/
public static function getInstanceId(){
$id=OC_Config::getValue('instanceid',null);
if(is_null($id)){
$id=uniqid();
OC_Config::setValue('instanceid',$id);
}
return $id;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment