diff --git a/classes/backend.php b/classes/backend.php deleted file mode 100644 index aa1935f23..000000000 --- a/classes/backend.php +++ /dev/null @@ -1,90 +0,0 @@ -HTML"; - print $rv[0]; - print "

Plain text

"; - print "
".$rv[3]."
"; - } else { - print error_json(6); - } - } */ - - function help() { - $topic = basename(clean($_REQUEST["topic"])); // only one for now - - if ($topic == "main") { - $info = RPC::get_hotkeys_info(); - $imap = RPC::get_hotkeys_map(); - $omap = array(); - - foreach ($imap[1] as $sequence => $action) { - if (!isset($omap[$action])) $omap[$action] = array(); - - array_push($omap[$action], $sequence); - } - - print ""; - } - - print ""; - - } -} diff --git a/classes/rpc.php b/classes/rpc.php index 1bfea621b..d6284033a 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -706,4 +706,76 @@ class RPC extends Handler_Protected { return array($prefixes, $hotkeys); } + function hotkeyHelp() { + $info = self::get_hotkeys_info(); + $imap = self::get_hotkeys_map(); + $omap = array(); + + foreach ($imap[1] as $sequence => $action) { + if (!isset($omap[$action])) $omap[$action] = array(); + + array_push($omap[$action], $sequence); + } + + ?> +