summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 16:36:14 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 16:36:14 +0100
commit1012e0af0746ed8aee4fe4a372020758ea87ffdf (patch)
treec6153d923bed65e57cc526a3d4bc829e09a9e66f /bin/jsonapi.php
parent41de0f465be99cf6022c98f7becf154ab9b6bb9d (diff)
downloadistreamdev-1012e0af0746ed8aee4fe4a372020758ea87ffdf.tar.gz
istreamdev-1012e0af0746ed8aee4fe4a372020758ea87ffdf.tar.bz2
Show running sessions
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php
index 10040cb..ffcc9e6 100755
--- a/bin/jsonapi.php
+++ b/bin/jsonapi.php
@@ -100,4 +100,15 @@ function getStreamStatus($session)
return json_encode($ret);
}
+function getRunningSessions()
+{
+ $ret = array();
+
+ $ret['broadcast'] = sessiongetlist();
+
+ return json_encode($ret);
+
+}
+
+
?>