aboutsummaryrefslogtreecommitdiff
path: root/mod/livestream/actions/new.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:56:18 -0300
commita7be81c3f81c807d43ed32965ee7ac11ebe71895 (patch)
tree71751c05eb80ae6e348790f3e46652c9dfe0be7d /mod/livestream/actions/new.php
parentf3beeb45f9f192aee6ede0c9b6f0fa8b8d82a9ef (diff)
parent059badecbc0be895c6165430e5096a9ab653027e (diff)
downloadelgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.gz
elgg-a7be81c3f81c807d43ed32965ee7ac11ebe71895.tar.bz2
Merge commit '059badecbc0be895c6165430e5096a9ab653027e' as 'mod/livestream'
Diffstat (limited to 'mod/livestream/actions/new.php')
-rwxr-xr-xmod/livestream/actions/new.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod/livestream/actions/new.php b/mod/livestream/actions/new.php
new file mode 100755
index 000000000..0deb95275
--- /dev/null
+++ b/mod/livestream/actions/new.php
@@ -0,0 +1,23 @@
+<?php
+ require_once "{$CONFIG->pluginspath}livestream/libraries.php";
+
+ $params = Array();
+ $params['title'] = get_input('title', '');
+ $params['mediatype'] = get_input('mediatype', '');
+ $params['src'] = get_input('src', '');
+ $params['width'] = get_input('width', '');
+ $params['height'] = get_input('height', '');
+
+ $params['owner_guid'] = page_owner();
+ $params['container_guid'] = get_input('container_guid', '');
+
+ $myObject = livestream_addnew($params);
+
+ if($myObject){
+ $container = livestream_get_container($myObject);
+ forward('livestream/'.$container->username);
+ }else{
+ elgg_echo ("livestream:internal_error");
+ }
+
+?>