summaryrefslogtreecommitdiff
path: root/plugins/instances/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 14:27:15 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 14:27:15 +0400
commit76f2113b359d3c488cc3a149237908cb3bbb535f (patch)
tree565181428d240e7b44f521698b6658a267eb8728 /plugins/instances/init.php
parentc35b6d8e14fd930128cd70c7dc46bef9e1c39d9d (diff)
instances: fix a few wrong calls, move genHash method from rpc
Diffstat (limited to 'plugins/instances/init.php')
-rw-r--r--plugins/instances/init.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/instances/init.php b/plugins/instances/init.php
index 6a7f7003a..7f822c7bf 100644
--- a/plugins/instances/init.php
+++ b/plugins/instances/init.php
@@ -442,5 +442,12 @@ class Instances extends Plugin implements IHandler {
return;
}
+ function genHash() {
+ $hash = sha1(uniqid(rand(), true));
+
+ print json_encode(array("hash" => $hash));
+ }
+
+
}
?>