summaryrefslogtreecommitdiff
path: root/execute.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-05-31 19:47:17 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-05-31 19:47:17 +0200
commit8f0ce0135c1f12a07eeefc432bf9af28ee1a67c6 (patch)
tree0ef41b44f8566f54b4bf757ae6ee848b9741ba82 /execute.php
parentc08149c783684fbdb0510efa28a98dd1de224c7c (diff)
Start rewriting og the auth mecanism.
Diffstat (limited to 'execute.php')
-rw-r--r--execute.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/execute.php b/execute.php
index 72f7d0b..80d4b8d 100644
--- a/execute.php
+++ b/execute.php
@@ -78,11 +78,10 @@ if (isset($_POST['query']) && !empty($_POST['query']) &&
// Do the processing
// Router connection, command execution, disconnection
$router = new Router($hostname, $_SERVER['REMOTE_ADDR']);
- $router->connect();
$data = $router->send_command($query, $parameters);
- $router->disconnect();
// Process the output line by line
+ $return = '';
foreach (preg_split("/((\r?\n)|(\r\n?))/", $data) as $line) {
// Get rid of empty lines
if (empty($line)) {