aboutsummaryrefslogtreecommitdiff
path: root/pages/livestream
diff options
context:
space:
mode:
Diffstat (limited to 'pages/livestream')
-rwxr-xr-xpages/livestream/delete.php17
-rwxr-xr-xpages/livestream/list.php21
-rwxr-xr-xpages/livestream/new.php14
-rwxr-xr-xpages/livestream/view.php23
4 files changed, 75 insertions, 0 deletions
diff --git a/pages/livestream/delete.php b/pages/livestream/delete.php
new file mode 100755
index 000000000..b84b1079b
--- /dev/null
+++ b/pages/livestream/delete.php
@@ -0,0 +1,17 @@
+<?php
+require_once (dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php");
+
+global $CONFIG;
+$page_owner = page_owner_entity();
+
+if (livestream_user_has_access()) {
+ add_submenu_item(elgg_echo('livestream:new_item'), $CONFIG->wwwroot."livestream/".$page_owner->username."/new/");
+}
+
+//render
+$body = elgg_view('delete', Array('streamid' => get_input('streamid', '')));
+$layout_canvas = "two_column_left_sidebar";
+$layout_view = elgg_view_layout($layout_canvas, '', $body);
+
+page_draw($title, $layout_view);
+?>
diff --git a/pages/livestream/list.php b/pages/livestream/list.php
new file mode 100755
index 000000000..82a1c8722
--- /dev/null
+++ b/pages/livestream/list.php
@@ -0,0 +1,21 @@
+<?php
+require_once (dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php");
+
+global $CONFIG;
+$page_owner = page_owner_entity();
+$logged_user = get_loggedin_user();
+
+if (livestream_user_has_access()) {
+ add_submenu_item(elgg_echo('livestream:new_item'), $CONFIG->wwwroot."livestream/".$page_owner->username."/new/");
+ add_submenu_item(elgg_echo('livestream:viewall'), $CONFIG->wwwroot."livestream/");
+}
+
+
+
+//render
+$body = elgg_view('list');
+$layout_canvas = "two_column_left_sidebar";
+$layout_view = elgg_view_layout($layout_canvas, '', $body);
+
+page_draw($title, $layout_view);
+?>
diff --git a/pages/livestream/new.php b/pages/livestream/new.php
new file mode 100755
index 000000000..eaa61dda8
--- /dev/null
+++ b/pages/livestream/new.php
@@ -0,0 +1,14 @@
+<?php
+add_submenu_item(elgg_echo("livestream:new_item"), $CONFIG->url."livestream/new/" );
+/*
+$menu_properties = Array(
+ 'name' => 'livestream_menu_new'
+ ,'text' => elgg_echo("livestream:new_item"));
+if (!elgg_register_menu_item('livestream_menu_new', $menu_properties)) echo "acc";
+*/
+$body = elgg_view('new');
+$layout_canvas = "two_column_left_sidebar";
+$layout_view = elgg_view_layout($layout_canvas, '', $body);
+
+page_draw($title, $layout_view);
+?> \ No newline at end of file
diff --git a/pages/livestream/view.php b/pages/livestream/view.php
new file mode 100755
index 000000000..e6842416a
--- /dev/null
+++ b/pages/livestream/view.php
@@ -0,0 +1,23 @@
+<?php
+require_once (dirname(dirname(dirname(dirname(dirname(__FILE__))))) . "/engine/start.php");
+
+global $CONFIG;
+$page_owner = page_owner_entity();
+$stream_id = get_input('streamid', '');
+
+
+
+if (livestream_user_has_access()) {
+ add_submenu_item(elgg_echo('livestream:new_item'), $CONFIG->wwwroot."livestream/".$page_owner->username."/new/");
+ add_submenu_item(elgg_echo('livestream:delete'), $CONFIG->wwwroot."livestream/".$page_owner->username."/delete/".$stream_id);
+}
+
+
+
+//render
+$body = elgg_view('view', Array('streamid' => get_input('streamid', '')));
+$layout_canvas = "two_column_left_sidebar";
+$layout_view = elgg_view_layout($layout_canvas, '', $body);
+
+page_draw($title, $layout_view);
+?>