2 /************************************************************************/
4 /************************************************************************/
5 /* Copyright (c) 2002-2004 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
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 /************************************************************************/
14 define('AT_INCLUDE_PATH', '../../include/');
15 require(AT_INCLUDE_PATH.'vitals.inc.php');
19 $m =str_replace('.', '', $_POST['m']);
20 } else if ($_GET['m']) {
21 $m =str_replace('.', '', $_GET['m']);
24 if ($_POST['submit_no']) {
25 $msg->addFeedback('CANCELLED');
26 Header('Location: index.php');
30 if ($_POST['submit_yes']) {
31 unlink(AT_CONTENT_DIR . 'chat/'.$_SESSION['course_id'].'/tran/'.$m.'.html');
33 //if its the current tran, unset it
34 if (str_replace('.html', '', $admin['tranFile']) == $m) {
35 $admin['produceTran'] = 0;
36 writeAdminSettings($admin);
39 $msg->addFeedback('ACTION_COMPLETED_SUCCESSFULLY');
40 Header('Location: index.php');
44 require(AT_INCLUDE_PATH.'header.inc.php');
46 if (!file_exists(AT_CONTENT_DIR . 'chat/'.$_SESSION['course_id'].'/tran/'.$m.'.html')) {
47 $msg->printErrors('NOT_FOUND');
48 require (AT_INCLUDE_PATH.'footer.inc.php');
52 $hidden_vars['m'] = $m;
54 $msg->addConfirm(array('DELETE_TRANSCRIPT', $m), $hidden_vars);
57 require(AT_INCLUDE_PATH.'footer.inc.php');