diff options
author | Andrew Dolgov <[email protected]> | 2011-04-20 14:11:15 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-04-20 14:11:15 +0400 |
commit | 9104a3e65afdb884dd2a6289ac62161d8176c555 (patch) | |
tree | fa7f068fe93cd35bc2368f34c8011af3c7808aba /modules/backend-rpc.php | |
parent | 16270276cf27620d72974eb7e71f089ea8bc3bd5 (diff) |
implement instance edit & save
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r-- | modules/backend-rpc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 8b4fb04c7..2ff9a6312 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -866,6 +866,13 @@ return; } + if ($subop == "genHash") { + $hash = sha1(uniqid(rand(), true)); + + print json_encode(array("hash" => $hash)); + return; + } + print json_encode(array("error" => array("code" => 7, "message" => "Unknown method: $subop"))); } |