From 059badecbc0be895c6165430e5096a9ab653027e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 14:56:18 -0300 Subject: Squashed 'mod/livestream/' content from commit 89d1f38 git-subtree-dir: mod/livestream git-subtree-split: 89d1f3877f241f34e3ed3baad3c9ee9a4fee79e7 --- actions/new.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 actions/new.php (limited to 'actions/new.php') diff --git a/actions/new.php b/actions/new.php new file mode 100755 index 000000000..0deb95275 --- /dev/null +++ b/actions/new.php @@ -0,0 +1,23 @@ +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"); + } + +?> -- cgit v1.2.3