From 8f0ce0135c1f12a07eeefc432bf9af28ee1a67c6 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Sat, 31 May 2014 19:47:17 +0200 Subject: Start rewriting og the auth mecanism. --- execute.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'execute.php') 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)) { -- cgit v1.2.3