summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 16:41:07 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 16:41:07 +0100
commit8b78f1ac29e4d29a574725f1a927148526374745 (patch)
tree51de8c72cde86fc570a9de1f0f0d02e34e0a640e /bin
parent1012e0af0746ed8aee4fe4a372020758ea87ffdf (diff)
downloadistreamdev-8b78f1ac29e4d29a574725f1a927148526374745.tar.gz
istreamdev-8b78f1ac29e4d29a574725f1a927148526374745.tar.bz2
Support stop all sessions
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jsonapi.php5
1 files changed, 4 insertions, 1 deletions
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);
}