removed mods directory from the ATutor codebase
[atutor.git] / mods / atutor_opencaps / service.php
diff --git a/mods/atutor_opencaps/service.php b/mods/atutor_opencaps/service.php
deleted file mode 100755 (executable)
index 31d67e5..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php\r
-/****************************************************************/\r
-/* Atutor-OpenCaps Module                                              \r
-/****************************************************************/\r
-/* Copyright (c) 2010                           \r
-/* Written by Antonio Gamba                                            \r
-/* Adaptive Technology Resource Centre / University of Toronto\r
-/*\r
-/* This program is free software. You can redistribute it and/or\r
-/* modify it under the terms of the GNU General Public License\r
-/* as published by the Free Software Foundation.\r
-/****************************************************************/\r
-\r
-// At vitals \r
-include_once('../../include/config.inc.php');\r
-include_once('../../include/lib/mysql_connect.inc.php');\r
-\r
-// load ATutor-OpenCaps Module Vitals \r
-include_once('include/vitals.inc.php');\r
-\r
-\r
-//echo '<br/>AT_CONTENT_DIR: '.AT_CONTENT_DIR;\r
-//echo '<br/>AT_BASE_HREF: '.AT_BASE_HREF;\r
-\r
-// check if is GET or POST requet\r
-\r
-// initialize vars\r
-$method = '';\r
-$action = '';\r
-$projectId = '';\r
-$captionData = '';\r
-\r
-if($ocAtSettings['atWebPath'] == '')\r
-{\r
-       $atWebPath_replace = str_replace('mods/AtOpenCaps/service.php','',$_SERVER['SCRIPT_NAME']);\r
-       $ocAtSettings['atWebPath'] = 'http://'.$_SERVER['HTTP_HOST'].''.$atWebPath_replace;\r
-}\r
-\r
-if (isset($_GET['action']) && $_GET['action'] !='')\r
-{\r
-       $action = $_GET['action'];\r
-       \r
-               if (isset($_GET['id']) && $_GET['id'] !='')\r
-               {\r
-               $projectId = $_GET['id'];\r
-               }\r
-} \r
-\r
-if (isset($_POST['action']) && $_POST['action'] !='')\r
-{\r
-       $action = $_POST['action'];\r
-       \r
-               if (isset($_POST['id']) && $_POST['id'] !='')\r
-               {\r
-               $projectId = $_POST['id'];\r
-               }\r
-} \r
-\r
-// Get media data and return JSon\r
-\r
-if ($action=='getMedia' && $projectId !='')\r
-{\r
-       $myProjectManager = new ATOCProjectManager();\r
-       \r
-       $activeProjectJson = $myProjectManager->_getProjecDataJson($projectId,$ocAtSettings['atWebPath']);\r
-       echo $activeProjectJson;\r
-       \r
-       // start OC Json class\r
-} else if ($action=='getMedia') {\r
-       echo "Invalid request";\r
-       \r
-} \r
-\r
-\r
-// save caption data\r
-\r
-if ($action=='putCaps' && $projectId != '' &&  isset($_POST['cc']) && $_POST['cc']!='')\r
-{\r
-       $captionData = $_POST['cc'];\r
-       \r
-       if(isset($_POST['width']))\r
-       {\r
-               $theWidth = $_POST['width'];\r
-       } else {\r
-               $theWidth = '';\r
-       }\r
-       if(isset($_POST['height']))\r
-       {\r
-               $theHeight = $_POST['height'];\r
-       } else {\r
-               $theHeight = '';\r
-       }\r
-       $myProjectManager = new ATOCProjectManager();\r
-\r
-       $saveMSG = $myProjectManager->_saveCaptionData($projectId,$captionData,$theWidth,$theHeight);\r
-\r
-       //echo $saveMSG;\r
-\r
-} \r
-?>
\ No newline at end of file