removed mods directory from the ATutor codebase
[atutor.git] / mods / openmeetings / openmeetings_group.php
diff --git a/mods/openmeetings/openmeetings_group.php b/mods/openmeetings/openmeetings_group.php
deleted file mode 100644 (file)
index 30035c2..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/************************************************************************/
-/* ATutor                                                                                                                              */
-/************************************************************************/
-/* Copyright (c) 2002-2008 by Greg Gay, Cindy Qi Li, Harris Wong               */
-/* Adaptive Technology Resource Centre / University of Toronto                 */
-/* http://atutor.ca                                                                                                            */
-/*                                                                                                                                             */
-/* This program is free software. You can redistribute it and/or               */
-/* modify it under the terms of the GNU General Public License                 */
-/* as published by the Free Software Foundation.                                               */
-/************************************************************************/
-// $Id: openmeetings_group.php 7575 2008-06-02 18:17:14Z hwong $
-
-define('AT_INCLUDE_PATH', '../../include/');
-require (AT_INCLUDE_PATH.'vitals.inc.php');
-require ('lib/openmeetings.class.php');
-require ('lib/openmeetings.inc.php');
-//$_custom_css = $_base_path . 'mods/openmeetings/module.css'; // use a custom stylesheet
-
-//local variables
-$course_id = $_SESSION['course_id'];
-
-// Check access
-checkAccess($course_id);
-
-$_GET['gid'] = intval($_GET['gid']);
-
-//Initiate Openmeeting
-$om_obj = new Openmeetings($course_id, $_SESSION['member_id']);
-
-//Login
-$om_obj->om_login();
-
-//Group meetings
-$sql = "SELECT title FROM ".TABLE_PREFIX."groups WHERE group_id=$_GET[gid] ORDER BY title";
-//TODO: Check group permission from group table.
-$result = mysql_query($sql, $db);
-$row = mysql_fetch_assoc($result);
-
-if (mysql_numrows($result) == 0){
-       echo '<div class="openmeetings">'._AT('openmeetings_no_group_meetings').'</div>';
-       require (AT_INCLUDE_PATH.'footer.inc.php');
-       exit;
-} 
-
-//Check in the db and see if this group has a meeting alrdy, create on if not.
-$om_obj->setGid($_GET['gid']);
-if ($om_obj->om_getRoom()){
-       //Log into the room
-       $room_id = $om_obj->om_addRoom($room_name);
-       header('Location: '.AT_BASE_HREF.'mods/openmeetings/view_meetings.php?room_id='.$room_id.SEP.'sid='.$om_obj->getSid());
-       exit;
-} else {
-       //Header begins here
-       require (AT_INCLUDE_PATH.'header.inc.php');
-       echo '<div class="openmeetings">'.$row['title'].'<a href="mods/openmeetings/add_group_meetings.php?group_id='.$_GET['gid'].'"> Start a conference </a></div>';
-       require (AT_INCLUDE_PATH.'footer.inc.php');
-}
-?>
\ No newline at end of file