-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (30 loc) · 1.06 KB
/
index.php
File metadata and controls
33 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
//Returns JavaScript
header("Content-Type: text/javascript");
//This file requires jQuery
//These files are always loaded
//-----------------------------------------------------------------
//Return the content of postMessage library
include('js/postMessage.js');
//-----------------------------------------------------------------
//Return croco js functions
include('js/utility.js');
//-----------------------------------------------------------------
//Depending on the type we attach different functionality
//-----------------------------------------------------------------
//On form submit sends all the data to CrowdComputer
if ($_GET['type']=='send_all_to_crowdcomputer')
include('js/sendToCC.js');
//-----------------------------------------------------------------
//On form submit sends all the data to Mturk, CrowdComputer
if ($_GET['type']=='send_all_to_mturk'){
//the address of the tunnel file
?>
var tunnel_file='tunnel.php';
<?php
if (isset($_GET['tunnel_file'])){
echo "tunnel_file='".$_GET['tunnel_file']."';";
}
include('js/sendToMturk.js');
}
?>