removed mods directory from the ATutor codebase
[atutor.git] / mods / atalker / reader_controls.php
diff --git a/mods/atalker/reader_controls.php b/mods/atalker/reader_controls.php
deleted file mode 100644 (file)
index 3aad4b6..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<?php
-/****************************************************************/
-/* ATalker                                                                                                     */
-/****************************************************************/
-/* Copyright (c) 2002-2005 by Greg Gay                                         */
-/* 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: reader_controls.php 5123 2005-07-12 14:59:03Z greg
-
-// insert a require statement into a script to call this file into it to display ATalker controls
-// e.g    require(AT_INCLUDE_PATH."../mods/atalker/reader_controls.php");
-       $_GET['atalker_on'] = intval($_GET['atalker_on']);
-               global $_base_href, $_rel_url;
-
-       if($_GET['atalker_on'] == '1'){ 
-       
-               $_SESSION['atalker_on'] = '1';
-               header("Location: ".$_SERVER['PHP_SELF']);
-       
-       }else if($_GET['atalker_on'] == '2'){
-       
-               session_unregister('atalker_on');
-               header("Location: ".$_SERVER['PHP_SELF']);
-       
-       }
-
-       echo '<div style="text-align:right;">';
-       //global $_rel_url;
-       $_rel_url_new = ltrim($_rel_url, "/");
-       if($_REQUEST['cid']){
-
-
-       }
-
-       if($_rel_url == "/index.php"){
-       
-               echo '(<img src="'.$_base_href.'mods/atalker/images/atalker_sm.gif" alt="" align="middle"/>';
-       
-       }else{
-       
-               echo '(<img src="'.$_base_href.'mods/atalker/images/atalker_sm.gif" alt="" align="middle"/>';
-       }
-       
-       
-       if( $_SESSION['atalker_on'] == '1'){ 
-       
-               echo '<small> '._AT('voice').' <strong>'._AT('on1').'</strong> / <a href="'.$_base_href.$_rel_url_new.'?atalker_on=2">'._AT('off').'</a></small> ';
-       
-       }else if(!$_SESSION['atalker_on']){
-
-               echo '<small>( '._AT('voice').' <a href="'.$_base_href.$_rel_url_new.'?atalker_on=1">'._AT('on1').'</a> / <strong>'._AT('off').'</strong></small>';
-
-       }
-       
-       if($_GET['messages_on'] == '1'){ 
-       
-               $_SESSION['messages_on'] = '1';
-               header("Location: ".$_SERVER['PHP_SELF']);
-       
-       
-       }else if($_GET['messages_on'] == '2'){
-       
-               session_unregister('messages_on');
-               header("Location: ".$_SERVER['PHP_SELF']);
-       
-       }
-       
-       if( $_SESSION['messages_on'] == '1'){ 
-
-               require(AT_INCLUDE_PATH."../mods/atalker/message_reader.php");
-               echo ' <small> -- '._AT('messages').' <strong>'._AT('on1').'</strong> / <a href="'.$_base_href.$_rel_url_new.'?messages_on=2">'._AT('off').'</a> )</small> ';
-       
-       }else if(!$_SESSION['messages_on']){
-       
-               echo ' <small>-- '._AT('messages').' <a href="'.$_base_href.$_rel_url_new.'?messages_on=1">'._AT('on1').'</a> / <strong>'._AT('off').'</strong> )</small>';
-       
-       }
-       
-       echo '</div>';
-?>
\ No newline at end of file