From 804dfcf6c4b5b6380d607c8ec6b843d56ac82247 Mon Sep 17 00:00:00 2001 From: Kevin Jardine Date: Mon, 26 Sep 2011 12:42:11 +0200 Subject: major changes for Elgg 1.8 --- manage_event.php | 57 -------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 manage_event.php (limited to 'manage_event.php') diff --git a/manage_event.php b/manage_event.php deleted file mode 100644 index 0464a31df..000000000 --- a/manage_event.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @copyright Radagast Solutions 2008 - * @link http://radagast.biz/ - * - */ - -// Load Elgg engine -require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - -// Load event calendar model -require_once(dirname(__FILE__) . "/models/model.php"); - -// Define context -set_context('event_calendar'); - -global $CONFIG; - -gatekeeper(); - -$event = ''; - -$group_guid = (int) get_input('group_guid',0); - -if ($event_id = get_input('event_id',0)) { - $event = event_calendar_get_event_for_edit($event_id); - if (!$event) { - register_error(elgg_echo('event_calendar:no_such_event_edit_error')); - forward(); - } else { - set_page_owner($event->container_guid); - if (page_owner_entity() instanceof ElggGroup) { - set_context('groups'); - } - } - - $title = elgg_echo('event_calendar:manage_event_title'); -} else { - $title = elgg_echo('event_calendar:add_event_title'); - if ($group_guid && $group = get_entity($group_guid)) { - // redefine context - set_context('groups'); - set_page_owner($group_guid); - } -} - -$body = elgg_view('event_calendar/forms/manage_event', array('event'=>$event,'event_id'=>$event_id,'group_guid'=>$group_guid)); - -page_draw($title,elgg_view_layout("two_column_left_sidebar", '', elgg_view_title($title) . $body)); - -?> \ No newline at end of file -- cgit v1.2.3