summaryrefslogtreecommitdiff
path: root/bin/session.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-23 17:23:53 +0100
committerAlib <aliboba@free.fr>2010-03-23 17:23:53 +0100
commit39d5e81996d91fb66039c1655f67b4edde3ef381 (patch)
treeb7287d71d85fb71023e207d4c76a6e8dd900a823 /bin/session.php
parent50171cdd7b3b05a62826d88381e6e11ec22d95f3 (diff)
parent1247a87685d2cf2389d62909f115178d0768748e (diff)
downloadistreamdev-39d5e81996d91fb66039c1655f67b4edde3ef381.tar.gz
istreamdev-39d5e81996d91fb66039c1655f67b4edde3ef381.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
Diffstat (limited to 'bin/session.php')
-rwxr-xr-xbin/session.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/session.php b/bin/session.php
index fee5b58..144b8da 100755
--- a/bin/session.php
+++ b/bin/session.php
@@ -4,6 +4,10 @@ function sessioncreate($type, $url, $mode)
{
global $httppath, $ffmpegpath, $segmenterpath, $quality, $maxencodingprocesses;
+ // Check url
+ if (!isurlvalid($url, $type))
+ return "";
+
// Check that the max number of session is not reached yet
$nbencprocess = exec("find ../ram/ -name segmenter.pid | wc | awk '{ print $1 }'");
if ($nbencprocess >= $maxencodingprocesses)
@@ -336,6 +340,9 @@ function streammusic($path, $file)
{
global $httppath;
+ if (!isurlvalid($path, "media"))
+ return array();
+
$files = array();
// Create all symlinks