From b5de18337a148017f5d3bfa101ee4cc25f2dee98 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Tue, 5 Aug 2014 14:37:09 +0200 Subject: Add help button. Add a help button to the parameter field to get more information about the selected command and especially about the parameter needed for the command to be properly executed. The help appears in a modal dialog whose content is updated when a command is selected. --- execute.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'execute.php') diff --git a/execute.php b/execute.php index 12d819e..cd94ae6 100644 --- a/execute.php +++ b/execute.php @@ -68,6 +68,12 @@ if (!isset($_POST['dontlook']) || !empty($_POST['dontlook'])) { die('Spam detected'); } +// Just asked for the documentation +if (isset($_POST['doc']) && !empty($_POST['doc'])) { + $query = htmlspecialchars($_POST['doc']); + print json_encode($config['doc'][$query]); +} + if (isset($_POST['query']) && !empty($_POST['query']) && isset($_POST['routers']) && !empty($_POST['routers']) && isset($_POST['parameters']) && !empty($_POST['parameters'])) { -- cgit v1.2.3