+++ /dev/null
-<?php\r
-/****************************************************************/\r
-/* 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
-class OcAtutor\r
-{\r
- public static function putCaps($uri, $action, $id, $ccData)\r
- {\r
- if ($ccData!='The format of source Caption was not recognized.')\r
- {\r
- //$uri = '../../service.php?';\r
- $uri .= '?';\r
- $ch = curl_init($uri);\r
- $encoded = 'id='.$id.'&action='.$action.'&cc='.''.urlencode($ccData).'';\r
- curl_setopt($ch, CURLOPT_POSTFIELDS, $encoded);\r
- curl_setopt($ch, CURLOPT_HEADER, 0);\r
- curl_setopt($ch, CURLOPT_POST, 1);\r
- curl_exec($ch);\r
- curl_close($ch);\r
- if(OC_DEBUG_MODE_ON)\r
- {\r
- echo '<br/> Encoded Data sent to Server:<br/> '.$encoded.'<br/>';\r
- }\r
- } // end putCaps\r
- \r
- } // end class\r
-}\r
-?>
\ No newline at end of file