d08140c2faba831ba0d12cf9eae7f9b6fb0e5593
[atutor.git] / mods / atutor_opencaps / opencaps / start_remote.php
1 <?php 
2 /*
3  * OpenCaps
4  * http://opencaps.atrc.utoronto.ca
5  * 
6  * Copyright 2009 Heidi Hazelton
7  * Adaptive Technology Resource Centre, University of Toronto
8  * 
9  * Licensed under the Educational Community License (ECL), Version 2.0. 
10  * You may not use this file except in compliance with this License.
11  * http://www.opensource.org/licenses/ecl2.php
12  * 
13  */
14
15 define('INCLUDE_PATH', 'include/');
16
17 require(INCLUDE_PATH.'vitals.inc.php');
18
19 if (!isset($_SESSION['mid']))
20         $_SESSION['mid'] = '99999'; //guest for remote
21
22
23 if (!isset($systems[$_GET['r']]['url'])) {
24         
25         if (ACTIVE_SYSTEM) {
26                 header("Location:start_remote.php?r=".ACTIVE_SYSTEM);
27                 exit;
28         } 
29         
30         $_SESSION['errors'][] = "No remote systems have been configured. Go to the <a href='start.php'>start</a> page.";        
31         include(INCLUDE_PATH.'basic_header.inc.php'); 
32         include(INCLUDE_PATH.'footer.inc.php'); 
33         exit;
34
35
36 if (!isset($_SESSION['mid']))
37         $_SESSION['mid'] = '99999'; //guest for remote
38
39         
40 require('include/basic_header.inc.php'); 
41
42 ?>
43 <script language="JavaScript" src="js/start_remote.js" type="text/javascript"></script>
44
45 <h1 style="margin-top:10px;"><img src="images/logo.png" alt="OpenCaps - a free, online caption editor" title="OpenCaps - a free, online caption editor" style="margin-top:7px;" /></h1>
46
47 <p>Start captioning! Please select a project to work on:</p>
48
49 <div id="start-tabs"></div>
50 <div id="start-container">      
51         <div>
52                 <h2 style="font-weight:bold">Open Project</h2>
53                 <p>Add captions to a remote project.</p>
54                         
55                 <form action="javascript:processOpenRemote();" method="post" id="form_open" enctype="multipart/form-data" onsubmit="javascript: return validateOpenForm();">
56                         <div id="projects"></div>
57                 </form>
58                 
59         <br style="clear:both" /></div>
60         
61 </div>
62
63 </body>
64 </html>