From 8b78f1ac29e4d29a574725f1a927148526374745 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 16:41:07 +0100 Subject: Support stop all sessions --- bin/jsonapi.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/jsonapi.php b/bin/jsonapi.php index ffcc9e6..dcc3dd4 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -77,7 +77,10 @@ function stopBroadcast($session) { $ret = array(); - $ret = sessiondelete("session" .$session); + if ($session == "all") + $ret = sessiondelete($session); + else + $ret = sessiondelete("session" .$session); return json_encode($ret); } -- cgit v1.2.3