2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2008 by Greg Gay, Cindy Qi Li, Harris Wong */
6 /* Adaptive Technology Resource Centre / University of Toronto */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /************************************************************************/
13 // $Id: index.php 7575 2008-06-02 18:17:14Z hwong $
15 define('AT_INCLUDE_PATH', '../../include/');
16 require (AT_INCLUDE_PATH.'vitals.inc.php');
17 require ('lib/openmeetings.class.php');
18 require ('lib/openmeetings.inc.php');
21 $_custom_css = $_base_path . 'mods/openmeetings/module.css'; // use a custom stylesheet
24 $course_id = $_SESSION['course_id'];
27 checkAccess($course_id);
30 require (AT_INCLUDE_PATH.'header.inc.php');
32 //Initiate Openmeeting
33 $om_obj = new Openmeetings($course_id, $_SESSION['member_id']);
38 //Handles form actions
39 if (isset($_GET['delete']) && isset($_GET['room_id'])){
40 //have to makesure the user really do have permission over the paramater room id
41 $_GET['room_id'] = intval($_GET['room_id']);
42 if ($om_obj->isMine($_GET['room_id'])){
43 $om_obj->om_deleteRoom($_GET['room_id']);
44 $msg->addFeedback('OPENMEETINGS_DELETE_SUCEEDED');
46 $msg->addError('OPENMEETINGS_DELETE_FAILED');
51 include_once('html/course_meeting.inc.php');
54 include_once('html/group_meeting.inc.php');
56 require (AT_INCLUDE_PATH.'footer.inc.php');